debian/rust-vendor/parse_datetime/.pre-commit-config.yaml
raw| 1 | repos: |
| 2 | - repo: local |
| 3 | hooks: |
| 4 | - id: rust-linting |
| 5 | name: Rust linting |
| 6 | description: Run cargo fmt on files included in the commit. |
| 7 | entry: cargo +nightly fmt -- |
| 8 | pass_filenames: true |
| 9 | types: [file, rust] |
| 10 | language: system |
| 11 | - id: rust-clippy |
| 12 | name: Rust clippy |
| 13 | description: Run cargo clippy on files included in the commit. |
| 14 | entry: cargo +nightly clippy --workspace --all-targets --all-features -- |
| 15 | pass_filenames: false |
| 16 | types: [file, rust] |
| 17 | language: system |