@@ -103,11 +103,11 @@ build.targets.sdist.include = ["/src", "/tests", "/tox.ini"]
103
103
version.source = " vcs"
104
104
105
105
[tool .ruff ]
106
- select = [" ALL" ]
107
106
line-length = 120
108
107
target-version = " py38"
109
- isort = { known-first-party = [" tox" , " tests" ], required-imports = [" from __future__ import annotations" ] }
110
- ignore = [
108
+ lint.isort = { known-first-party = [" tox" , " tests" ], required-imports = [" from __future__ import annotations" ] }
109
+ lint.select = [" ALL" ]
110
+ lint.ignore = [
111
111
" CPY" , # No copyright header
112
112
" INP001" , # no implicit namespaces here
113
113
" D" , # ignore documentation for now
@@ -118,21 +118,16 @@ ignore = [
118
118
" D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
119
119
" S104" , # Possible binding to all interfaces
120
120
" COM812" , # conflicts with formatter
121
- " COM819" , # conflicts with formatter
122
- " E501" , # conflicts with formatter
123
121
" ISC001" , # conflicts with formatter
124
- " Q000" , # conflicts with formatter
125
- " Q001" , # conflicts with formatter
126
- " Q002" , # conflicts with formatter
127
- " Q003" , # conflicts with formatter
128
- " W191" , # conflicts with formatter
129
122
" S404" , # Using subprocess is alright.
130
123
" PLR0914" , # # Too many local variables
131
124
" PLR0917" , # # Too many positional arguments
132
125
]
133
126
format.preview = true
134
127
lint.preview = true
135
- [tool .ruff .per-file-ignores ]
128
+ format.docstring-code-format = true
129
+ format.docstring-code-line-length = 100
130
+ [tool .ruff .lint .per-file-ignores ]
136
131
"tests/**/*.py" = [
137
132
" S101" , # asserts allowed in tests...
138
133
" FBT" , # don"t care about booleans as positional arguments in tests
@@ -142,6 +137,13 @@ lint.preview = true
142
137
" PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
143
138
]
144
139
140
+ [tool .codespell ]
141
+ builtin = " clear,usage,en-GB_to_en-US"
142
+ write-changes = true
143
+ skip = " *.svg"
144
+ ignore-words = " ignore-words.txt"
145
+ count = true
146
+
145
147
[tool .pytest .ini_options ]
146
148
testpaths = [" tests" ]
147
149
addopts = " --tb=auto -ra --showlocals --no-success-flaky-report"
0 commit comments