diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..697433a --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,18 @@ +# .pre-commit-config.yaml +# for details see https://pre-commit.com +# for list of available hooks see https://pre-commit.com/hooks.html +# +# Preclude commits that do not conform to various criteria. +# +# If a pre-commit check must be skipped then use: `SKIP=check_id git commit` Where `check_id` is the id of the check to +# be skipped such as `black`. + +fail_fast: true +default_stages: [pre-commit] +repos: +- repo: https://github.com/pre-commit/mirrors-clang-format + rev: v19.1.7 + hooks: + - id: clang-format + args: ['--style=file'] + files: '\.(c|cc|h|cxx|hxx)$'