2024-06-12 12:52:00 +08:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
|
|
|
|
default_stages: [commit]
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: nac3-cargo-fmt
|
|
|
|
name: nac3 cargo format
|
2024-09-09 14:24:38 +08:00
|
|
|
entry: nix
|
2024-06-12 12:52:00 +08:00
|
|
|
language: system
|
|
|
|
types: [file, rust]
|
|
|
|
pass_filenames: false
|
|
|
|
description: Runs cargo fmt on the codebase.
|
2024-09-09 14:24:38 +08:00
|
|
|
args: [develop, -c, cargo, fmt, --all]
|
2024-06-12 12:52:00 +08:00
|
|
|
- id: nac3-cargo-clippy
|
|
|
|
name: nac3 cargo clippy
|
2024-09-09 14:24:38 +08:00
|
|
|
entry: nix
|
2024-06-12 12:52:00 +08:00
|
|
|
language: system
|
|
|
|
types: [file, rust]
|
|
|
|
pass_filenames: false
|
|
|
|
description: Runs cargo clippy on the codebase.
|
2024-09-09 14:24:38 +08:00
|
|
|
args: [develop, -c, cargo, clippy, --tests]
|