Battery-Emulator/.pre-commit-config.yaml
pre-commit-ci[bot] cf68489bf8
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-clang-format: v20.1.8 → v21.1.0](https://github.com/pre-commit/mirrors-clang-format/compare/v20.1.8...v21.1.0)
2025-09-01 16:29:53 +00:00

17 lines
775 B
YAML

# This pre-commit configuration file configures clang-format to run upon running the command line command 'git commit'.
# The pre-commit git hook is installed using the command line command 'pre-commit install'.
exclude: '^Software/src/lib/' # don't run hooks on external libraries
# This continuous integration section is optional, and enables autoupdating the pre-commit configuration, ensuring that
# the hook versions are kept up to date.
ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.0
hooks:
- id: clang-format
args: [-Werror] # change formatting warnings to errors, hook includes -i (Inplace edit) by default
types_or: [c++, c] # override default file types to only C and CPP files