-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84698f0
commit dae4907
Showing
1 changed file
with
44 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |