Skip to content

Commit

Permalink
Add new pre-commit hooks from official repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jun 24, 2024
1 parent b7443fe commit a2dd452
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,25 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# Validate format
- id: check-yaml
- id: trailing-whitespace
- id: check-toml
- id: check-json
# Check for common mistakes
- id: check-added-large-files
- id: check-case-conflict
# - id: check-illegal-windows-names # TODO: Enable in next release
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch # protects `main` by default
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
Expand Down

0 comments on commit a2dd452

Please sign in to comment.