Skip to content

Commit

Permalink
chore: Update pre-commit hooks (#43)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.4 →
v0.4.5](astral-sh/ruff-pre-commit@v0.4.4...v0.4.5)
- [github.com/tox-dev/pyproject-fmt: 2.1.1 →
2.1.3](tox-dev/pyproject-fmt@2.1.1...2.1.3)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed May 27, 2024
1 parent eb3c433 commit 8414c65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
rev: v0.4.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff
entry: ruff format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.1.1"
rev: "2.1.3"
hooks:
- id: pyproject-fmt
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,18 @@ lint.select = [
"W",
"YTT",
]
lint.unfixable = [
# Don't touch unused imports
"F401",
]
lint.flake8-tidy-imports.ban-relative-imports = "all"
lint.ignore = [
# Conflict with the Ruff formatter
"COM812",
"ISC001",
]

lint.unfixable = [
# Don't touch unused imports
"F401",
]
lint.flake8-tidy-imports.ban-relative-imports = "all"

[tool.pyproject-fmt]
indent = 2
keep_full_version = true
Expand Down

0 comments on commit 8414c65

Please sign in to comment.