Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update and add new pre-commit git-hooks #2159

Merged
merged 1 commit into from
Mar 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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