Git¶
Reference
Pre-Commit¶
Install Pre-Commit with Pip
$> pip install pre-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: detect-private-key
$> pre-commit install
$> pre-commit install-hooks
$> pre-commit run -a
check for merge conflicts................................................Passed
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check for added large files..............................................Passed
detect private key.......................................................Passed
mkdocs-buid..............................................................Passed
Reference