forked from UI-Lovelace-Minimalist/UI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
119 lines (109 loc) · 3.1 KB
/
.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
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
---
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: "v4.2.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.26.3"
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.31.1
hooks:
- id: markdownlint
args: ["--fix"]
- repo: "https://github.com/jumanjihouse/pre-commit-hook-yamlfmt"
rev: "0.1.1"
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.0.5"
hooks:
- id: "search-and-replace"
- repo: "https://github.com/asottile/pyupgrade"
rev: "v2.31.1"
hooks:
- id: "pyupgrade"
args: ["--py39-plus"]
- repo: "https://github.com/pre-commit/mirrors-isort"
rev: "v5.10.1"
hooks:
- id: "isort"
- repo: "https://github.com/psf/black"
rev: "22.3.0"
hooks:
- id: "black"
args:
- "--safe"
- "--quiet"
<<: &python-files-with-tests
files: '^((custom_components|tests)/.+)?[^/]+\.py$'
- repo: "https://github.com/PyCQA/flake8"
rev: "4.0.1"
hooks:
- id: "flake8"
additional_dependencies:
- "flake8-docstrings==1.6.0"
- "pydocstyle==6.1.1"
<<: &python-files
files: '^(custom_components/.+)?[^/]+\.py$'
- repo: "https://github.com/PyCQA/bandit"
rev: "1.7.4"
hooks:
- id: "bandit"
args:
- "--quiet"
- "--format=custom"
# - "--configfile=bandit.yaml"
<<: *python-files-with-tests
- repo: https://github.com/codespell-project/codespell.git
rev: "v2.1.0"
hooks:
- id: codespell
files: "(.*.md|translations/en.json)"
name: codespell
description: Checks for common misspellings in text files.
entry: codespell
language: python
types: [text]