-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
121 lines (109 loc) · 3.27 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
121 lines (109 loc) · 3.27 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
default_stages: [pre-commit]
repos:
- repo: builtin
hooks:
- id: no-commit-to-branch
args: ["--branch", "main"]
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: check-illegal-windows-names
- id: detect-private-key
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.3
hooks:
- id: ruff-check
args: ["--fix"]
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: mypy
entry: uv run mypy
language: system
files: ^custom_components/cpu_capacity/.*\.py$
pass_filenames: false
args: [custom_components/cpu_capacity]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
args: ["--ignore-words-list", "hass,renderD,renderd"]
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.9.6
hooks:
- id: prettier
types_or: [yaml, json, markdown]
args: ["--prose-wrap", "always"]
language_version: "system"
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
files: \.sh$
args: ["-S", "warning", "-e", "SC1091"]
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.0-1
hooks:
- id: shfmt
files: \.sh$
args: ["-w", "-i", "2", "-ci"]
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.15.1
hooks:
- id: hadolint
args: ["--ignore", "DL3006", "--ignore", "DL3018"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.6
hooks:
- id: insert-license
name: Ensure Python copyright header
files: \.py$
args:
- --license-filepath
- .copyright-header.txt
- --comment-style
- "#"
- --detect-license-in-X-top-lines=8
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.26.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional@21"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.38.0
hooks:
- id: check-jsonschema
name: Validate pre-commit config schema
files: ^\.pre-commit-config\.yaml$
args:
- --schemafile
- https://json.schemastore.org/pre-commit-config.json
- id: check-jsonschema
name: Validate commitlint config schema
files: ^\.commitlintrc\.json$
args:
- --schemafile
- https://json.schemastore.org/commitlintrc.json
- id: check-github-workflows
- id: check-jsonschema
name: Validate Renovate config schema
files: ^renovate\.json$
args:
- --schemafile
- https://docs.renovatebot.com/renovate-schema.json