forked from UI-Lovelace-Minimalist/UI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
88 lines (81 loc) · 2.37 KB
/
.pre-commit-config.yaml
File metadata and controls
88 lines (81 loc) · 2.37 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
---
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: "release"
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: "weekly"
skip: []
submodules: false
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v6.0.0"
hooks:
- id: "check-executables-have-shebangs"
- id: "check-json"
- id: "check-merge-conflict"
- id: "check-yaml"
args: ["--unsafe"]
- id: "detect-private-key"
- id: "no-commit-to-branch"
- id: "requirements-txt-fixer"
- id: "debug-statements"
- id: "end-of-file-fixer"
exclude: "^custom_componenents/ui_lovelace_minimalist/cards/"
- id: "trailing-whitespace"
exclude: "^custom_componenents/ui_lovelace_minimalist/cards/"
- id: "mixed-line-ending"
- repo: "https://github.com/adrienverge/yamllint.git"
rev: "v1.37.1"
hooks:
- id: "yamllint"
args: ["--format", "parsable", "--strict"]
# exclude: ".pre-commit-config.yaml"
exclude: |
(?x)^(
.pre-commit-config.yaml
)$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.47.0
hooks:
- id: markdownlint
args: ["--fix"]
- repo: "https://github.com/jumanjihouse/pre-commit-hook-yamlfmt"
rev: "0.2.3"
hooks:
- id: "yamlfmt"
args:
[
"--mapping",
"2",
"--sequence",
"4",
"--offset",
"2",
"--preserve-quotes",
]
exclude: ".*"
- repo: "https://github.com/mattlqx/pre-commit-search-and-replace"
rev: "v1.1.9"
hooks:
- id: "search-and-replace"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.11"
hooks:
# 1. The Linter (Replaces Flake8, Isort, Pyupgrade, Bandit)
- id: ruff
args: ["--fix"]
# 2. The Formatter (Replaces Black)
- id: ruff-format
- repo: https://github.com/codespell-project/codespell.git
rev: "v2.4.1"
hooks:
- id: codespell
files: "(.*.md|translations/en.json)"
name: codespell
description: Checks for common misspellings in text files.
entry: codespell
language: python
types: [text]