Skip to content

Commit

Permalink
🧰 build: change pre-commit config syntax support pre-commit version 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
korawica committed Oct 7, 2024
1 parent c069251 commit 32eb936
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ repos:
hooks:
- id: pyupgrade
args: ["--py39-plus", "--keep-runtime-typing"]
stages: [commit]
stages: [pre-commit]

- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
stages: [commit]
stages: [pre-commit]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
Expand All @@ -36,16 +36,16 @@ repos:
rev: v4.5.0
hooks:
- id: fix-byte-order-marker
stages: [commit]
stages: [pre-commit]
- id: trailing-whitespace
stages: [commit]
stages: [pre-commit]
- id: end-of-file-fixer
stages: [commit]
stages: [pre-commit]
- id: check-yaml
args: ["--unsafe"]
stages: [commit]
stages: [pre-commit]
- id: check-toml
stages: [commit]
stages: [pre-commit]

- repo: https://github.com/korawica/clishelf
rev: v0.2.4
Expand All @@ -56,7 +56,7 @@ repos:
hooks:
- id: pytest-check
name: pytest-runner
stages: [push]
stages: [pre-push]
types: [python]
entry: venv/Scripts/pytest.exe -v
language: system
Expand Down

0 comments on commit 32eb936

Please sign in to comment.