-
Notifications
You must be signed in to change notification settings - Fork 54
/
.pre-commit-config.yaml
41 lines (40 loc) · 1.04 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: no-commit-to-branch
args:
- -b
- master
- -b
- production
- -b
- staging
- repo: local
hooks:
- id: mix-format
name: "elixir: mix format"
entry: mix format --check-formatted
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: \.exs*$