/ .pre-commit-config.yaml
.pre-commit-config.yaml
 1  fail_fast: true
 2  repos:
 3    - repo: https://github.com/doublify/pre-commit-rust
 4      rev: v1.0
 5      hooks:
 6        - id: fmt
 7        - id: clippy
 8          args: [--all-features, --all-targets]
 9  
10    - repo: https://github.com/pre-commit/mirrors-prettier
11      rev: v3.1.0
12      hooks:
13        - id: prettier
14          types_or: [yaml, markdown, json]
15  
16    - repo: local
17      hooks:
18        - id: statix-check
19          name: statix check
20          entry: statix check
21          language: system
22          files: \.nix$
23  
24        - id: nixfmt-check
25          name: nixfmt check
26          entry: nixfmt --check
27          language: system
28          files: \.nix$
29  
30        - id: taplo-fmt
31          name: taplo fmt
32          entry: taplo fmt
33          language: system
34          files: \.toml$
35  
36        - id: cargo-test
37          name: cargo test
38          entry: cargo test
39          language: system
40          files: \.rs$
41          pass_filenames: false
42  
43    - repo: https://github.com/compilerla/conventional-pre-commit
44      rev: v4.3.0
45      hooks:
46        - id: conventional-pre-commit
47          stages: [commit-msg]