pre-commit-hooks #329
|
@ -6,16 +6,16 @@ default_stages: [commit]
|
|||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: nac3-cargo-fmt
|
||||
name: nac3 cargo format
|
||||
- id: cargo-fmt
|
||||
newell marked this conversation as resolved
Outdated
|
||||
name: artiq-zynq cargo format
|
||||
entry: nix
|
||||
language: system
|
||||
types: [file, rust]
|
||||
pass_filenames: false
|
||||
description: Runs cargo fmt on the codebase.
|
||||
args: [develop, -c, cargo, fmt, --manifest-path, src/Cargo.toml, --all]
|
||||
- id: nac3-cargo-clippy
|
||||
name: nac3 cargo clippy
|
||||
- id: cargo-clippy
|
||||
name: artiq-zynq cargo clippy
|
||||
entry: nix
|
||||
language: system
|
||||
types: [file, rust]
|
||||
|
@ -26,7 +26,7 @@ repos:
|
|||
rev: v19.1.0
|
||||
hooks:
|
||||
- id: clang-format
|
||||
name: clang-format
|
||||
name: artiq-zynq-clang-format
|
||||
description: Runs clang-format on the codebase.
|
||||
files: \.(cpp|h|hpp|c)$
|
||||
args: [-style=file, -fallback-style=none, -assume-filename=src/.clang-format]
|
||||
|
|
Loading…
Reference in New Issue
nac3?