-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
31 lines (31 loc) · 982 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
# yamllint disable rule:line-length
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
- id: ruff
args:
- --fix
exclude: ^(\..*|README.md|\.pre-commit-config\.yaml|\.yamllint)
- id: ruff-format
files: >
^((custom_components|pylint|script|tests)/.+)?[^/]+\.(py|pyi)$
exclude: ^(\..*|README.md|\.pre-commit-config\.yaml|\.yamllint)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
exclude: ^(\..*|README.md|\.pre-commit-config\.yaml|\.yamllint)
- repo: https://github.com/cdce8p/python-typing-update
rev: v0.6.0
hooks:
- id: python-typing-update
stages: [manual]
args:
- --py312-plus
- --force
- --keep-updates
files: >
^(custom_components|tests|script)/.+\.py$
exclude: ^(\..*|README.md|\.pre-commit-config\.yaml|\.yamllint)