@@ -164,48 +164,20 @@ show-fixes = true
164164extend-exclude = [" \\ {\\ {cookiecutter.project_name\\ }\\ }" ]
165165
166166[tool .ruff .lint ]
167- extend-select = [
168- " ARG" , # flake8-unused-arguments
169- " B" , # flake8-bugbear
170- " BLE" , # flake8-blind-except
171- " C4" , # flake8-comprehensions
172- " DTZ" , # flake8-datetimez
173- " EM" , # flake8-errmsg
174- " EXE" , # flake8-executable
175- " FA" , # flake8-future-annotations
176- " FLY" , # flynt
177- " FURB" , # refurb
178- " G" , # flake8-logging-format
179- " I" , # isort
180- " ICN" , # flake8-import-conventions
181- " ISC" , # flake8-implicit-str-concat
182- " LOG" , # flake8-logging
183- " NPY" , # NumPy specific rules
184- " PD" , # pandas-vet
185- " PERF" , # perflint
186- " PGH" , # pygrep-hooks
187- " PIE" , # flake8-pie
188- " PL" , # pylint
189- " PT" , # flake8-pytest-style
190- " PTH" , # flake8-use-pathlib
191- " PYI" , # flake8-pyi
192- " Q" , # flake8-quotes
193- " RET" , # flake8-return
194- " RSE" , # flake8-raise
195- " RUF" , # Ruff-specific
196- " SIM" , # flake8-simplify
197- " SLOT" , # flake8-slots
198- " T10" , # flake8-debugger
199- " T20" , # flake8-print
200- " TC" , # flake8-type-checking
201- " TID251" , # flake8-tidy-imports.banned-api
202- " TRY" , # tryceratops
203- " UP" , # pyupgrade
204- " YTT" , # flake8-2020
205- ]
167+ select = [" ALL" ]
206168ignore = [
169+ " A002" , # Okay for arguments to shadow builtins
170+ " A004" , # Okay for imports to shadow builtins (like print)
171+ " COM812" , # Trailing commas teach the formatter
172+ " D" , # Docstrings
173+ " E501" , # Line too long
174+ " FBT" , # Boolean args fine
175+ " N" , # Naming
207176 " PLR" , # Design related pylint codes
208177 " RUF012" , # Would require a lot of ClassVar's
178+ " S101" , # Assert is used by mypy and pytest
179+ " S310" , # Okay to open URL
180+ " TID252" , # Relative imports are fine
209181]
210182
211183[tool .ruff .lint .flake8-tidy-imports .banned-api ]
@@ -214,6 +186,10 @@ ignore = [
214186
215187[tool .ruff .lint .per-file-ignores ]
216188"src/sp_repo_review/_compat/**.py" = [" TID251" ]
189+ "src/sp_repo_review/checks/*.py" = [" ERA001" ]
190+ "tests/**" = [" ANN" , " INP001" , " S607" ]
191+ "helpers/**" = [" INP001" , " FIX004" ]
192+ "helpers/extensions.py" = [" ANN" ]
217193
218194[tool .repo-review .ignore ]
219195RTD103 = " Using Ruby instead of Python for docs"
0 commit comments