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"
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/pre-commit/pre-commit-hooks
12 rev: v6.0.0
13 hooks:
14 - id: debug-statements
15 - id: check-builtin-literals
16 - id: check-case-conflict
17 - id: check-docstring-first
18 - id: check-json
19 - id: check-toml
20 - id: check-xml
21 - id: check-yaml
22 - id: detect-private-key
23 - id: end-of-file-fixer
24 - id: trailing-whitespace
25 - repo: https://github.com/python-poetry/poetry
26 rev: 2.5.1
27 hooks:
28 - id: poetry-check
29 - repo: https://github.com/pre-commit/mirrors-prettier
30 rev: v4.0.0-alpha.8
31 hooks:
32 - id: prettier
33 args: ["--tab-width", "2"]
34 - repo: https://github.com/astral-sh/ruff-pre-commit
35 rev: v0.16.8
36 hooks:
37 - id: ruff
38 args: [--fix, --exit-non-zero-on-fix]
39 - id: ruff-format
40 - repo: https://github.com/codespell-project/codespell
41 rev: v2.4.3
42 hooks:
43 - id: codespell
44 args:
45 # "hass" is the Home Assistant instance variable, not a typo of "hash".
46 - -L
47 - hass
48 - repo: https://github.com/pre-commit/mirrors-mypy
49 rev: v2.3.1
50 hooks:
51 - id: mypy
52 additional_dependencies: []