pre-commit-hooks #329

Merged
sb10q merged 8 commits from newell/artiq-zynq:pre-commit-hooks into master 2024-10-08 15:19:13 +08:00
Showing only changes of commit ff03737439 - Show all commits

View File

@ -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
Outdated
Review

nac3?

nac3?
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]