@@ -142,21 +142,20 @@ test = "mypy --install-types --non-interactive {args}"
142
142
143
143
[tool .hatch .envs .lint ]
144
144
dependencies = [
145
- " black[jupyter]==22.10.0" ,
146
145
" mdformat>0.7" ,
147
146
" mdformat-gfm>=0.3.5" ,
148
- " ruff==0.0.276 "
147
+ " ruff==0.1.3 "
149
148
]
150
149
detached = true
151
150
[tool .hatch .envs .lint .scripts ]
152
151
style = [
153
152
" ruff {args:.}" ,
154
- " black --check --diff {args:.}" ,
153
+ " ruff format {args:.}" ,
155
154
" mdformat --check {args:CHANGELOG.md}"
156
155
]
157
156
fmt = [
158
- " black {args:.}" ,
159
157
" ruff --fix {args:.}" ,
158
+ " ruff format {args:.}" ,
160
159
" mdformat {args:CHANGELOG.md}"
161
160
]
162
161
@@ -246,16 +245,13 @@ show_error_codes = true
246
245
enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
247
246
warn_unreachable = true
248
247
249
- [tool .black ]
250
- line-length = 100
251
- target-version = [" py37" ]
252
- skip-string-normalization = true
253
-
254
248
[tool .ruff ]
255
- target-version = " py37 "
249
+ target-version = " py38 "
256
250
line-length = 100
251
+
252
+ [tool .ruff .lint ]
257
253
select = [
258
- " A" , " B" , " C" , " DTZ" , " E" , " EM" , " F" , " FBT" , " I" , " ICN" , " ISC " , " N" ,
254
+ " A" , " B" , " C" , " DTZ" , " E" , " EM" , " F" , " FBT" , " I" , " ICN" , " N" ,
259
255
" PLC" , " PLE" , " PLR" , " PLW" , " Q" , " RUF" , " S" , " SIM" , " T" , " TID" , " UP" ,
260
256
" W" , " YTT" ,
261
257
]
@@ -270,7 +266,7 @@ ignore = [
270
266
" RUF012" ,
271
267
]
272
268
273
- [tool .ruff .per-file-ignores ]
269
+ [tool .ruff .lint . per-file-ignores ]
274
270
# S101 Use of `assert` detected
275
271
# F841 Local variable `foo` is assigned to but never used
276
272
# PLR2004 Magic value used in comparison
@@ -290,6 +286,3 @@ exclude = ["tests", "ui-tests", "docs", "node_modules", "setup.py"]
290
286
291
287
[tool .repo-review ]
292
288
ignore = [" PY007" , " PP308" , " GH102" , " PC140" , " PC180" ]
293
-
294
- [tool .codespell ]
295
- ignore-words-list = " hart,noteable"
0 commit comments