-
Notifications
You must be signed in to change notification settings - Fork 42
/
.pre-commit-config.yaml
43 lines (42 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
repos:
- repo: local
hooks:
# Elixir config
# Randomly started failing
# - id: mix-format
# name: 'elixir: mix format'
# entry: mix format --check-formatted
# language: system
- id: mix-lint
name: 'elixir: mix credo'
entry: mix credo --strict
language: system
pass_filenames: false
files: \.exs*$
- id: mix-analysis
name: 'elixir: mix dialyzer'
entry: mix dialyzer --format dialyxir
language: system
pass_filenames: false
files: \.exs*$
- id: mix-compile
name: 'elixir: mix compile'
entry: mix compile --force --warnings-as-errors
language: system
pass_filenames: false
files: \.ex$
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: mixed-line-ending
args: ['--fix=lf']
description: Forces to replace line ending by the UNIX 'lf' character.
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: "^omnibus/config/patches/"
- id: trailing-whitespace
exclude: "^omnibus/config/patches/"
- id: check-merge-conflict
- id: no-commit-to-branch
args: [-b, master, -b, develop]