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
1 changed files with 5 additions and 5 deletions
Showing only changes of commit ff03737439 - Show all commits

View File

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

nac3?

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