-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
52 lines (47 loc) · 1.28 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: no-commit-to-branch
args: [-b, master]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
types_or: [css, javascript]
- repo: local
hooks:
- id: mix-format
name: "elixir: mix format"
entry: mix format
language: system
files: \.exs?$
- id: mix-compile
name: "elixir: mix compile"
entry: make compile
language: system
pass_filenames: false
files: \.ex$
- id: mix-test
name: "elixir: mix test"
entry: make test
language: system
pass_filenames: false
files: \.exs?$
- id: mix-credo
name: "elixir: mix credo"
entry: make credo
language: system
pass_filenames: false
files: \.exs*$
- id: mix-dialyzer
name: "elixir: mix dialyzer"
entry: make dialyzer
language: system
pass_filenames: false
files: \.exs?$