8000 pre-commit: Try to autofix yaml BEFORE checking it · testnest/pyscript@766cbac · GitHub
[go: up one dir, main page]

Skip to content

Commit 766cbac

Browse files
authored
pre-commit: Try to autofix yaml BEFORE checking it
1 parent fadb4a6 commit 766cbac

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,27 @@
33

44
default_stages: [commit]
55
repos:
6+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
7+
rev: v2.3.0
8+
hooks:
9+
- id: pretty-format-yaml
10+
args: [--autofix, --indent, '4']
11+
612
- repo: https://github.com/pre-commit/pre-commit-hooks
713
rev: v4.2.0
814
hooks:
915
- id: check-builtin-literals
1016
- id: check-case-conflict
1117
- id: check-docstring-first
18+
- id: check-json
19+
exclude: tsconfig.json
1220
- id: check-toml
1321
- id: check-xml
1422
- id: check-yaml
1523
- id: detect-private-key
1624
- id: end-of-file-fixer
1725
exclude: \.min\.js$
1826
- id: trailing-whitespace
19-
- id: check-json
20-
exclude: tsconfig.json
21-
- id: check-yaml
2227

2328
- repo: https://github.com/PyCQA/bandit
2429
rev: 1.7.4
@@ -50,12 +55,6 @@ repos:
5055
name: isort (python)
5156
args: [--profile, black]
5257

53-
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
54-
rev: v2.3.0
55-
hooks:
56-
- id: pretty-format-yaml
57-
args: [--autofix, --indent, '4']
58-
5958
- repo: https://github.com/asottile/pyupgrade
6059
rev: v2.32.1
6160
hooks:

0 commit comments

Comments
 (0)
0