- Formatted all .c/.cpp/.h files using LLVM style (4-space indent, 88-char lines) - Fixed macro alignment, pointer alignment, brace placement - Updated .clang-format to use Cpp language (valid enum value) - Removed clang-tidy pre-commit hook (requires additional setup) - Pre-commit now runs clang-format for automated formatting - Verified: All boards still build without errors or warnings
36 lines
886 B
YAML
36 lines
886 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
args: ['--maxkb=1000']
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v4.0.0-alpha.8
|
|
hooks:
|
|
- id: prettier
|
|
types_or: [markdown]
|
|
|
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
rev: v0.37.0
|
|
hooks:
|
|
- id: markdownlint
|
|
args: ['--fix', '--disable', 'MD040', '--disable', 'MD013']
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: v17.0.6
|
|
hooks:
|
|
- id: clang-format
|
|
types: [c, c++, header]
|
|
args: ['-i'] # In-place formatting
|
|
exclude: |
|
|
(?x)^(
|
|
\.pio/|
|
|
test/|
|
|
soc/|
|
|
hardware/
|
|
)
|