Add hook for clang-format

This commit is contained in:
newell 2024-10-07 10:00:12 -07:00
parent 8741b23b08
commit 7749958c54
1 changed files with 8 additions and 0 deletions

View File

@ -22,3 +22,11 @@ repos:
pass_filenames: false pass_filenames: false
description: Runs cargo clippy on the codebase. description: Runs cargo clippy on the codebase.
args: [develop, -c, cargo, clippy, --manifest-path, src/Cargo.toml, --tests] args: [develop, -c, cargo, clippy, --manifest-path, src/Cargo.toml, --tests]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.0
hooks:
- id: clang-format
name: clang-format
description: Checks formatting of C++ files using clang-format.
files: \.(cpp|h|hpp|c)$
args: [-style=file, -fallback-style=none, -assume-filename=src/.clang-format]