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-10-15 11:56:14 -04:00
|
|
|
entry: make fmt
|
2025-06-07 21:27:18 -04:00
|
|
|
language: system
|
|
|
|
|
types: [rust]
|
|
|
|
|
pass_filenames: false
|
|
|
|
|
|
|
|
|
|
- id: clippy
|
|
|
|
|
name: clippy
|
2025-06-08 12:02:29 -04:00
|
|
|
entry: make lint
|
2025-06-07 21:27:18 -04:00
|
|
|
language: system
|
|
|
|
|
types: [rust]
|
|
|
|
|
pass_filenames: false
|
|
|
|
|
|
|
|
|
|
- id: cargo-check
|
|
|
|
|
name: cargo check
|
2025-06-08 12:02:29 -04:00
|
|
|
entry: make check-code
|
2025-06-07 21:27:18 -04:00
|
|
|
language: system
|
|
|
|
|
types: [rust]
|
|
|
|
|
pass_filenames: false
|
|
|
|
|
|
2025-06-07 22:03:28 -04:00
|
|
|
- id: cargo-test
|
|
|
|
|
name: cargo test
|
2025-06-08 12:02:29 -04:00
|
|
|
entry: make test-unit
|
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 12:02:29 -04:00
|
|
|
entry: make test-e2e
|
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
|
2025-10-15 14:46:18 -04:00
|
|
|
args: [--allow-multiple-documents]
|
2025-06-07 21:27:18 -04:00
|
|
|
- id: check-added-large-files
|