2026-03-06 10:52:32 +00:00
|
|
|
default_stages: [ pre-push ]
|
|
|
|
|
fail_fast: false
|
2026-03-09 09:59:10 +01:00
|
|
|
exclude: '^(benches/|tests/|examples/|docs/)'
|
2026-03-06 10:52:32 +00:00
|
|
|
|
|
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
|
rev: v5.0.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
args: [ --markdown-linebreak-ext=md ]
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: mixed-line-ending
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
- id: detect-private-key
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
- id: check-toml
|
|
|
|
|
- id: check-json
|
|
|
|
|
- id: check-docstring-first
|
|
|
|
|
- id: pretty-format-json
|
|
|
|
|
args: [ --autofix, --no-sort-keys ]
|
|
|
|
|
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: format
|
|
|
|
|
name: Format Code
|
|
|
|
|
entry: make format
|
|
|
|
|
language: system
|
|
|
|
|
pass_filenames: false
|
|
|
|
|
stages: [ pre-commit ]
|
|
|
|
|
|
|
|
|
|
- id: lint
|
|
|
|
|
name: Check Code Style
|
|
|
|
|
entry: make lint
|
|
|
|
|
language: system
|
|
|
|
|
pass_filenames: false
|
|
|
|
|
stages: [ pre-commit ]
|
|
|
|
|
|
|
|
|
|
- id: test
|
|
|
|
|
name: Run Tests
|
|
|
|
|
entry: make nexttest
|
|
|
|
|
language: system
|
|
|
|
|
pass_filenames: false
|