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