@@ -64,11 +64,26 @@ version.source = "vcs"
6464line-length = 120
6565
6666[tool .ruff ]
67- line-length = 120
6867target-version = " py38"
68+ line-length = 120
6969lint.select = [
7070 " ALL" ,
7171]
72+ lint.per-file-ignores."roots/**/*.py" = [
73+ " D" , # no docs
74+ " INP001" , # no namespace
75+ ]
76+ lint.per-file-ignores."tests/**/*.py" = [
77+ " D" , # don"t care about documentation in tests
78+ " FBT" , # don"t care about booleans as positional arguments in tests
79+ " INP001" , # no implicit namespace
80+ " PLC2701" , # private import
81+ " PLR0913" , # any number of arguments in tests
82+ " PLR0917" , # any number of arguments in tests
83+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
84+ " S101" , # asserts allowed in tests...
85+ " S603" , # `subprocess` call: check for execution of untrusted input
86+ ]
7287lint.isort = { known-first-party = [
7388 " sphinx_argparse_cli" ,
7489], required-imports = [
@@ -77,29 +92,12 @@ lint.isort = { known-first-party = [
7792lint.ignore = [
7893 " ANN101" , # no type annotation for self
7994 " ANN401" , # allow Any as type annotation
95+ " COM812" , # Conflict with formatter
96+ " CPY" , # No copyright statements
8097 " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
8198 " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
82- " S104" , # Possible binding to all interface
83- " COM812" , # Conflict with formatter
8499 " ISC001" , # Conflict with formatter
85- " CPY" , # No copyright statements
86- ]
87- [tool .ruff .lint .per-file-ignores ]
88- "tests/**/*.py" = [
89- " S101" , # asserts allowed in tests...
90- " FBT" , # don"t care about booleans as positional arguments in tests
91- " INP001" , # no implicit namespace
92- " D" , # don"t care about documentation in tests
93- " S603" , # `subprocess` call: check for execution of untrusted input
94- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
95- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
96- " PLR0913" , # any number of arguments in tests
97- " PLR0917" , # any number of arguments in tests
98- " PLC2701" , # private import
99- ]
100- "roots/**/*.py" = [
101- " INP001" , # no namespace
102- " D" , # no docs
100+ " S104" , # Possible binding to all interface
103101]
104102
105103[tool .codespell ]
0 commit comments