1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 06:45:32 +00:00
krust/.pre-commit-config.yaml
Jason Hall e15bd1df8c
refactor: Centralize test flags and commands in Makefile
- Add TEST_FLAGS variable for single-threaded test execution
- Create verbose targets for CI usage
- Update pre-commit hooks to use make targets
- Update CI workflow to use make targets
- This ensures consistency between local and CI test execution

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 12:02:29 -04:00

46 lines
1 KiB
YAML

# See https://pre-commit.com for more information
repos:
- repo: local
hooks:
- id: rustfmt
name: rustfmt
entry: make check-fmt
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
entry: make lint
language: system
types: [rust]
pass_filenames: false
- id: cargo-check
name: cargo check
entry: make check-code
language: system
types: [rust]
pass_filenames: false
- id: cargo-test
name: cargo test
entry: make test-unit
language: system
types: [rust]
pass_filenames: false
- id: cargo-test-e2e
name: cargo e2e tests
entry: make test-e2e
language: system
types: [rust]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files