-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
29 lines (29 loc) · 1006 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
files: ^((homeassistant|custom_components|pylint|script|tests)/.+)?[^/]+\.py$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
exclude: (.vscode|.devcontainer)
- id: pretty-format-json
args: ['--autofix', '--no-ensure-ascii', '--top-keys=domain,name']
files: manifest.json
- id: pretty-format-json
args: ['--autofix', '--no-ensure-ascii', '--top-keys=name']
files: hacs.json
- id: pretty-format-json
args: ['--autofix', '--no-ensure-ascii', '--no-sort-keys']
files: (/strings\.json$|translations/.+\.json$)
- id: check-yaml
args: ['--unsafe']
- id: check-added-large-files
- id: check-shebang-scripts-are-executable