File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,12 @@ extra-dependencies = [
91
91
[tool .hatch .envs .lint .scripts ]
92
92
typing = " mypy --install-types --non-interactive {args:src tests}"
93
93
style = [
94
- " ruff {args:.}" ,
94
+ " ruff check {args:.}" ,
95
95
" black --check --diff {args:.}" ,
96
96
]
97
97
fmt = [
98
98
" black {args:.}" ,
99
- " ruff --fix {args:.}" ,
99
+ " ruff check --fix {args:.}" ,
100
100
" style" ,
101
101
]
102
102
all = [
@@ -112,6 +112,8 @@ skip-string-normalization = true
112
112
[tool .ruff ]
113
113
target-version = " py37"
114
114
line-length = 120
115
+
116
+ [tool .ruff .lint ]
115
117
select = [
116
118
" A" ,
117
119
" ARG" ,
@@ -161,17 +163,17 @@ unfixable = [
161
163
" F401" ,
162
164
]
163
165
164
- [tool .ruff .isort ]
166
+ [tool .ruff .lint . isort ]
165
167
known-first-party = [" outpack" ]
166
168
167
- [tool .ruff .flake8-tidy-imports ]
169
+ [tool .ruff .lint . flake8-tidy-imports ]
168
170
ban-relative-imports = " all"
169
171
170
- [tool .ruff .per-file-ignores ]
172
+ [tool .ruff .lint . per-file-ignores ]
171
173
# Tests can use magic values, assertions, and relative imports
172
174
"tests/**/*" = [" PLR2004" , " S101" , " TID252" ]
173
175
174
- [tool .ruff .pydocstyle ]
176
+ [tool .ruff .lint . pydocstyle ]
175
177
convention = " numpy"
176
178
177
179
[tool .coverage .run ]
You can’t perform that action at this time.
0 commit comments