Skip to content

Commit

Permalink
chore: update pre-commit hooks to dronetag hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Peterka committed Feb 26, 2024
1 parent 5843727 commit 25469f8
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,43 +26,19 @@ repos:
types: [python]
stages: [pre-commit]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- repo: https://github.com/dronetag/pre-commit-hooks
rev: v1.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: check-docstring-first
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
- id: debug-statements
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: conventional-commit-msg
- id: debug-statements
- id: detect-private-key
- id: mixed-line-ending
args: [--fix=lf]
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]

# https://www.conventionalcommits.org/en/v1.0.0/
# type(scope)?: description (body)? (footer)? (lowercase, present tense, and no period at the end)
- repo: local
hooks:
- id: commit-msg
name: conventional commit message
language: pygrep
entry: '^(chore|test|feat|fix|build|docs|refactor)!?(\([a-z]+\))?: (?![A-Z][a-z])(?![a-z]+(ed|ing)\s).*$'
args:
- --multiline
- --negate # fails if the entry is NOT matched
stages:
- commit-msg
- id: trailing-whitespace

0 comments on commit 25469f8

Please sign in to comment.