diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c37423..2accdfc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,8 +4,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - id: check-merge-conflict - id: check-added-large-files - id: check-yaml @@ -16,3 +14,4 @@ repos: hooks: - id: clang-format types_or: [c, c++] + args: [--dry-run, -Werror] diff --git a/justfile b/justfile index f2edb12..a1f7d72 100644 --- a/justfile +++ b/justfile @@ -2,6 +2,10 @@ default: @just --list +# format C/H files in place +fmt: + git ls-files '*.c' '*.h' | xargs --no-run-if-empty clang-format -i + # bump submodule(s) to latest tag bump-qmk submodule="": #!/usr/bin/env bash