Skip to content

Commit

Permalink
Upgrade pre-commit version and config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Nov 20, 2024
1 parent 274ea70 commit 533c5cf
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 80 deletions.
12 changes: 7 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_stages: [ commit, push ]
default_stages: [ pre-commit, pre-push ]
repos:

- repo: local
Expand All @@ -9,15 +9,17 @@ repos:
pass_filenames: false
language: system
entry: poetry run nox -s project:fix
stages: [ commit ]
stages: [ pre-commit ]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
stages: [ commit ]
hooks:
- id: check-yaml
stages: [ pre-commit ]
- id: end-of-file-fixer
stages: [ pre-commit ]
- id: trailing-whitespace
stages: [ pre-commit ]

- repo: local
hooks:
Expand All @@ -27,7 +29,7 @@ repos:
pass_filenames: false
language: system
entry: poetry run nox -s lint:typing
stages: [ push ]
stages: [ pre-push ]

- repo: local
hooks:
Expand All @@ -37,4 +39,4 @@ repos:
pass_filenames: false
language: system
entry: poetry run nox -s lint:code
stages: [ push ]
stages: [ pre-push ]
Loading

0 comments on commit 533c5cf

Please sign in to comment.