Adding upstream version 4.6.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f3ad83a1a5
commit
167a3f8553
275 changed files with 30423 additions and 0 deletions
72
.pre-commit-config.yaml
Normal file
72
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,72 @@
|
|||
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 ]
|
Loading…
Add table
Add a link
Reference in a new issue