-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pre-commit config file * test * added documentation * pre-commit docs * added gitclang format instead * fixed docs * git clang format by path * test commit * removing test file * Removes --force and simplify docs --------- Co-authored-by: BlakeFreer <[email protected]>
- Loading branch information
1 parent
f0128b5
commit bc36dd1
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Minimum version of pre-commit | ||
minimum_pre_commit_version: "2.9.0" | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
# Prevent committing directly to the main branch | ||
- id: no-commit-to-branch | ||
args: [--branch, main] | ||
stages: [commit] | ||
|
||
- repo: local | ||
hooks: | ||
- id: clang-format | ||
name: Run git-clang-format | ||
entry: git clang-format --style=file --staged | ||
language: python | ||
stages: [commit] | ||
additional_dependencies: | ||
- clang-format~=19.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters