repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: check-yaml exclude: config/envoy.template* - id: end-of-file-fixer - id: trailing-whitespace - repo: local hooks: - id: cargo-fmt name: cargo-fmt language: system types: [file, rust] entry: bash -c "cd crates && cargo fmt --all -- --check" pass_filenames: false - id: cargo-clippy name: cargo-clippy language: system types: [file, rust] 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 - id: cargo-test name: cargo-test language: system types: [file, rust] entry: bash -c "cd crates && cargo test --lib" pass_filenames: false - repo: https://github.com/gitleaks/gitleaks rev: v8.21.2 hooks: - id: gitleaks - repo: https://github.com/psf/black rev: 23.1.0 hooks: - id: black language_version: python3