chore: disable autofix for pre-commit hooks
This commit is contained in:
@@ -4,8 +4,6 @@ repos:
|
|||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v5.0.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
|
||||||
- id: end-of-file-fixer
|
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
@@ -16,3 +14,4 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: clang-format
|
- id: clang-format
|
||||||
types_or: [c, c++]
|
types_or: [c, c++]
|
||||||
|
args: [--dry-run, -Werror]
|
||||||
|
|||||||
4
justfile
4
justfile
@@ -2,6 +2,10 @@
|
|||||||
default:
|
default:
|
||||||
@just --list
|
@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 submodule(s) to latest tag
|
||||||
bump-qmk submodule="":
|
bump-qmk submodule="":
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|||||||
Reference in New Issue
Block a user