-
Notifications
You must be signed in to change notification settings - Fork 13
/
sublime-package.json
1672 lines (1672 loc) · 75.8 KB
/
sublime-package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"contributions": {
"settings": [
{
"file_patterns": [
"/LSP-pyright.sublime-settings"
],
"schema": {
"$id": "sublime://settings/LSP-pyright",
"allOf": [
{
"$ref": "sublime://settings/LSP-plugin-base"
},
{
"$ref": "sublime://settings/LSP-pyright#/definitions/PluginConfig"
}
],
"definitions": {
"PluginConfig": {
"properties": {
"settings": {
"additionalProperties": false,
"properties": {
"pyright.dev_environment": {
"default": "",
"description": "Enables the pre-defined environment setup for specific developing needs.",
"enum": [
"",
"sublime_text",
"sublime_text_33",
"sublime_text_38",
"blender",
"gdb"
],
"markdownEnumDescriptions": [
"No modifications applied.",
"Suitable for people who are developing ST python plugins. The Python version which the developed plugin runs on will be used. - `sys.path` from the plugin_host will be added into \"python.analysis.extraPaths\" so that ST package dependencies can be resolved by the LSP server.",
"Similar to \"sublime_text\" but Python 3.3 forced.",
"Similar to \"sublime_text\" but Python 3.8 forced.",
"Suitable for people who are developing Blender add-ons. `sys.path` from Blender's embedded Python interpreter will be added into \"python.analysis.extraPaths\". Note that this requires invoking Blender, headless, to query the additional Python paths. The setting \"pyright.dev_environment_blender.binary\" controls which executable to call to invoke Blender.",
"Suitable for people who are developing GDB automation scripts. `sys.path` from GDB's embedded Python interpreter will be added into \"python.analysis.extraPaths\". Note that this requires invoking GDB, in batch mode, to query the additional Python paths. The setting \"pyright.dev_environment_gdb.binary\" controls which exectuable to call to invoke GDB."
]
},
"pyright.dev_environment_blender.binary": {
"default": "blender",
"description": "When the predefined setup is \"blender\", invoke this binary to query the additional search paths.",
"type": "string"
},
"pyright.dev_environment_gdb.binary": {
"default": "gdb",
"description": "When the predefined setup is \"gdb\", invoke this binary to query the additional search paths.",
"type": "string"
},
"pyright.disableLanguageServices": {
"default": false,
"description": "Disables type completion, definitions, and references.",
"type": "boolean"
},
"pyright.disableOrganizeImports": {
"default": false,
"description": "Disables the \"Organize Imports\" command.",
"type": "boolean"
},
"python.analysis.autoImportCompletions": {
"default": true,
"description": "Offer auto-import completions.",
"type": "boolean"
},
"python.analysis.autoSearchPaths": {
"default": true,
"description": "Automatically add common search paths like 'src'?",
"type": "boolean"
},
"python.analysis.diagnosticMode": {
"default": "openFilesOnly",
"enum": [
"openFilesOnly",
"workspace"
],
"enumDescriptions": [
"Analyzes and reports errors on only open files.",
"Analyzes and reports errors on all files in the workspace."
],
"type": "string"
},
"python.analysis.diagnosticSeverityOverrides": {
"description": "Allows a user to override the severity levels for individual diagnostics.",
"properties": {
"analyzeUnannotatedFunctions": {
"$ref": "sublime://pyrightconfig#/definitions/analyzeUnannotatedFunctions"
},
"deprecateTypingAliases": {
"$ref": "sublime://pyrightconfig#/definitions/deprecateTypingAliases"
},
"disableBytesTypePromotions": {
"$ref": "sublime://pyrightconfig#/definitions/disableBytesTypePromotions"
},
"enableExperimentalFeatures": {
"$ref": "sublime://pyrightconfig#/definitions/enableExperimentalFeatures"
},
"enableReachabilityAnalysis": {
"$ref": "sublime://pyrightconfig#/definitions/enableReachabilityAnalysis"
},
"enableTypeIgnoreComments": {
"$ref": "sublime://pyrightconfig#/definitions/enableTypeIgnoreComments"
},
"reportAbstractUsage": {
"$ref": "sublime://pyrightconfig#/definitions/reportAbstractUsage"
},
"reportArgumentType": {
"$ref": "sublime://pyrightconfig#/definitions/reportArgumentType"
},
"reportAssertAlwaysTrue": {
"$ref": "sublime://pyrightconfig#/definitions/reportAssertAlwaysTrue"
},
"reportAssertTypeFailure": {
"$ref": "sublime://pyrightconfig#/definitions/reportAssertTypeFailure"
},
"reportAssignmentType": {
"$ref": "sublime://pyrightconfig#/definitions/reportAssignmentType"
},
"reportAttributeAccessIssue": {
"$ref": "sublime://pyrightconfig#/definitions/reportAttributeAccessIssue"
},
"reportCallInDefaultInitializer": {
"$ref": "sublime://pyrightconfig#/definitions/reportCallInDefaultInitializer"
},
"reportCallIssue": {
"$ref": "sublime://pyrightconfig#/definitions/reportCallIssue"
},
"reportConstantRedefinition": {
"$ref": "sublime://pyrightconfig#/definitions/reportConstantRedefinition"
},
"reportDeprecated": {
"$ref": "sublime://pyrightconfig#/definitions/reportDeprecated"
},
"reportDuplicateImport": {
"$ref": "sublime://pyrightconfig#/definitions/reportDuplicateImport"
},
"reportFunctionMemberAccess": {
"$ref": "sublime://pyrightconfig#/definitions/reportFunctionMemberAccess"
},
"reportGeneralTypeIssues": {
"$ref": "sublime://pyrightconfig#/definitions/reportGeneralTypeIssues"
},
"reportImplicitOverride": {
"$ref": "sublime://pyrightconfig#/definitions/reportImplicitOverride"
},
"reportImplicitStringConcatenation": {
"$ref": "sublime://pyrightconfig#/definitions/reportImplicitStringConcatenation"
},
"reportImportCycles": {
"$ref": "sublime://pyrightconfig#/definitions/reportImportCycles"
},
"reportIncompatibleMethodOverride": {
"$ref": "sublime://pyrightconfig#/definitions/reportIncompatibleMethodOverride"
},
"reportIncompatibleVariableOverride": {
"$ref": "sublime://pyrightconfig#/definitions/reportIncompatibleVariableOverride"
},
"reportIncompleteStub": {
"$ref": "sublime://pyrightconfig#/definitions/reportIncompleteStub"
},
"reportInconsistentConstructor": {
"$ref": "sublime://pyrightconfig#/definitions/reportInconsistentConstructor"
},
"reportInconsistentOverload": {
"$ref": "sublime://pyrightconfig#/definitions/reportInconsistentOverload"
},
"reportIndexIssue": {
"$ref": "sublime://pyrightconfig#/definitions/reportIndexIssue"
},
"reportInvalidStringEscapeSequence": {
"$ref": "sublime://pyrightconfig#/definitions/reportInvalidStringEscapeSequence"
},
"reportInvalidStubStatement": {
"$ref": "sublime://pyrightconfig#/definitions/reportInvalidStubStatement"
},
"reportInvalidTypeArguments": {
"$ref": "sublime://pyrightconfig#/definitions/reportInvalidTypeArguments"
},
"reportInvalidTypeForm": {
"$ref": "sublime://pyrightconfig#/definitions/reportInvalidTypeForm"
},
"reportInvalidTypeVarUse": {
"$ref": "sublime://pyrightconfig#/definitions/reportInvalidTypeVarUse"
},
"reportMatchNotExhaustive": {
"$ref": "sublime://pyrightconfig#/definitions/reportMatchNotExhaustive"
},
"reportMissingImports": {
"$ref": "sublime://pyrightconfig#/definitions/reportMissingImports"
},
"reportMissingModuleSource": {
"$ref": "sublime://pyrightconfig#/definitions/reportMissingModuleSource"
},
"reportMissingParameterType": {
"$ref": "sublime://pyrightconfig#/definitions/reportMissingParameterType"
},
"reportMissingSuperCall": {
"$ref": "sublime://pyrightconfig#/definitions/reportMissingSuperCall"
},
"reportMissingTypeArgument": {
"$ref": "sublime://pyrightconfig#/definitions/reportMissingTypeArgument"
},
"reportMissingTypeStubs": {
"$ref": "sublime://pyrightconfig#/definitions/reportMissingTypeStubs"
},
"reportNoOverloadImplementation": {
"$ref": "sublime://pyrightconfig#/definitions/reportNoOverloadImplementation"
},
"reportOperatorIssue": {
"$ref": "sublime://pyrightconfig#/definitions/reportOperatorIssue"
},
"reportOptionalCall": {
"$ref": "sublime://pyrightconfig#/definitions/reportOptionalCall"
},
"reportOptionalContextManager": {
"$ref": "sublime://pyrightconfig#/definitions/reportOptionalContextManager"
},
"reportOptionalIterable": {
"$ref": "sublime://pyrightconfig#/definitions/reportOptionalIterable"
},
"reportOptionalMemberAccess": {
"$ref": "sublime://pyrightconfig#/definitions/reportOptionalMemberAccess"
},
"reportOptionalOperand": {
"$ref": "sublime://pyrightconfig#/definitions/reportOptionalOperand"
},
"reportOptionalSubscript": {
"$ref": "sublime://pyrightconfig#/definitions/reportOptionalSubscript"
},
"reportOverlappingOverload": {
"$ref": "sublime://pyrightconfig#/definitions/reportOverlappingOverload"
},
"reportPossiblyUnboundVariable": {
"$ref": "sublime://pyrightconfig#/definitions/reportPossiblyUnboundVariable"
},
"reportPrivateImportUsage": {
"$ref": "sublime://pyrightconfig#/definitions/reportPrivateImportUsage"
},
"reportPrivateUsage": {
"$ref": "sublime://pyrightconfig#/definitions/reportPrivateUsage"
},
"reportPropertyTypeMismatch": {
"$ref": "sublime://pyrightconfig#/definitions/reportPropertyTypeMismatch"
},
"reportRedeclaration": {
"$ref": "sublime://pyrightconfig#/definitions/reportRedeclaration"
},
"reportReturnType": {
"$ref": "sublime://pyrightconfig#/definitions/reportReturnType"
},
"reportSelfClsParameterName": {
"$ref": "sublime://pyrightconfig#/definitions/reportSelfClsParameterName"
},
"reportShadowedImports": {
"$ref": "sublime://pyrightconfig#/definitions/reportShadowedImports"
},
"reportTypeCommentUsage": {
"$ref": "sublime://pyrightconfig#/definitions/reportTypeCommentUsage"
},
"reportTypedDictNotRequiredAccess": {
"$ref": "sublime://pyrightconfig#/definitions/reportTypedDictNotRequiredAccess"
},
"reportUnboundVariable": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnboundVariable"
},
"reportUndefinedVariable": {
"$ref": "sublime://pyrightconfig#/definitions/reportUndefinedVariable"
},
"reportUnhashable": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnhashable"
},
"reportUninitializedInstanceVariable": {
"$ref": "sublime://pyrightconfig#/definitions/reportUninitializedInstanceVariable"
},
"reportUnknownArgumentType": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnknownArgumentType"
},
"reportUnknownLambdaType": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnknownLambdaType"
},
"reportUnknownMemberType": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnknownMemberType"
},
"reportUnknownParameterType": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnknownParameterType"
},
"reportUnknownVariableType": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnknownVariableType"
},
"reportUnnecessaryCast": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryCast"
},
"reportUnnecessaryComparison": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryComparison"
},
"reportUnnecessaryContains": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryContains"
},
"reportUnnecessaryIsInstance": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryIsInstance"
},
"reportUnnecessaryTypeIgnoreComment": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryTypeIgnoreComment"
},
"reportUnsupportedDunderAll": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnsupportedDunderAll"
},
"reportUntypedBaseClass": {
"$ref": "sublime://pyrightconfig#/definitions/reportUntypedBaseClass"
},
"reportUntypedClassDecorator": {
"$ref": "sublime://pyrightconfig#/definitions/reportUntypedClassDecorator"
},
"reportUntypedFunctionDecorator": {
"$ref": "sublime://pyrightconfig#/definitions/reportUntypedFunctionDecorator"
},
"reportUntypedNamedTuple": {
"$ref": "sublime://pyrightconfig#/definitions/reportUntypedNamedTuple"
},
"reportUnusedCallResult": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnusedCallResult"
},
"reportUnusedClass": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnusedClass"
},
"reportUnusedCoroutine": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnusedCoroutine"
},
"reportUnusedExcept": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnusedExcept"
},
"reportUnusedExpression": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnusedExpression"
},
"reportUnusedFunction": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnusedFunction"
},
"reportUnusedImport": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnusedImport"
},
"reportUnusedVariable": {
"$ref": "sublime://pyrightconfig#/definitions/reportUnusedVariable"
},
"reportWildcardImportFromLibrary": {
"$ref": "sublime://pyrightconfig#/definitions/reportWildcardImportFromLibrary"
},
"strictDictionaryInference": {
"$ref": "sublime://pyrightconfig#/definitions/strictDictionaryInference"
},
"strictListInference": {
"$ref": "sublime://pyrightconfig#/definitions/strictListInference"
},
"strictParameterNoneValue": {
"$ref": "sublime://pyrightconfig#/definitions/strictParameterNoneValue"
},
"strictSetInference": {
"$ref": "sublime://pyrightconfig#/definitions/strictSetInference"
}
},
"type": "object"
},
"python.analysis.extraPaths": {
"$ref": "sublime://pyrightconfig#/definitions/extraPaths"
},
"python.analysis.logLevel": {
"default": "Information",
"description": "Specifies the level of logging for the Output panel",
"enum": [
"Error",
"Warning",
"Information",
"Trace"
],
"type": "string"
},
"python.analysis.stubPath": {
"$ref": "sublime://pyrightconfig#/definitions/stubPath"
},
"python.analysis.typeCheckingMode": {
"$ref": "sublime://pyrightconfig#/definitions/typeCheckingMode"
},
"python.analysis.typeshedPaths": {
"default": [],
"description": "Paths to look for typeshed modules.",
"items": {
"type": "string"
},
"type": "array"
},
"python.analysis.useLibraryCodeForTypes": {
"$ref": "sublime://pyrightconfig#/definitions/useLibraryCodeForTypes"
},
"python.pythonPath": {
"default": "python",
"description": "Path to Python, you can use a custom version of Python.",
"type": "string"
},
"python.venvPath": {
"$ref": "sublime://pyrightconfig#/definitions/venvPath"
},
"statusText": {
"default": "{% set parts = [] %}{% if server_version %}{% do parts.append('v' + server_version) %}{% endif %}{% if venv %}{% do parts.append('venv: ' + venv.venv_prompt) %}{% do parts.append('py: ' + venv.python_version) %}{% do parts.append('by: ' + venv.finder_name) %}{% endif %}{{ parts|join('; ') }}",
"markdownDescription": "The (Jinja2) template of the status bar text which is inside the parentheses `(...)`. See https://jinja.palletsprojects.com/templates/",
"type": "string"
},
"venvStrategies": {
"default": [],
"description": "The strategies used to find a virtual environment in order.",
"items": {
"enum": [
"any_subdirectory",
"env_var_conda_prefix",
"env_var_virtual_env",
"hatch",
"local_dot_venv",
"pdm",
"pipenv",
"poetry",
"pyenv",
"rye"
],
"markdownEnumDescriptions": [
"Finds the virtual environment with any subdirectory.",
"Finds the virtual environment using the `CONDA_PREFIX` environment variable.",
"Finds the virtual environment using the `VIRTUAL_ENV` environment variable.",
"Finds the virtual environment using `hatch`.",
"Finds the virtual environment `.venv` or `venv` directory.",
"Finds the virtual environment using `pdm`.",
"Finds the virtual environment using `pipenv`.",
"Finds the virtual environment using `poetry`.",
"Finds the virtual environment using `pyenv`.",
"Finds the virtual environment using `rye`."
]
},
"type": "array"
}
}
}
}
}
}
}
},
{
"file_patterns": [
"/pyrightconfig.json"
],
"schema": {
"$id": "sublime://pyrightconfig",
"$schema": "http://json-schema.org/draft-07/schema#",
"allowComments": true,
"allowTrailingCommas": true,
"definitions": {
"analyzeUnannotatedFunctions": {
"default": true,
"title": "Analyze and report diagnostics for functions that have no annotations",
"type": "boolean"
},
"deprecateTypingAliases": {
"default": false,
"title": "Treat typing-specific aliases to standard types as deprecated",
"type": "boolean"
},
"diagnostic": {
"anyOf": [
{
"type": "boolean"
},
{
"enum": [
"none",
"information",
"warning",
"error"
],
"type": "string"
}
]
},
"disableBytesTypePromotions": {
"default": true,
"title": "Do not treat `bytearray` and `memoryview` as implicit subtypes of `bytes`",
"type": "boolean"
},
"enableExperimentalFeatures": {
"default": false,
"title": "Enable the use of experimental features that are not part of the Python typing spec",
"type": "boolean"
},
"enableReachabilityAnalysis": {
"default": true,
"title": "Identify code determined to be unreachable through type analysis",
"type": "boolean"
},
"enableTypeIgnoreComments": {
"default": true,
"title": "Allow \"# type: ignore\" comments",
"type": "boolean"
},
"extraPaths": {
"items": {
"default": "",
"pattern": "^(.*)$",
"title": "Additional import search resolution path",
"type": "string"
},
"title": "Additional import search resolution paths",
"type": "array"
},
"pythonPlatform": {
"default": "",
"examples": [
"Linux"
],
"pattern": "^(Linux|Windows|Darwin|All)$",
"title": "Python platform to assume during type analysis",
"type": "string"
},
"pythonVersion": {
"default": "",
"examples": [
"3.7"
],
"pattern": "^3\\.[0-9]+$",
"title": "Python version to assume during type analysis",
"type": "string"
},
"reportAbstractUsage": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempted instantiation of abstract class"
},
"reportArgumentType": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of incompatible argument type"
},
"reportAssertAlwaysTrue": {
"$ref": "#/definitions/diagnostic",
"default": "warning",
"title": "Controls reporting assert expressions that will always evaluate to true"
},
"reportAssertTypeFailure": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of type mismatch detected by typing.assert_type call"
},
"reportAssignmentType": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of type incompatibilities for assignments"
},
"reportAttributeAccessIssue": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of issues related to attribute accesses"
},
"reportCallInDefaultInitializer": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting usage of function calls within a default value initializer expression"
},
"reportCallIssue": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of issues related to call expressions and arguments"
},
"reportConstantRedefinition": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of attempts to redefine variables that are in all-caps"
},
"reportDeprecated": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of use of deprecated class or function"
},
"reportDuplicateImport": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of symbols or modules that are imported more than once"
},
"reportFunctionMemberAccess": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of member accesses on function objects"
},
"reportGeneralTypeIssues": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of general type issues"
},
"reportImplicitOverride": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting overridden methods that are missing an `@override` decorator"
},
"reportImplicitStringConcatenation": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting usage of implicit concatenation of string literals"
},
"reportImportCycles": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of module imports that create cycles in import graph"
},
"reportIncompatibleMethodOverride": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of method overrides in subclasses that redefine the method in an incompatible way"
},
"reportIncompatibleVariableOverride": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of overrides in subclasses that redefine a variable in an incompatible way"
},
"reportIncompleteStub": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of incomplete type stubs that declare a module-level __getattr__ function"
},
"reportInconsistentConstructor": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of __init__ and __new__ methods whose signatures are inconsistent"
},
"reportInconsistentOverload": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of inconsistencies between function overload signatures"
},
"reportIndexIssue": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of issues related to index operations and expressions"
},
"reportInvalidStringEscapeSequence": {
"$ref": "#/definitions/diagnostic",
"default": "warning",
"title": "Controls reporting of invalid escape sequences used within string literals"
},
"reportInvalidStubStatement": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of type stub statements that do not conform to PEP 484"
},
"reportInvalidTypeArguments": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of invalid type argument usage"
},
"reportInvalidTypeForm": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of type expressions that use an invalid form"
},
"reportInvalidTypeVarUse": {
"$ref": "#/definitions/diagnostic",
"default": "warning",
"title": "Controls reporting improper use of type variables within function signatures"
},
"reportMatchNotExhaustive": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of 'match' statements that do not exhaustively match all possible values"
},
"reportMissingImports": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of imports that cannot be resolved"
},
"reportMissingModuleSource": {
"$ref": "#/definitions/diagnostic",
"default": "warning",
"title": "Controls reporting of imports that cannot be resolved to source files"
},
"reportMissingParameterType": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting input parameters that are missing a type annotation"
},
"reportMissingSuperCall": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of missing call to parent class for inherited `__init__` methods"
},
"reportMissingTypeArgument": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting generic class reference with missing type arguments"
},
"reportMissingTypeStubs": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of imports that cannot be resolved to type stub files"
},
"reportNoOverloadImplementation": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of an overloaded function or method with a missing implementation"
},
"reportOperatorIssue": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of diagnostics related to unary and binary operators"
},
"reportOptionalCall": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to call a variable with Optional type"
},
"reportOptionalContextManager": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to use an Optional type as a parameter to a with statement"
},
"reportOptionalIterable": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to use an Optional type as an iterable value"
},
"reportOptionalMemberAccess": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to access a member of a variable with Optional type"
},
"reportOptionalOperand": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to use an Optional type as an operand for a binary or unary operator"
},
"reportOptionalSubscript": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to subscript (index) a variable with Optional type"
},
"reportOverlappingOverload": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of function overloads that overlap in signature and obscure each other or do not agree on return type"
},
"reportPossiblyUnboundVariable": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to use variable that is possibly unbound on some code paths"
},
"reportPrivateImportUsage": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of improper usage of symbol imported from a \"py.typed\" module that is not re-exported from that module"
},
"reportPrivateUsage": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of private variables and functions used outside of the owning class or module and usage of protected members outside of subclasses"
},
"reportPropertyTypeMismatch": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of property getter/setter type mismatches"
},
"reportRedeclaration": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to declare the type of a symbol multiple times"
},
"reportReturnType": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of function return type incompatibility"
},
"reportSelfClsParameterName": {
"$ref": "#/definitions/diagnostic",
"default": "warning",
"title": "Controls reporting missing or misnamed self parameters"
},
"reportShadowedImports": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of shadowed imports of stdlib modules"
},
"reportTypeCommentUsage": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of deprecated type comment usage"
},
"reportTypedDictNotRequiredAccess": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to access a non-required key in a TypedDict without a check for its presence"
},
"reportUnboundVariable": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to use an unbound variable"
},
"reportUndefinedVariable": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of attempts to use an undefined variable"
},
"reportUnhashable": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of unhashable object in container that requires hashability"
},
"reportUninitializedInstanceVariable": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of instance variables that are not initialized in the constructor"
},
"reportUnknownArgumentType": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting argument expressions whose types are unknown"
},
"reportUnknownLambdaType": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting input and return parameters for lambdas whose types are unknown"
},
"reportUnknownMemberType": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting class and instance variables whose types are unknown"
},
"reportUnknownParameterType": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting input and return parameters whose types are unknown"
},
"reportUnknownVariableType": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting local variables whose types are unknown"
},
"reportUnnecessaryCast": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting calls to 'cast' that are unnecessary"
},
"reportUnnecessaryComparison": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting the use of '==' or '!=' comparisons that are unnecessary"
},
"reportUnnecessaryContains": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting the use of 'in' operations that are unnecessary"
},
"reportUnnecessaryIsInstance": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting calls to 'isinstance' or 'issubclass' where the result is statically determined to be always (or never) true"
},
"reportUnnecessaryTypeIgnoreComment": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of '# type: ignore' comments that have no effect'"
},
"reportUnsupportedDunderAll": {
"$ref": "#/definitions/diagnostic",
"default": "warning",
"title": "Controls reporting of unsupported operations performed on __all__"
},
"reportUntypedBaseClass": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of a base class of an unknown type, which obscures most type checking for the class"
},
"reportUntypedClassDecorator": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of class decorators without type annotations, which obscure class types"
},
"reportUntypedFunctionDecorator": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of function decorators without type annotations, which obscure function types"
},
"reportUntypedNamedTuple": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of a named tuple definition that does not contain type information"
},
"reportUnusedCallResult": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of call expressions whose results are not consumed"
},
"reportUnusedClass": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of private classes that are not accessed"
},
"reportUnusedCoroutine": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of call expressions that returns Coroutine whose results are not consumed"
},
"reportUnusedExcept": {
"$ref": "#/definitions/diagnostic",
"default": "error",
"title": "Controls reporting of unreachable except clauses"
},
"reportUnusedExpression": {
"$ref": "#/definitions/diagnostic",
"default": "warning",
"title": "Controls reporting of simple expressions whose value is not used in any way"
},
"reportUnusedFunction": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of private functions or methods that are not accessed"
},
"reportUnusedImport": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of imported symbols that are not referenced within the source file"
},
"reportUnusedVariable": {
"$ref": "#/definitions/diagnostic",
"default": "none",
"title": "Controls reporting of local variables that are not accessed"
},
"reportWildcardImportFromLibrary": {
"$ref": "#/definitions/diagnostic",
"default": "warning",
"title": "Controls reporting of wildcard import from external library"
},
"strictDictionaryInference": {
"default": false,
"title": "Infer strict types for dictionary expressions",
"type": "boolean"
},
"strictListInference": {
"default": false,
"title": "Infer strict types for list expressions",
"type": "boolean"
},
"strictParameterNoneValue": {
"default": true,
"title": "Allow implicit Optional when default parameter value is None",
"type": "boolean"
},
"strictSetInference": {
"default": false,
"title": "Infer strict types for set expressions",
"type": "boolean"
}
},
"description": "Pyright Configuration Schema",
"properties": {
"analyzeUnannotatedFunctions": {
"$ref": "#/definitions/analyzeUnannotatedFunctions"
},
"defineConstant": {
"additionalProperties": {
"title": "Value of constant (boolean or string)",
"type": [
"string",
"boolean"
]
},
"properties": {},
"title": "Identifiers that should be treated as constants",
"type": "object"
},
"deprecateTypingAliases": {
"$ref": "#/definitions/deprecateTypingAliases"
},
"disableBytesTypePromotions": {
"$ref": "#/definitions/disableBytesTypePromotions"
},
"enableExperimentalFeatures": {
"$ref": "#/definitions/enableExperimentalFeatures"
},
"enableReachabilityAnalysis": {
"$ref": "#/definitions/enableReachabilityAnalysis"
},
"enableTypeIgnoreComments": {
"$ref": "#/definitions/enableTypeIgnoreComments"
},
"exclude": {
"items": {
"pattern": "^(.*)$",
"title": "File or directory to exclude from type analysis",
"type": "string"
},
"title": "Files and directories excluded from type analysis",
"type": "array"
},
"executionEnvironments": {
"items": {
"properties": {