Debian Codegraph @

.pre-commit-config.yaml

raw
1 # See https://pre-commit.com for more information
2 # See https://pre-commit.com/hooks.html for more hooks
3 exclude: "CHANGELOG.md|.copier-answers.yml|.all-contributorsrc|project"
4 default_stages: [commit]
5
6 ci:
7 autofix_commit_msg: "chore(pre-commit.ci): auto fixes"
8 autoupdate_commit_msg: "chore(pre-commit.ci): pre-commit autoupdate"
9
10 repos:
11 - repo: https://github.com/commitizen-tools/commitizen
12 rev: v3.29.0
13 hooks:
14 - id: commitizen
15 stages: [commit-msg]
16 - repo: https://github.com/pre-commit/pre-commit-hooks
17 rev: v4.6.0
18 hooks:
19 - id: debug-statements
20 - id: check-builtin-literals
21 - id: check-case-conflict
22 - id: check-docstring-first
23 - id: check-json
24 exclude: ^\.vscode/
25 - id: check-toml
26 - id: check-xml
27 - id: check-yaml
28 - id: detect-private-key
29 - id: end-of-file-fixer
30 - id: trailing-whitespace
31 - repo: https://github.com/python-poetry/poetry
32 rev: 1.8.3
33 hooks:
34 - id: poetry-check
35 - repo: https://github.com/pre-commit/mirrors-prettier
36 rev: v3.1.0
37 hooks:
38 - id: prettier
39 args: ["--tab-width", "2"]
40 - repo: https://github.com/astral-sh/ruff-pre-commit
41 rev: v0.6.4
42 hooks:
43 - id: ruff
44 args: [--fix, --exit-non-zero-on-fix]
45 - id: ruff-format
46 - repo: https://github.com/codespell-project/codespell
47 rev: v2.3.0
48 hooks:
49 - id: codespell
50 - repo: https://github.com/pre-commit/mirrors-mypy
51 rev: v1.11.2
52 hooks:
53 - id: mypy
54 additional_dependencies: []