Skip to content

Commit f6d2cc7

Browse files
committed
feat: add pre-commit hooks
1 parent 8b853b6 commit f6d2cc7

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,26 @@ ci:
88
default_stages: [pre-commit, pre-push, manual]
99
exclude: '^(build|3rdparty)/.*$' # exclude build and 3rdparty directories
1010
repos:
11-
# - repo: https://github.com/pre-commit/pre-commit-hooks
12-
# rev: v6.0.0
13-
# hooks:
14-
# - id: check-symlinks
15-
# - id: destroyed-symlinks
16-
# - id: trailing-whitespace
17-
# - id: end-of-file-fixer
18-
# - id: check-added-large-files
19-
# - id: check-merge-conflict
20-
# fail_fast: true
21-
# - id: check-executables-have-shebangs
22-
# - id: check-shebang-scripts-are-executable
23-
# - id: detect-private-key
24-
# - id: check-yaml
25-
# - id: check-toml
26-
# - id: check-ast
27-
# fail_fast: true
28-
# - id: debug-statements
11+
- repo: https://github.com/pre-commit/pre-commit-hooks
12+
rev: v6.0.0
13+
hooks:
14+
- id: check-symlinks
15+
- id: destroyed-symlinks
16+
# FIXME: enable these hooks
17+
# - id: trailing-whitespace
18+
# - id: end-of-file-fixer
19+
- id: check-added-large-files
20+
- id: check-merge-conflict
21+
fail_fast: true
22+
# FIXME: enable these hooks
23+
# - id: check-executables-have-shebangs
24+
# - id: check-shebang-scripts-are-executable
25+
- id: detect-private-key
26+
- id: check-yaml
27+
- id: check-toml
28+
- id: check-ast
29+
fail_fast: true
30+
- id: debug-statements
2931
- repo: https://github.com/pre-commit/mirrors-clang-format
3032
rev: v15.0.7 # sync with requirements-lint.txt
3133
hooks:

0 commit comments

Comments
 (0)