@@ -68,27 +68,38 @@ version.source = "vcs"
68
68
line-length = 120
69
69
70
70
[tool .ruff ]
71
- select = [" ALL" ]
72
71
line-length = 120
73
72
target-version = " py37"
74
- isort = {known-first-party = [" tox" , " tests" ], required-imports = [" from __future__ import annotations" ]}
75
- ignore = [
76
- " ANN101" , # no typoe annotation for self
73
+ lint.select = [" ALL" ]
74
+ lint.isort = {known-first-party = [" sphinx_autodoc_typehints" , " tests" ], required-imports = [" from __future__ import annotations" ]}
75
+ lint.ignore = [
76
+ " ANN101" , # no type annotation for self
77
77
" ANN401" , # allow Any as type annotation
78
78
" D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
79
79
" D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
80
80
" S104" , # Possible binding to all interface
81
+ " COM812" , # Conflict with formatter
82
+ " ISC001" , # Conflict with formatter
83
+ " CPY" , # No copyright statements
81
84
]
82
- [tool .ruff .per-file-ignores ]
85
+ [tool .ruff .lint . per-file-ignores ]
83
86
"tests/**/*.py" = [
84
87
" S101" , # asserts allowed in tests...
85
88
" FBT" , # don"t care about booleans as positional arguments in tests
86
89
" INP001" , # no implicit namespace
87
- " D" , # don" t care about documentation in tests
90
+ " D" , # don' t care about documentation in tests
88
91
" S603" , # `subprocess` call: check for execution of untrusted input
89
92
" PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
93
+ " PLR0913" , # any number of arguments in tests
94
+ " PLR0917" , # any number of arguments in tests
90
95
]
91
96
97
+ [tool .codespell ]
98
+ builtin = " clear,usage,en-GB_to_en-US"
99
+ ignore-words = " ignore-words.txt"
100
+ write-changes = true
101
+ count = true
102
+
92
103
[tool .pytest .ini_options ]
93
104
testpaths = [" tests" ]
94
105
0 commit comments