30 lines
943 B
YAML
30 lines
943 B
YAML
fail_fast: false
|
|
repos:
|
|
# Are we accidentally committing secrets, keys, credentials, etc.?
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
rev: v8.18.4
|
|
hooks:
|
|
- id: gitleaks
|
|
|
|
# Check for simple quick low-hanging fruit
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
# Does it parse?
|
|
- id: check-ast
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: check-yaml
|
|
# Have we accidentally left merge markers in?
|
|
- id: check-merge-conflict
|
|
# Fix BOM, EOF whitespace
|
|
- id: fix-byte-order-marker
|
|
- id: end-of-file-fixer
|
|
|
|
# Auto-format some non-controversial PEP8 things
|
|
- repo: https://github.com/hhatto/autopep8
|
|
rev: v2.3.1
|
|
hooks:
|
|
- id: autopep8
|
|
# fix blank lines between classes and funcs, import lines, trailing whitespace
|
|
args: ["--in-place", "--select", "E301,E302,E303,E304,E305,E306,E401,W291,W292,W293,W391"]
|