Skip to content

Commit

Permalink
introduce pre-commit configuration with clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
mabruzzo committed Jul 3, 2024
1 parent 1546e35 commit 17cf218
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ci:
autofix_prs: false


repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
# unlike most pre-commit tools, the version of this repository exactly
# matches the version of clang-format
rev: v17.0.1
hooks:
- id: clang-format
verbose: true
types_or: [c++, c, cuda]
args: ["-style=file", "--verbose"]

0 comments on commit 17cf218

Please sign in to comment.