Skip to content

Commit

Permalink
Merge pull request #2159 from bjlittle/add-git-hooks
Browse files Browse the repository at this point in the history
update and add new pre-commit git-hooks
  • Loading branch information
dopplershift authored Mar 15, 2023
2 parents 135d215 + 8710e3f commit 85d9995
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,27 @@ ci:
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.0.1"
rev: "v4.4.0"
hooks:
# Prevent giant files from being committed
- id: check-added-large-files
# Check whether files parse as valid Python
- id: check-ast
# Check for files that contain merge conflict strings
- id: check-merge-conflict
# Attempts to load all TOML files to verify syntax
- id: check-toml
# Attempts to load all yaml files to verify syntax
- id: check-yaml
# Check for debugger imports and py37+ breakpoint() calls in python source
- id: debug-statements
# Makes sure files end in a newline and only a newline
- id: end-of-file-fixer
# Replaces or checks mixed line ending
- id: mixed-line-ending
# Protect specific branches from direct checkins (main)
- id: no-commit-to-branch
# Trims trailing whitespace
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
Expand Down

0 comments on commit 85d9995

Please sign in to comment.