27
27
rev : v4.6.0
28
28
hooks :
29
29
- id : check-added-large-files
30
- - id : check-ast
31
30
- id : check-case-conflict
32
31
- id : check-executables-have-shebangs
33
32
- id : check-json
@@ -50,19 +49,14 @@ repos:
50
49
- id : requirements-txt-fixer
51
50
- id : trailing-whitespace
52
51
53
- - repo : https://github.com/pre-commit/mirrors-prettier
54
- rev : v4.0.0-alpha.8
55
- hooks :
56
- - id : prettier
57
- args :
58
- ['--no-error-on-unmatched-pattern', '--ignore-unknown']
59
-
60
- # Lint: Markdown - Disabled as most rules aren't useful
61
- # - repo: https://github.com/igorshubovych/markdownlint-cli
62
- # rev: v0.39.0
63
- # hooks:
64
- # - id: markdownlint
65
- # args: ["--fix"]
52
+ # yamllint disable rule:comments-indentation
53
+ # # Commenting until issue #94 is fixed
54
+ # - repo: https://github.com/igorshubovych/markdownlint-cli
55
+ # rev: v0.41.0
56
+ # hooks:
57
+ # - id: markdownlint
58
+ # args: ["--fix"]
59
+ # yamllint enable rule:comments-indentation
66
60
67
61
- repo : https://github.com/jorisroovers/gitlint
68
62
rev : v0.19.1
@@ -80,38 +74,25 @@ repos:
80
74
hooks :
81
75
- id : shellcheck
82
76
83
- - repo : https://github.com/pycqa/pydocstyle.git
84
- rev : 6.3.0
85
- hooks :
86
- - id : pydocstyle
87
- additional_dependencies : ["tomli"]
88
-
89
77
- repo : https://github.com/Mateusz-Grzelinski/actionlint-py
90
- rev : v1.7.0.14
78
+ rev : v1.7.1.15
91
79
hooks :
92
80
- id : actionlint
93
81
94
- - repo : https://github.com/pycqa/flake8
95
- rev : " 7.0.0"
96
- hooks :
97
- - id : flake8
98
- additional_dependencies :
99
- - pep8-naming
100
-
101
82
- repo : https://github.com/adrienverge/yamllint.git
102
83
rev : v1.35.1
103
84
hooks :
104
85
- id : yamllint
105
- args : [ "-d", "{rules: {line-length: {max: 120}}, ignore-from-file: [.gitignore],}", ]
86
+ args :
87
+ ["-d", "{rules : {line-length: {max: 120}},
88
+ ignore-from-file : [.gitignore],}"]
106
89
107
90
- repo : https://github.com/astral-sh/ruff-pre-commit
108
- rev : v0.4.5
91
+ rev : v0.5.7
109
92
hooks :
110
93
- id : ruff
111
- files : ^(scripts|tests|custom_components)/.+\.py$
112
- args : [--fix, --exit-non-zero-on-fix]
94
+ args : [--fix, --exit-non-zero-on-fix, --config=pyproject.toml]
113
95
- id : ruff-format
114
- files : ^(scripts|tests|custom_components)/.+\.py$
115
96
116
97
- repo : https://github.com/pre-commit/mirrors-mypy
117
98
rev : " v1.10.0"
@@ -121,22 +102,17 @@ repos:
121
102
args : ["--show-error-codes", "--install-types", "--non-interactive"]
122
103
additional_dependencies : ["pytest", "types-requests"]
123
104
105
+ # yamllint disable rule:comments-indentation
124
106
# Check for misspellings in documentation files
125
107
# - repo: https://github.com/codespell-project/codespell
126
108
# rev: v2.2.2
127
109
# hooks:
128
110
# - id: codespell
129
111
130
- # To embrace black styles, even in docs
131
- # - repo: https://github.com/asottile/blacken-docs
132
- # rev: v1.13.0
133
- # hooks:
134
- # - id: blacken-docs
135
- # additional_dependencies: [black]
136
-
137
112
# Automatically upgrade Python syntax for newer versions
138
113
# - repo: https://github.com/asottile/pyupgrade
139
114
# rev: v3.15.0
140
115
# hooks:
141
116
# - id: pyupgrade
142
117
# args: ['--py37-plus']
118
+ # yamllint enable rule:comments-indentation
0 commit comments