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 5d254c7eca
Add tests to pre-commit hooks and simplify CI matrix
- Add cargo test and e2e tests to pre-commit hooks
- Temporarily disable macOS CI to focus on Linux
- Ensure all tests pass locally before committing
2025-06-07 22:03:28 -04:00

46 lines
1.1 KiB
YAML

# See https://pre-commit.com for more information
repos:
- repo: local
hooks:
- id: rustfmt
name: rustfmt
entry: cargo fmt -- --check
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
entry: cargo clippy -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: cargo-check
name: cargo check
entry: cargo check
language: system
types: [rust]
pass_filenames: false
- id: cargo-test
name: cargo test
entry: cargo test
language: system
types: [rust]
pass_filenames: false
- id: cargo-test-e2e
name: cargo e2e tests
entry: cargo test --test '*'
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