diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7741fbc..e5526d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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