-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (31 loc) · 887 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (31 loc) · 887 Bytes
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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
# misc
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
# yaml
- id: check-yaml
- repo: https://github.com/qoomon/git-conventional-commits
rev: v2.6.3
hooks:
- id: conventional-commits
- repo: "local"
hooks:
- id: "mix-format"
name: "Format Elixir files"
description: "Formats Elixir files with 'mix format'"
language: "system"
entry: "mix format"
files: "\\.(?:exs|ex|heex)$"
require_serial: true
- id: "mix-test"
name: "Test Elixir files"
description: "Runs Elixir tests with 'mix test'"
language: "system"
entry: "./support/scripts/test-elixir"
files: "\\.(?:exs|ex|heex)$"
require_serial: true