@@ -64,11 +64,26 @@ version.source = "vcs"
64
64
line-length = 120
65
65
66
66
[tool .ruff ]
67
- line-length = 120
68
67
target-version = " py38"
68
+ line-length = 120
69
69
lint.select = [
70
70
" ALL" ,
71
71
]
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
+ ]
72
87
lint.isort = { known-first-party = [
73
88
" sphinx_argparse_cli" ,
74
89
], required-imports = [
@@ -77,29 +92,12 @@ lint.isort = { known-first-party = [
77
92
lint.ignore = [
78
93
" ANN101" , # no type annotation for self
79
94
" ANN401" , # allow Any as type annotation
95
+ " COM812" , # Conflict with formatter
96
+ " CPY" , # No copyright statements
80
97
" D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
81
98
" 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
84
99
" 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
103
101
]
104
102
105
103
[tool .codespell ]
0 commit comments