chase-rs/.pre-commit-config.yaml
2026-03-09 10:42:31 +01:00

44 lines
1.0 KiB
YAML

default_stages: [ pre-push ]
fail_fast: false
exclude: '^(benches/|tests/)'
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