@@ -60,7 +60,7 @@ target-version = "py{{ python_version|replace('.', '') }}"
6060select = ["ALL"]
6161ignore = [
6262 "COM", # trailing commas are not needed
63- "ERA", # allow commentted code
63+ "ERA", # allow commented code
6464 "ISC001", # conflicts with formatter
6565 "PTH", # allow opening files without pathlib
6666 "TRY003", # allow exception messages as string literals
@@ -76,18 +76,18 @@ extend-select = [
7676 "PD007", # pandas-use-of-dot-ix
7777 "PD101", # pandas-nunique-constant-series-check
7878]
79-
79+ # outside the module code, the ruff checks can be less strict
8080[tool.ruff.lint.per-file-ignores]
8181"!{{module_name}}/**.py" = [
82- "ANN",
83- "D",
84- "S101",
85- "PLR2004",
86- "T20",
87- "EM",
88- "PLR0913",
89- "FBT003",
90- "INP001",
82+ "ANN", # type annotations
83+ "D", # docstrings
84+ "S101", # assertions. needed for unit tests
85+ "PLR2004", # magic valuues
86+ "T20", # print function
87+ "EM", # error messages
88+ "PLR0913", # maximum arguments in functions
89+ "FBT003", # positional boolean in function calls
90+ "INP001", # implicit namespace packages
9191]
9292
9393[tool.ruff.lint.isort]
0 commit comments