11[build-system ]
22requires = [" setuptools" , " wheel" ]
3+ build-backend = " setuptools.build_meta"
34
45[tool .ruff ]
56cache-dir = " .tox/.ruff_cache"
@@ -9,7 +10,7 @@ src = ["src", "tests"]
910[tool .ruff .lint ]
1011extend-select = [
1112 " A" , # flake8-builtins
12- # "ARG", # flake8-unused-arguments
13+ " ARG" , # flake8-unused-arguments
1314 " B" , # flake8-bugbear
1415 " C4" , # flake8-comprehensions
1516 " C90" , # mccabe
@@ -33,33 +34,16 @@ extend-select = [
3334 " RET" , # flake8-return
3435 " RUF" , # ruff-specific
3536 " S" , # flake8-bandit
36- # "SIM", # flake8-simplify
37+ " SIM" , # flake8-simplify
3738 " SLF" , # flake8-self
3839 " SLOT" , # flake8-slots
3940 " T10" , # flake8-debugger
4041 " TID" , # flake8-tidy-imports
4142 " TCH" , # flake8-type-checking
42- # "TD", # flake8-todos
43+ " TD" , # flake8-todos
4344 " TRY" , # tryceratops
4445 " W" , # pycodestyle warnings
4546]
46- ignore = [
47- # TODO: gradually remove these (document all the things)
48- " D100" , # Missing docstring in public module
49- " D101" , # Missing docstring in public class
50- " D102" , # Missing docstring in public method
51- " D103" , # Missing docstring in public function
52- " D104" , # Missing docstring in public package
53- " D105" , # Missing docstring in magic method
54- " D200" , # One-line docstring should fit on one line with quotes
55- " D205" , # 1 blank line required between summary line and description
56- " D400" , # First line should end with a period
57- # Not useful:
58- " RET503" , # Missing explicit `return` at the end of function able to return non-`None` value
59- ]
60-
61- [tool .ruff .lint .flake8-builtins ]
62- builtins-ignorelist = [" bin" , " compile" ]
6347
6448[tool .ruff .lint .isort ]
6549order-by-type = false
@@ -69,8 +53,3 @@ max-complexity = 14
6953
7054[tool .ruff .lint .pydocstyle ]
7155convention = " numpy"
72-
73- [tool .ruff .lint .per-file-ignores ]
74- "tests/*" = [
75- " S" , # No security checks for tests
76- ]
0 commit comments