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