Skip to content

Commit

Permalink
chore: update pre-commit hooks (#902)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.270 → v0.0.275](astral-sh/ruff-pre-commit@v0.0.270...v0.0.275)

* Ignore RUF012.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jim Pivarski <jpivarski@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and jpivarski authored Jun 29, 2023
1 parent 468b9c5 commit 8fc834f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.270"
rev: "v0.0.275"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ ignore = [
"PLW0120", # else on loop without break
"SIM118", # key in dict, broken since uproot doesn't behave like a dict
"PGH003", # too-broad type ignore
"SIM114", # Combine `if` branches using logical `or` operator
"PGH001", # No eval allowed
"SIM114", # combine `if` branches using logical `or` operator
"PGH001", # no eval allowed
"PLC1901", # empty string is falsey (but I don't want to rely on such weak typing)
"RUF012", # enforces type annotations on a codebase that lacks type annotations
]
exclude = [
"tests/*.py",
Expand Down

0 comments on commit 8fc834f

Please sign in to comment.