2025-06-07 21:27:18 -04:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
|
repos:
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: rustfmt
|
|
|
|
|
name: rustfmt
|
2025-06-07 21:39:18 -04:00
|
|
|
entry: cargo fmt -- --check
|
2025-06-07 21:27:18 -04:00
|
|
|
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
|
|
|
|
|
|
2025-06-07 22:03:28 -04:00
|
|
|
- id: cargo-test
|
|
|
|
|
name: cargo test
|
2025-06-08 11:59:26 -04:00
|
|
|
entry: cargo test -- --test-threads=1
|
2025-06-07 22:03:28 -04:00
|
|
|
language: system
|
|
|
|
|
types: [rust]
|
|
|
|
|
pass_filenames: false
|
|
|
|
|
|
|
|
|
|
- id: cargo-test-e2e
|
|
|
|
|
name: cargo e2e tests
|
2025-06-08 11:59:26 -04:00
|
|
|
entry: cargo test --test '*' -- --test-threads=1
|
2025-06-07 22:03:28 -04:00
|
|
|
language: system
|
|
|
|
|
types: [rust]
|
|
|
|
|
pass_filenames: false
|
|
|
|
|
|
2025-06-07 21:27:18 -04:00
|
|
|
- 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
|