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 eea0382
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
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
exclude: |
(?x)^(
.cmake-format.py
)$
- id: ruff-format
exclude: |
(?x)^(
.cmake-format.py
Expand Down Expand Up @@ -42,14 +49,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 eea0382

Please sign in to comment.