Skip to content

Commit ede7dc5

Browse files
committed
Bump ruff to 0.2.2
1 parent 63dc0f7 commit ede7dc5

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ci:
1919
skip: [pylint, pyright, mypy]
2020
repos:
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.1.13
22+
rev: v0.2.2
2323
hooks:
2424
- id: ruff
2525
args: [--exit-non-zero-on-fix]
@@ -33,7 +33,7 @@ repos:
3333
- id: ruff-format
3434
exclude: ^scripts
3535
- repo: https://github.com/jendrikseipp/vulture
36-
rev: 'v2.10'
36+
rev: v2.11
3737
hooks:
3838
- id: vulture
3939
entry: python scripts/run_vulture.py

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ environment = {CFLAGS="-g0"}
186186
line-length = 88
187187
target-version = "py310"
188188
fix = true
189+
190+
[tool.ruff.lint]
189191
unfixable = []
190192
typing-modules = ["pandas._typing"]
191193

@@ -274,6 +276,9 @@ ignore = [
274276
"PYI024",
275277
# No builtin `eval()` allowed
276278
"PGH001",
279+
# "S307", # flake8-bandit is not enabled yet
280+
# compare-to-empty-string
281+
"PLC1901",
277282
# while int | float can be shortened to float, the former is more explicit
278283
"PYI041",
279284
# incorrect-dict-iterator, flags valid Series.items usage
@@ -314,7 +319,7 @@ ignore = [
314319
# pairwise-over-zipped (>=PY310 only)
315320
"RUF007",
316321
# mutable-class-default
317-
"RUF012"
322+
"RUF012",
318323
]
319324

320325
exclude = [
@@ -344,6 +349,7 @@ exclude = [
344349

345350

346351
[tool.ruff.per-file-ignores]
352+
[tool.ruff.lint.per-file-ignores]
347353
# relative imports allowed for asv_bench
348354
"asv_bench/*" = ["TID", "NPY002"]
349355
# to be enabled gradually

scripts/validate_min_versions_in_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_operator_from(dependency: str) -> str | None:
105105

106106

107107
def get_yaml_map_from(
108-
yaml_dic: list[str | dict[str, list[str]]]
108+
yaml_dic: list[str | dict[str, list[str]]],
109109
) -> dict[str, list[str] | None]:
110110
yaml_map: dict[str, list[str] | None] = {}
111111
for dependency in yaml_dic:

0 commit comments

Comments
 (0)