-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (42 loc) · 978 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
38
39
40
41
42
43
44
45
46
47
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: local
hooks:
- id: mix-test
name: 'elixir: mix test'
entry: mix test
language: system
pass_filenames: false
files: \.exs*$
- id: mix-format
name: 'elixir: mix format'
entry: mix format
language: system
files: \.exs*$
- id: mix-compile
name: 'elixir: mix compile'
entry: mix compile --force --warnings-as-errors
language: system
pass_filenames: false
files: \.ex$
- id: mix-credo
name: 'elixir: mix credo'
entry: mix credo
language: system
pass_filenames: false
files: \.exs*$
- id: mix-dialyzer
name: 'elixir: mix dialyzer'
entry: mix dialyzer
language: system
pass_filenames: false
files: \.ex$