File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 19
19
skip : [pylint, pyright, mypy]
20
20
repos :
21
21
- repo : https://github.com/astral-sh/ruff-pre-commit
22
- rev : v0.1.13
22
+ rev : v0.2.2
23
23
hooks :
24
24
- id : ruff
25
25
args : [--exit-non-zero-on-fix]
33
33
- id : ruff-format
34
34
exclude : ^scripts
35
35
- repo : https://github.com/jendrikseipp/vulture
36
- rev : ' v2.10 '
36
+ rev : v2.11
37
37
hooks :
38
38
- id : vulture
39
39
entry : python scripts/run_vulture.py
Original file line number Diff line number Diff line change @@ -186,6 +186,8 @@ environment = {CFLAGS="-g0"}
186
186
line-length = 88
187
187
target-version = " py310"
188
188
fix = true
189
+
190
+ [tool .ruff .lint ]
189
191
unfixable = []
190
192
typing-modules = [" pandas._typing" ]
191
193
@@ -274,6 +276,9 @@ ignore = [
274
276
" PYI024" ,
275
277
# No builtin `eval()` allowed
276
278
" PGH001" ,
279
+ # "S307", # flake8-bandit is not enabled yet
280
+ # compare-to-empty-string
281
+ " PLC1901" ,
277
282
# while int | float can be shortened to float, the former is more explicit
278
283
" PYI041" ,
279
284
# incorrect-dict-iterator, flags valid Series.items usage
@@ -314,7 +319,7 @@ ignore = [
314
319
# pairwise-over-zipped (>=PY310 only)
315
320
" RUF007" ,
316
321
# mutable-class-default
317
- " RUF012"
322
+ " RUF012" ,
318
323
]
319
324
320
325
exclude = [
@@ -344,6 +349,7 @@ exclude = [
344
349
345
350
346
351
[tool .ruff .per-file-ignores ]
352
+ [tool .ruff .lint .per-file-ignores ]
347
353
# relative imports allowed for asv_bench
348
354
"asv_bench/*" = [" TID" , " NPY002" ]
349
355
# to be enabled gradually
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def get_operator_from(dependency: str) -> str | None:
105
105
106
106
107
107
def get_yaml_map_from (
108
- yaml_dic : list [str | dict [str , list [str ]]]
108
+ yaml_dic : list [str | dict [str , list [str ]]],
109
109
) -> dict [str , list [str ] | None ]:
110
110
yaml_map : dict [str , list [str ] | None ] = {}
111
111
for dependency in yaml_dic :
You can’t perform that action at this time.
0 commit comments