From 865bc3e5169808d7b77f785535cd000e40b5f9b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Sat, 2 May 2026 01:24:59 +0200 Subject: [PATCH] chore: disable autofix for pre-commit hooks --- .pre-commit-config.yaml | 3 +-- justfile | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) 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