Skip to content

Commit 682d689

Browse files
authored
convert pre-commit-config.yaml from JSON to YAML (#4513)
* convert pre-commit-config from JSON to YAML using https://www.geeksforgeeks.org/json-to-yaml-converter/ * document pre-commit tool
1 parent 7c92fe2 commit 682d689

File tree

1 file changed

+23
-32
lines changed

1 file changed

+23
-32
lines changed

.pre-commit-config.yaml

+23-32
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
1-
{
2-
"repos": [
3-
{
4-
"hooks": [
5-
{
6-
"entry": "stylish-haskell --inplace",
7-
"exclude": "(^Setup.hs$|test/testdata/.*$|test/data/.*$|test/manual/lhs/.*$|^hie-compat/.*$|^plugins/hls-tactics-plugin/.*$|^ghcide/src/Development/IDE/GHC/Compat.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/GHC/Compat/ExactPrint.hs$|^ghcide/src/Development/IDE/GHC/Compat/Core.hs$|^ghcide/src/Development/IDE/Spans/Pragmas.hs$|^ghcide/src/Development/IDE/LSP/Outline.hs$|^plugins/hls-splice-plugin/src/Ide/Plugin/Splice.hs$|^ghcide/src/Development/IDE/Core/Rules.hs$|^ghcide/src/Development/IDE/Core/Compile.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/GHC/ExactPrint.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction/ExactPrint.hs$)",
8-
"files": "\\.l?hs$",
9-
"id": "stylish-haskell",
10-
"language": "system",
11-
"name": "stylish-haskell",
12-
"pass_filenames": true,
13-
"types": [
14-
"file"
15-
]
16-
}
17-
],
18-
"repo": "local"
19-
},
20-
{
21-
"repo": "https://github.com/pre-commit/pre-commit-hooks",
22-
"rev": "v4.1.0",
23-
"hooks": [
24-
{
25-
"id": "mixed-line-ending",
26-
"args": ["--fix", "lf"],
27-
"exclude": "test/testdata/.*CRLF.*?\\.hs$"
28-
}
29-
]
30-
}
31-
]
32-
}
1+
# https://pre-commit.com/
2+
# https://github.com/pre-commit/pre-commit
3+
repos:
4+
- hooks:
5+
- entry: stylish-haskell --inplace
6+
exclude: >-
7+
(^Setup.hs$|test/testdata/.*$|test/data/.*$|test/manual/lhs/.*$|^hie-compat/.*$|^plugins/hls-tactics-plugin/.*$|^ghcide/src/Development/IDE/GHC/Compat.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/GHC/Compat/ExactPrint.hs$|^ghcide/src/Development/IDE/GHC/Compat/Core.hs$|^ghcide/src/Development/IDE/Spans/Pragmas.hs$|^ghcide/src/Development/IDE/LSP/Outline.hs$|^plugins/hls-splice-plugin/src/Ide/Plugin/Splice.hs$|^ghcide/src/Development/IDE/Core/Rules.hs$|^ghcide/src/Development/IDE/Core/Compile.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/GHC/ExactPrint.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction/ExactPrint.hs$)
8+
files: \.l?hs$
9+
id: stylish-haskell
10+
language: system
11+
name: stylish-haskell
12+
pass_filenames: true
13+
types:
14+
- file
15+
repo: local
16+
- repo: https://github.com/pre-commit/pre-commit-hooks
17+
rev: v4.1.0
18+
hooks:
19+
- id: mixed-line-ending
20+
args:
21+
- '--fix'
22+
- lf
23+
exclude: test/testdata/.*CRLF.*?\.hs$

0 commit comments

Comments
 (0)