@@ -149,7 +149,6 @@ source = ["pytest_jupyter"]
149149files = " pytest_jupyter"
150150python_version = " 3.8"
151151strict = true
152- show_error_codes = true
153152enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
154153disable_error_code = [" no-untyped-def" ]
155154warn_unreachable = true
@@ -158,25 +157,36 @@ warn_unreachable = true
158157line-length = 100
159158
160159[tool .ruff .lint ]
161- select = [
162- " A" , " B" , " C" , " DTZ" , " E" , " EM" , " F" , " FBT" , " I" , " ICN" , " N" ,
163- " PLC" , " PLE" , " PLR" , " PLW" , " Q" , " RUF" , " S" , " SIM" , " T" , " TID" , " UP" ,
164- " W" , " YTT" ,
160+ extend-select = [
161+ " B" , # flake8-bugbear
162+ " I" , # isort
163+ " ARG" , # flake8-unused-arguments
164+ " C4" , # flake8-comprehensions
165+ " EM" , # flake8-errmsg
166+ " ICN" , # flake8-import-conventions
167+ " G" , # flake8-logging-format
168+ " PGH" , # pygrep-hooks
169+ " PIE" , # flake8-pie
170+ " PL" , # pylint
171+ " PT" , # flake8-pytest-style
172+ " PTH" , # flake8-use-pathlib
173+ " RET" , # flake8-return
174+ " RUF" , # Ruff-specific
175+ " SIM" , # flake8-simplify
176+ " T20" , # flake8-print
177+ " UP" , # pyupgrade
178+ " YTT" , # flake8-2020
179+ " EXE" , # flake8-executable
180+ " NPY" , # NumPy specific rules
181+ " PD" , # pandas-vet
182+ " PYI" , # flake8-pyi
165183]
166184ignore = [
167- # Q000 Single quotes found but double quotes preferred
168- " Q000" ,
169- # FBT001 Boolean positional arg in function definition
170- " FBT001" , " FBT002" , " FBT003" ,
171- # E501 Line too long (158 > 100 characters)
172- " E501" ,
173- # SIM105 Use `contextlib.suppress(...)`
174- " SIM105" ,
175- # PLR0913 Too many arguments to function call
176- " PLR0913" ,
177- # RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
178- " RUF012" ,
179- ]
185+ " PLR" , # Design related pylint codes
186+ " SIM105" , # Use `contextlib.suppress(...)`
187+ " RUF012" , # Mutable class attributes should be annotated with
188+ " ARG001" , # Unused function argument:
189+ ]
180190unfixable = [
181191 # Don't touch print statements
182192 " T201" ,
@@ -186,14 +196,9 @@ unfixable = [
186196
187197[tool .ruff .lint .per-file-ignores ]
188198# B011 Do not call assert False since python -O removes these calls
189- # F841 local variable 'foo' is assigned to but never used
190- # C408 Unnecessary `dict` call
191- # E402 Module level import not at top of file
192199# T201 `print` found
193200# B007 Loop control variable `i` not used within the loop body.
194- # N802 Function name `assertIn` should be lowercase
195- # S101 Use of `assert` detected
196- "tests/*" = [" B011" , " F841" , " C408" , " E402" , " T201" , " B007" , " N802" , " S101" ]
201+ "tests/*" = [" B011" , " C4" , " T201" , " B007" , " PTH" , " ARG" ]
197202
198203[tool .interrogate ]
199204ignore-init-module =true
@@ -204,6 +209,3 @@ ignore-nested-functions=true
204209ignore-nested-classes =true
205210fail-under =100
206211exclude = [" docs" , " tests" ]
207-
208- [tool .repo-review ]
209- ignore = [" PY007" , " PP308" , " GH102" ]
0 commit comments