Skip to content

Commit

Permalink
chore(pre-commit): upgrade ruff linting/formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
texhnolyze committed Oct 24, 2024
1 parent 0e39eaa commit 77c9058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.7.0
hooks:
- id: ruff
args:
- "--fix"
- "--exit-non-zero-on-fix"
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- id: ruff-format
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[tool.black]
line-length = 120

[tool.ruff]
line-length = 120
# Never enforce `E501` (line length violations), as black takes care of this.
ignore = ["E501"]

[tool.ruff.lint]
# Additionally enable the following rules
# - pyflakes (`F`)
# - pycodestyle errors (`E`)
# - pycodestyle warnings (`W`)
# - flake8-bugbear warnings (`B`)
# - isort import sorting (`I`)
Expand Down

0 comments on commit 77c9058

Please sign in to comment.