Skip to content

Commit c5dacc1

Browse files
committed
Bump ruff to 0.2.0
1 parent 8180c7d commit c5dacc1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

+1-3
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.15
22+
rev: v0.2.0
2323
hooks:
2424
- id: ruff
2525
args: [--exit-non-zero-on-fix]
@@ -30,8 +30,6 @@ repos:
3030
files: ^pandas
3131
exclude: ^pandas/tests
3232
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-fix]
33-
- id: ruff
34-
args: [--preview, --exit-non-zero-on-fix, --select=PLW2901]
3533
- id: ruff-format
3634
- repo: https://github.com/jendrikseipp/vulture
3735
rev: v2.11

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ environment = {CFLAGS="-g0"}
191191
line-length = 88
192192
target-version = "py310"
193193
fix = true
194+
195+
[tool.ruff.lint]
194196
unfixable = []
195197
typing-modules = ["pandas._typing"]
196198

@@ -294,7 +296,7 @@ ignore = [
294296
# Use `typing.NamedTuple` instead of `collections.namedtuple`
295297
"PYI024",
296298
# No builtin `eval()` allowed
297-
"PGH001",
299+
# "S307", # flake8-bandit is not enabled yet
298300
# compare-to-empty-string
299301
"PLC1901",
300302
# while int | float can be shortened to float, the former is more explicit
@@ -352,7 +354,7 @@ exclude = [
352354
"env",
353355
]
354356

355-
[tool.ruff.per-file-ignores]
357+
[tool.ruff.lint.per-file-ignores]
356358
# relative imports allowed for asv_bench
357359
"asv_bench/*" = ["TID", "NPY002"]
358360
# to be enabled gradually

0 commit comments

Comments
 (0)