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"
4 default_stages: [pre-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: v4.18.1
13 hooks:
14 - id: commitizen
15 stages: [commit-msg]
16 - repo: https://github.com/pre-commit/pre-commit-hooks
17 rev: v6.0.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 - id: check-toml
25 - id: check-xml
26 - id: check-yaml
27 - id: detect-private-key
28 - id: end-of-file-fixer
29 - id: trailing-whitespace
30 - repo: https://github.com/pre-commit/mirrors-prettier
31 rev: v4.0.0-alpha.8
32 hooks:
33 - id: prettier
34 args: ["--tab-width", "2"]
35 - repo: https://github.com/asottile/pyupgrade
36 rev: v3.21.2
37 hooks:
38 - id: pyupgrade
39 args: [--py310-plus]
40 - repo: https://github.com/astral-sh/ruff-pre-commit
41 rev: v0.16.8
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.4.3
48 hooks:
49 - id: codespell
50 - repo: https://github.com/pre-commit/mirrors-mypy
51 rev: v2.3.1
52 hooks:
53 - id: mypy
54 additional_dependencies: []