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 - id: debug-statements
31 - repo: https://github.com/pre-commit/mirrors-prettier
32 rev: v4.0.0-alpha.8
33 hooks:
34 - id: prettier
35 args: ["--tab-width", "2"]
36 additional_dependencies:
37 - [email protected]
38 - repo: https://github.com/asottile/pyupgrade
39 rev: v3.21.2
40 hooks:
41 - id: pyupgrade
42 args: [--py310-plus]
43 - repo: https://github.com/astral-sh/ruff-pre-commit
44 rev: v0.16.7
45 hooks:
46 - id: ruff-check
47 args: [--fix]
48 - id: ruff-format
49 - repo: https://github.com/codespell-project/codespell
50 rev: v2.4.3
51 hooks:
52 - id: codespell
53 - repo: https://github.com/PyCQA/flake8
54 rev: 7.3.0
55 hooks:
56 - id: flake8
57 - repo: https://github.com/pre-commit/mirrors-mypy
58 rev: v2.3.1
59 hooks:
60 - id: mypy
61 additional_dependencies: []
62 - repo: https://github.com/PyCQA/bandit
63 rev: 1.9.4
64 hooks:
65 - id: bandit
66 args: [-x, tests]