Skip to content

Commit

Permalink
pre-commit: flake8 + black -> ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Sep 14, 2024
1 parent 8708ebe commit 982c23a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: flake8
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- --ignore
- UP036
exclude: |
(?x)^(
.cmake-format.py
)$
- id: ruff-format
exclude: |
(?x)^(
.cmake-format.py
Expand Down Expand Up @@ -42,14 +52,6 @@ repos:
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
exclude: |
(?x)^(
.cmake-format.py
)$
- repo: meta
hooks:
- id: check-hooks-apply
Expand Down

0 comments on commit 982c23a

Please sign in to comment.