-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
66 lines (66 loc) · 1.75 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
default_install_hook_types:
- pre-commit
- pre-merge-commit
- commit-msg
default_stages:
- pre-commit
- pre-merge-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
name: check that VCS links are permanent links
- id: detect-private-key
name: check for added private keys
- id: mixed-line-ending
name: check for mixed line endings
args: [--fix=no]
- id: trailing-whitespace
- id: check-yaml
name: check YAML is parsable
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
name: check for added binaries
- repo: local
hooks:
- id: gitlint
name: check commit message is in conventional commits format
entry: gitlint
language: system
args: [--staged, --msg-filename]
stages: [commit-msg]
- id: hlint
name: lint with hlint
entry: hlint
language: system
args: [--quiet]
types: [haskell]
- id: cabal-fmt
name: format with cabal-fmt
entry: cabal-fmt
language: system
args: [--inplace]
files: '^.*\.cabal$'
- id: fourmolu
name: format with fourmolu
entry: fourmolu
language: system
args: [--mode=inplace]
types: [haskell]
- id: nixfmt
name: format with nixfmt
entry: nixfmt
language: system
args: [--verify]
types: [nix]
- id: yamlfmt
name: format with yamlfmt
entry: yamlfmt
language: system
types: [yaml]