-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (36 loc) · 1.21 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (36 loc) · 1.21 KB
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
32
33
34
35
36
37
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.7
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: v6.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
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
hooks:
- id: prettier
additional_dependencies:
- prettier@3.6.2
# - prettier-plugin-sort-json@4.1.1