@@ -22,9 +22,126 @@ packages = ["pyfirebase_mapswipe"]
2222[tool .pyright ]
2323venvPath = " ."
2424venv = " .venv"
25+ exclude = [
26+ " **/__pycache__" ,
27+ " **/snap_test_*.py" ,
28+ " .venv/" ,
29+ ]
30+ typeCheckingMode = " standard"
31+ analyzeUnannotatedFunctions = true
32+ enableReachabilityAnalysis = true
33+ strictDictionaryInference = true
34+ strictListInteference = true
35+ strictSetInference = true
36+ reportCallInDefaultInitializer = " information"
37+ reportConstantRedefinition = " error"
38+ reportDeprecated = " information"
39+ reportDuplicateImport = " warning"
40+ reportImplicitOverride = " warning"
41+ reportImplicitStringConcatenation = " none"
42+ reportImportCycles = " warning"
43+ reportInconsistentConstructor = " warning"
44+ reportMatchNotExhaustive = " warning"
45+ reportMissingImports = " error"
46+ reportMissingParameterType = " warning"
47+ reportMissingTypeArgument = " warning"
48+ reportMissingTypeStubs = " warning"
49+ reportPrivateUsage = " error"
50+ reportPropertyTypeMismatch = " error"
51+ reportShadowedImports = " error"
52+ reportUninitializedInstanceVariable = " warning"
53+ reportUnknownArgumentType = " none"
54+ reportUnknownLambdaType = " none"
55+ reportUnknownMemberType = " none"
56+ reportUnknownParameterType = " none"
57+ reportUnknownVariableType = " none"
58+ reportUnnecessaryCast = " warning"
59+ reportUnnecessaryComparison = " warning"
60+ reportUnnecessaryContains = " warning"
61+ reportUnnecessaryIsInstance = " warning"
62+ reportUntypedBaseClass = " warning"
63+ reportUntypedClassDecorator = " warning"
64+ reportUntypedFunctionDecorator = " warning"
65+ reportUntypedNamedTuple = " warning"
66+ reportUnusedClass = " warning"
67+ reportUnusedExpression = " warning"
68+ reportUnusedFunction = " warning"
69+ reportUnusedImport = " warning"
70+ reportUnusedVariable = " warning"
71+ reportPrivateImportUsage = " error"
2572
2673[tool .ruff .lint ]
2774flake8-builtins.builtins-strict-checking = false
75+ extend-select = [
76+ " I" , # isort
77+ " E" , # pycodestyle
78+ " F" , # pyflakes
79+ " B" , # flake8-bugbear
80+ " A" , # flake8-builtins
81+ " W" , # pycodestyle
82+ " DJ" , # flake8-django
83+ " AIR" , # airflow
84+ " COM" , # flake8-commas
85+ " INT" , # flake8-gettext
86+ " ISC" , # flake8-implicit-str-concat
87+ " ICN" , # flake8-import-conventions
88+ " LOG" , # flake8-logging
89+ " G" , # flake8-logging-format
90+ " T20" , # flake8-print
91+ " TID" , # flake8-tidy-imports
92+ " PT" , # flake8-pytest-style
93+ " Q" , # flake8-quotes
94+ " RET" , # flake8-return
95+ " SIM" , # flake8-simplify
96+ " TC" , # flake8-type-checking
97+ " PTH" , # flake8-use-pathlib
98+ " UP" , # pyupgrad
99+
100+ " ASYNC" , # flake8-async
101+ " S" , # flake8-bandit
102+ " BLE" , # blind-except
103+ # "FBT", # flake8-boolean-trap
104+ # "C4", # flake8-comprehensions
105+ # "DTZ", # flake8-datetimez
106+ # "EM", # flake8-errmsg
107+ " FA" , # flake8-future-annotations
108+ " INP" , # flake8-no-pep420
109+ " PIE" , # flake8-pie
110+ " RSE" , # flake8-raise
111+ # "SLF", # flake8-self
112+ " SLOT" , # flake8-slots
113+ " FLY" , # flynt
114+ " C90" , # mccabe
115+ # "N", # pep8-naming
116+ # "PERF", # Perflint
117+ " PGH" , # pygrep-hooks
118+ " PLC" , # Convention
119+ " PLE" , # Error
120+ # "PLR", # Refactor
121+ " PLW" , # Warning
122+ " FURB" , # refurb
123+ " RUF" , # Ruff-specific rules
124+ " TRY" , # tryceratops
125+ ]
28126ignore = [
127+ " C901" , # C90 complex-structure
128+ " E701" , # E multiple-statements-on-one-line-colon
129+ " E203" , # E whitespace-before-punctuation
130+ " DJ001" , # DJ django-nullable-model-string-field
131+ # FIXME(thenav56): Check if we can enable G201 and keep sending logs to sentry
132+ " G201" , # G logging-exc-info
133+
134+ " BLE001" , # BLE blind-except (NOTE: "except Exception" is already explicitly defined)
135+ " S101" , # S assert
136+ " S608" , # hardcoded-sql-expression
137+ " RUF012" , # mutable-class-default
138+ " TRY300" , # try-consider-else
139+ " TRY003" , # raise-vanilla-args
140+ " TRY002" , # raise-vanilla-class
141+ " TRY301" , # raise-within-try
142+ " TRY400" , # error-instead-of-exception
143+
144+ " E501" ,
29145 " TRY004" ,
146+ " TC003" ,
30147]
0 commit comments