2024-07-18 11:01:02 -07:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
|
rev: v4.6.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: check-yaml
|
2025-12-25 14:55:29 -08:00
|
|
|
exclude: config/envoy.template*
|
2024-07-18 11:01:02 -07:00
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
2024-10-16 14:20:26 -07:00
|
|
|
|
2024-07-18 11:01:02 -07:00
|
|
|
- id: cargo-fmt
|
|
|
|
|
name: cargo-fmt
|
|
|
|
|
language: system
|
|
|
|
|
types: [file, rust]
|
2025-12-25 21:08:37 -08:00
|
|
|
entry: bash -c "cd crates && cargo fmt --all -- --check"
|
|
|
|
|
pass_filenames: false
|
2024-10-16 14:20:26 -07:00
|
|
|
|
2024-07-18 11:01:02 -07:00
|
|
|
- id: cargo-clippy
|
|
|
|
|
name: cargo-clippy
|
|
|
|
|
language: system
|
|
|
|
|
types: [file, rust]
|
2025-12-25 21:08:37 -08:00
|
|
|
entry: bash -c "cd crates && cargo clippy --locked --offline --all-targets --all-features -- -D warnings || cargo clippy --locked --all-targets --all-features -- -D warnings"
|
|
|
|
|
pass_filenames: false
|
2024-10-16 14:20:26 -07:00
|
|
|
|
2024-07-18 11:01:02 -07:00
|
|
|
- id: cargo-test
|
|
|
|
|
name: cargo-test
|
|
|
|
|
language: system
|
|
|
|
|
types: [file, rust]
|
2025-02-05 18:57:01 -08:00
|
|
|
entry: bash -c "cd crates && cargo test --lib"
|
2025-12-25 21:08:37 -08:00
|
|
|
pass_filenames: false
|
2024-10-16 14:20:26 -07:00
|
|
|
|
2026-02-13 15:51:08 -08:00
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
|
|
|
rev: v8.21.2
|
|
|
|
|
hooks:
|
|
|
|
|
- id: gitleaks
|
|
|
|
|
|
2024-10-09 11:25:07 -07:00
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
|
rev: 23.1.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: black
|
|
|
|
|
language_version: python3
|