Skip to content

Commit 6c56182

Browse files
committed
Add more checks to pre-commit hook
1 parent ca9a3f0 commit 6c56182

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,23 @@ repos:
1616
- repo: https://github.com/pre-commit/pre-commit-hooks
1717
rev: v5.0.0
1818
hooks:
19+
# Git
20+
- id: check-added-large-files
21+
- id: no-commit-to-branch
22+
name: "ensure no direct commit to master/maintenance branches"
23+
args: [--branch, "master", --pattern, "maintenance/.*"]
24+
- id: check-case-conflict
25+
- id: check-illegal-windows-names
26+
# Contents
1927
- id: check-ast
2028
- id: check-builtin-literals
2129
- id: check-case-conflict
2230
- id: check-executables-have-shebangs
2331
- id: check-merge-conflict
2432
- id: check-shebang-scripts-are-executable
33+
- id: check-symlinks
2534
- id: check-toml
35+
- id: check-yaml
2636
- id: debug-statements
2737
- id: destroyed-symlinks
2838
- id: end-of-file-fixer

0 commit comments

Comments
 (0)