-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
24 lines (22 loc) · 1.32 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Multi-Language Static Analysis.
# Install on local: pip install pre-commit pre-commit-hooks
# Force Run: pre-commit run --all-files
# Auto-Update all hooks: pre-commit autoupdate
# Run all hooks on Push: pre-commit install --hook-type pre-push
# Run all hooks on Commit: pre-commit install
# Uninstall hooks on Push: pre-commit uninstall --hook-type pre-push
# Uninstall hooks on Commit: pre-commit uninstall
# http://pre-commit.com https://github.com/pre-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1 # v4.0.1 Or SemVer of latest release. Or SHA1.
hooks:
- id: fix-byte-order-marker # Check for BOM byte-order marker on files.
- id: check-case-conflict # Check conflicts for case-insensitive FS.
- id: check-merge-conflict # Check for committing Unmerged files.
- id: check-symlinks # Check for SymLinks pointing nowhere.
- id: destroyed-symlinks # Check for broken Symlinks (if any).
- id: detect-private-key # Check for committing Private Keys.
- id: forbid-new-submodules # Prevent addition of new Git SubModules.
- id: check-json # Check JSON files are valid (if any).
- id: check-executables-have-shebangs # Check if executable have SheBang.