Skip to content

Commit

Permalink
Bump ruff to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tqa236 committed Feb 1, 2024
1 parent 8180c7d commit c5dacc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ci:
skip: [pylint, pyright, mypy]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.15
rev: v0.2.0
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]
Expand All @@ -30,8 +30,6 @@ repos:
files: ^pandas
exclude: ^pandas/tests
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-fix]
- id: ruff
args: [--preview, --exit-non-zero-on-fix, --select=PLW2901]
- id: ruff-format
- repo: https://github.com/jendrikseipp/vulture
rev: v2.11
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ environment = {CFLAGS="-g0"}
line-length = 88
target-version = "py310"
fix = true

[tool.ruff.lint]
unfixable = []
typing-modules = ["pandas._typing"]

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

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
# relative imports allowed for asv_bench
"asv_bench/*" = ["TID", "NPY002"]
# to be enabled gradually
Expand Down

0 comments on commit c5dacc1

Please sign in to comment.