|
1 | 1 | # See https://pre-commit.com for more information |
2 | 2 | # See https://pre-commit.com/hooks.html for more hooks |
3 | 3 | exclude: "CHANGELOG.md" |
4 | | -default_stages: [pre-commit] |
| 4 | +default_stages: [ pre-commit ] |
5 | 5 |
|
6 | 6 | repos: |
7 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
8 | | - rev: v4.5.0 |
9 | | - hooks: |
10 | | - - id: debug-statements |
11 | | - - id: check-builtin-literals |
12 | | - - id: check-case-conflict |
13 | | - - id: check-docstring-first |
14 | | - - id: check-json |
15 | | - - id: check-toml |
16 | | - - id: check-yaml |
17 | | - - id: detect-private-key |
18 | | - - id: end-of-file-fixer |
19 | | - - id: trailing-whitespace |
20 | | - - repo: https://github.com/astral-sh/uv-pre-commit |
21 | | - rev: 0.9.1 |
22 | | - hooks: |
| 7 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 8 | + rev: v4.5.0 |
| 9 | + hooks: |
| 10 | + - id: debug-statements |
| 11 | + - id: check-builtin-literals |
| 12 | + - id: check-case-conflict |
| 13 | + - id: check-docstring-first |
| 14 | + - id: check-json |
| 15 | + - id: check-toml |
| 16 | + - id: check-yaml |
| 17 | + - id: detect-private-key |
| 18 | + - id: end-of-file-fixer |
| 19 | + - id: trailing-whitespace |
| 20 | + - repo: https://github.com/astral-sh/uv-pre-commit |
| 21 | + rev: 0.9.1 |
| 22 | + hooks: |
23 | 23 | - id: uv-sync |
24 | 24 | args: ["--locked", "--all-packages"] |
25 | | - - repo: https://github.com/codespell-project/codespell |
26 | | - rev: v2.2.6 |
27 | | - hooks: |
28 | | - - id: codespell |
29 | | - exclude: > |
30 | | - (?x)^( |
31 | | - .*\.ambr |
32 | | - )$ |
33 | | - - repo: https://github.com/charliermarsh/ruff-pre-commit |
34 | | - rev: v0.13.2 |
35 | | - hooks: |
36 | | - - id: ruff-format |
37 | | - - id: ruff |
38 | | - args: |
39 | | - - --fix |
40 | | - - repo: https://github.com/pre-commit/mirrors-mypy |
41 | | - rev: v1.7.1 |
42 | | - hooks: |
43 | | - - id: mypy |
44 | | - exclude: cli.py |
45 | | - additional_dependencies: ["types-paho-mqtt", "types-pyyaml"] |
46 | | - - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook |
47 | | - rev: v9.23.0 |
48 | | - hooks: |
49 | | - - id: commitlint |
50 | | - stages: [commit-msg] |
51 | | - additional_dependencies: ["@commitlint/config-conventional"] |
| 25 | + - repo: https://github.com/codespell-project/codespell |
| 26 | + rev: v2.2.6 |
| 27 | + hooks: |
| 28 | + - id: codespell |
| 29 | + exclude: > |
| 30 | + (?x)^( |
| 31 | + .*\.ambr |
| 32 | + )$ |
| 33 | + - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 34 | + rev: v0.13.2 |
| 35 | + hooks: |
| 36 | + - id: ruff-format |
| 37 | + - id: ruff |
| 38 | + args: |
| 39 | + - --fix |
| 40 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 41 | + rev: v1.7.1 |
| 42 | + hooks: |
| 43 | + - id: mypy |
| 44 | + exclude: cli.py |
| 45 | + additional_dependencies: [ "types-paho-mqtt" ] |
| 46 | + - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook |
| 47 | + rev: v9.23.0 |
| 48 | + hooks: |
| 49 | + - id: commitlint |
| 50 | + stages: [commit-msg] |
| 51 | + additional_dependencies: ['@commitlint/config-conventional'] |
0 commit comments