Skip to content

Commit

Permalink
Exclude v2 from pre-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusShepherd committed Nov 11, 2024
1 parent 84698f0 commit dae4907
Showing 1 changed file with 44 additions and 43 deletions.
87 changes: 44 additions & 43 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
exclude: '^v2/.*$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-ast
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
exclude: 'CHANGELOG.md'
- id: trailing-whitespace
- id: mixed-line-ending
- repo: local
hooks:
- id: ruff-format
name: ruff-format
entry: poetry run ruff format
require_serial: true
language: system
types: [ python ]
- id: ruff
name: ruff
# Add --fix, in case you want it to autofix when this hook runs
entry: poetry run ruff check --force-exclude
require_serial: true
language: system
types: [ python ]
- id: mypy
name: mypy
entry: poetry run mypy .
require_serial: true
language: system
types: [python]
pass_filenames: false
- id: kacl-verify
name: kacl-verify
entry: poetry run kacl-cli verify
language: system
files: 'CHANGELOG.md'
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-ast
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
exclude: 'CHANGELOG.md'
- id: trailing-whitespace
- id: mixed-line-ending
- repo: local
hooks:
- id: ruff-format
name: ruff-format
entry: poetry run ruff format
require_serial: true
language: system
types: [ python ]
- id: ruff
name: ruff
# Add --fix, in case you want it to autofix when this hook runs
entry: poetry run ruff check --force-exclude
require_serial: true
language: system
types: [ python ]
- id: mypy
name: mypy
entry: poetry run mypy . --exclude v2
require_serial: true
language: system
types: [python]
pass_filenames: false
- id: kacl-verify
name: kacl-verify
entry: poetry run kacl-cli verify
language: system
files: 'CHANGELOG.md'
pass_filenames: false

0 comments on commit dae4907

Please sign in to comment.