-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (45 loc) · 1.56 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (45 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: eeee35a89e69d5772bdee97db1a6a898467b686e # 1.0
hooks:
- id: fmt
# We're running `fmt` with `--all` and `pass_filenames: false` to format the entire workspace at once.
# Otherwise, `pre-commit` passes staged files one by one, which can lead to inconsistent results
# due to, presumably, the lack of full workspace context.
entry: cargo +nightly-2026-02-28 fmt
pass_filenames: false
- id: clippy
name: cargo clippy
args:
["--all", "--all-targets", "--all-features", "--", "-D", "warnings"]
pass_filenames: false
- repo: https://github.com/EmbarkStudios/cargo-deny
rev: 09faadcea2d0d1742492e6872b743d1e4d151a27 # 0.19.0
hooks:
- id: cargo-deny
args:
- --locked
- --all-features
- check
- --hide-inclusion-graph
- -c
- .cargo-deny.toml
- --show-stats
- -D
- warnings
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: 6355f0e9a28a910b80c91f7f6521c03d0ea50fba # 0.9.3 # Can't update until: https://github.com/tamasfe/taplo/issues/805
hooks:
- id: taplo-format
- id: taplo-lint
- repo: https://github.com/bnjbvr/cargo-machete
rev: 78beac95c8fd7c25bdfb194415128523e41512d5 # 0.19.1
hooks:
- id: cargo-machete
- repo: local
hooks:
- id: cargo-hack-check
language: script
name: cargo hack check
entry: ./hooks/cargo-hack.sh
stages: [manual]