Skip to content

Commit 3bd2e94

Browse files
committed
updated pre-commit with ruff, cmake & clang formatters
1 parent 6edbf83 commit 3bd2e94

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.pre-commit-config.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,48 @@
11
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.9.5
4+
hooks:
5+
- id: ruff
6+
args:
7+
- --fix
8+
- --exit-non-zero-on-fix
9+
- id: ruff-format
10+
11+
- repo: https://github.com/cheshirekow/cmake-format-precommit
12+
rev: v0.6.13
13+
hooks:
14+
- id: cmake-format
15+
- id: cmake-lint
16+
17+
- repo: https://github.com/pre-commit/mirrors-clang-format
18+
rev: v19.1.7
19+
hooks:
20+
- id: clang-format
21+
types_or: [c++, c]
22+
args:
23+
- --style=Google
24+
225
- repo: https://github.com/pre-commit/pre-commit-hooks
326
rev: v5.0.0
427
hooks:
528
- id: check-added-large-files
29+
- id: check-ast
630
- id: check-case-conflict
31+
- id: check-executables-have-shebangs
732
- id: check-json
833
- id: check-merge-conflict
934
- id: check-symlinks
1035
- id: check-toml
1136
- id: check-xml
37+
- id: check-yaml
1238
- id: debug-statements
1339
- id: destroyed-symlinks
1440
- id: detect-private-key
1541
- id: end-of-file-fixer
42+
- id: fix-byte-order-marker
1643
- id: mixed-line-ending
1744
- id: pretty-format-json
1845
- id: trailing-whitespace
19-
- id: check-yaml
2046

2147
- repo: https://github.com/codespell-project/codespell
2248
rev: v2.2.6

0 commit comments

Comments
 (0)