@@ -94,17 +94,17 @@ dependencies = ["mypy~=1.6.0", "traitlets>=5.11.2"]
94
94
test = " mypy --install-types --non-interactive {args}"
95
95
96
96
[tool .hatch .envs .lint ]
97
- dependencies = [" black==23.3.0 " , " mdformat>0.7" , " ruff==0.0.281 " ]
97
+ dependencies = [" mdformat>0.7" , " ruff==0.1.3 " ]
98
98
detached = true
99
99
[tool .hatch .envs .lint .scripts ]
100
100
style = [
101
101
" ruff {args:.}" ,
102
- " black --check --diff {args:.}" ,
102
+ " ruff format {args:.}" ,
103
103
" mdformat --check {args:*.md}"
104
104
]
105
105
fmt = [
106
- " black {args:.}" ,
107
106
" ruff --fix {args:.}" ,
107
+ " ruff format {args:.}" ,
108
108
" mdformat {args:*.md}"
109
109
]
110
110
@@ -153,16 +153,13 @@ exclude_lines = [
153
153
" @(abc\\ .)?abstractmethod" ,
154
154
]
155
155
156
- [tool .black ]
157
- line-length = 100
158
- skip-string-normalization = true
159
- target-version = [" py38" ]
160
-
161
156
[tool .ruff ]
162
157
target-version = " py38"
163
158
line-length = 100
159
+
160
+ [tool .ruff .lint ]
164
161
select = [
165
- " A" , " B" , " C" , " DTZ" , " E" , " EM" , " F" , " FBT" , " I" , " ICN" , " ISC " , " N" ,
162
+ " A" , " B" , " C" , " DTZ" , " E" , " EM" , " F" , " FBT" , " I" , " ICN" , " N" ,
166
163
" PLC" , " PLE" , " PLR" , " PLW" , " Q" , " RUF" , " S" , " SIM" , " T" , " TID" , " UP" ,
167
164
" W" , " YTT" ,
168
165
]
@@ -183,7 +180,7 @@ unfixable = [
183
180
" RUF100" ,
184
181
]
185
182
186
- [tool .ruff .per-file-ignores ]
183
+ [tool .ruff .lint . per-file-ignores ]
187
184
# B011 Do not call assert False since python -O removes these calls
188
185
# F841 local variable 'foo' is assigned to but never used
189
186
# C408 Unnecessary `dict` call
0 commit comments