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
|
2024-10-06 23:10:13 -07:00
|
|
|
exclude: arch/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]
|
2024-10-17 10:16:40 -07:00
|
|
|
entry: bash -c "cd crates/llm_gateway && cargo fmt"
|
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]
|
2024-10-16 14:20:26 -07:00
|
|
|
entry: bash -c "cd crates/llm_gateway && cargo clippy --all"
|
|
|
|
|
|
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"
|
2024-10-16 14:20:26 -07:00
|
|
|
|
2024-10-09 11:25:07 -07:00
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
|
rev: 23.1.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: black
|
|
|
|
|
language_version: python3
|