mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
chore: add clang-format and pre-commit configuration
This commit is contained in:
8
.pre-commit-config.yaml
Normal file
8
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: "v22.1.4"
|
||||
hooks:
|
||||
- id: clang-format
|
||||
args: ["--style=file"]
|
||||
types_or: ["c++", "c"]
|
||||
exclude: '^third_party/.*$'
|
||||
Reference in New Issue
Block a user