-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
37 lines (34 loc) · 950 Bytes
/
.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
# Pre-commit configuration
#
# This will help ensure everything I commit is kinda clean and neat.
#
exclude: ^(custom_components|www/community)/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# - id: check-json
- id: check-case-conflict
- id: check-merge-conflict
# - id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
exclude: ^.HA_VERSION
# - id: forbid-new-submodules
- id: trailing-whitespace
- id: check-yaml
args: ['--unsafe']
# REMOVED: Can't include a Title or be Foldable
# - repo: https://github.com/thlorenz/doctoc
# rev: v2.2.0
# hooks:
# - id: doctoc
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
types: [markdown]