1
0
Fork 0
commitizen/.pre-commit-config.yaml
Daniel Baumann 167a3f8553
Adding upstream version 4.6.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-04-21 11:40:48 +02:00

72 lines
1.8 KiB
YAML

default_install_hook_types:
- pre-commit
- commit-msg
- pre-push
default_stages:
- pre-commit
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-vcs-permalinks
- id: end-of-file-fixer
exclude: "tests/((commands|data|providers/test_uv_provider)/|test_).+"
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
exclude: '\.svg$'
- id: debug-statements
- id: no-commit-to-branch
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args: [ '--unsafe' ] # for mkdocs.yml
- id: detect-private-key
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies: [ black~=23.11 ]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
name: Run codespell to check for common misspellings in files
# config section is within pyproject.toml
language: python
types: [ text ]
args: [ "--write-changes" ]
additional_dependencies:
- tomli
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.6.0 # automatically updated by Commitizen
hooks:
- id: commitizen
- id: commitizen-branch
stages:
- post-commit
- repo: local
hooks:
- id: format
name: Format
language: system
pass_filenames: false
entry: poetry format
types: [ python ]
- id: linter and test
name: Linters
language: system
pass_filenames: false
entry: poetry lint
types: [ python ]