-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
59 lines (55 loc) · 1.64 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
repos:
- repo: local
hooks:
- id: mix-tests
name: "elixir: tests"
entry: bash scripts/pre-commit/backend/test-modified-files.sh
language: system
pass_filenames: false
files: \.(he)?ex(s)?$
fail_fast: true
- id: mix-format
name: "elixir: mix format"
entry: mix format
language: system
fail_fast: true
files: \.(he)?ex(s)?$
- id: mix-compile
name: "elixir: mix compile"
entry: mix compile
language: system
pass_filenames: false
files: \.(he)?ex(s)?$
fail_fast: true
- id: mix-credo
name: "elixir: mix credo"
entry: mix credo
language: system
pass_filenames: false
files: \.(he)?ex(s)?$
fail_fast: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
exclude: \.(json|svg|eml|patch|rtf)$|VERSION$
args: [--markdown-linebreak-ext=md]
fail_fast: true
- id: check-merge-conflict
fail_fast: true
- id: end-of-file-fixer
exclude: \.(json|svg|eml|patch|rtf)$|VERSION$
fail_fast: true
# - id: no-commit-to-branch
# args: [-b, develop, -b, master, -b, rc]
- id: mixed-line-ending
exclude: \.(json|svg|eml|patch|rtf)$|VERSION$
fail_fast: true
# - id: detect-private-key
- id: detect-aws-credentials
args: [--allow-missing-credentials]
fail_fast: true
- id: check-yaml
fail_fast: true
- id: check-json
fail_fast: true