File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 22
22
- id : black
23
23
24
24
- repo : https://github.com/astral-sh/ruff-pre-commit
25
- rev : v0.1.9
25
+ rev : v0.2.0
26
26
hooks :
27
27
- id : ruff
28
28
args : [--fix, --exit-non-zero-on-fix]
Original file line number Diff line number Diff line change @@ -138,20 +138,22 @@ distlib = "https://bitbucket.org/pypa/distlib/raw/master/LICENSE.txt"
138
138
webencodings = " https://github.com/SimonSapin/python-webencodings/raw/master/LICENSE"
139
139
140
140
[tool .ruff ]
141
+ target-version = " py37"
142
+ line-length = 88
141
143
extend-exclude = [
142
144
" _vendor" ,
143
145
" ./build" ,
144
146
" .scratch" ,
145
147
" data" ,
146
148
]
149
+
150
+ [tool .ruff .lint ]
147
151
ignore = [
148
152
" B019" ,
149
153
" B020" ,
150
154
" B904" , # Ruff enables opinionated warnings by default
151
155
" B905" , # Ruff enables opinionated warnings by default
152
156
]
153
- target-version = " py37"
154
- line-length = 88
155
157
select = [
156
158
" ASYNC" ,
157
159
" B" ,
@@ -170,22 +172,22 @@ select = [
170
172
" UP032" ,
171
173
]
172
174
173
- [tool .ruff .isort ]
175
+ [tool .ruff .lint . isort ]
174
176
# We need to explicitly make pip "first party" as it's imported by code in
175
177
# the docs and tests directories.
176
178
known-first-party = [" pip" ]
177
179
known-third-party = [" pip._vendor" ]
178
180
179
- [tool .ruff .mccabe ]
181
+ [tool .ruff .lint . mccabe ]
180
182
max-complexity = 33 # default is 10
181
183
182
- [tool .ruff .per-file-ignores ]
184
+ [tool .ruff .lint . per-file-ignores ]
183
185
"noxfile.py" = [" G" ]
184
186
"src/pip/_internal/*" = [" PERF203" ]
185
187
"tests/*" = [" B011" ]
186
188
"tests/unit/test_finder.py" = [" C414" ]
187
189
188
- [tool .ruff .pylint ]
190
+ [tool .ruff .lint . pylint ]
189
191
max-args = 15 # default is 5
190
192
max-branches = 28 # default is 12
191
193
max-returns = 13 # default is 6
You can’t perform that action at this time.
0 commit comments