-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
55 lines (55 loc) · 1.55 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
default_stages: [ commit ]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
# NOTE uncomment no-commit-to-branch once project gets underway
# - id: no-commit-to-branch
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: check-mailmap
- id: forbid-binary
exclude: (.*(woff2?|ttf)|logo.png)$
- id: git-check
- id: script-must-have-extension
- id: script-must-not-have-extension
- id: shellcheck
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v5.0.0
hooks:
- id: commitlint
stages: [ commit-msg ]
- repo: local
hooks:
- name: format
id: format
language: system
entry: cargo
args: [ make, check-format ]
types: [ rust ]
pass_filenames: false
- name: clippy
id: clippy
language: system
entry: cargo
args: [ make, clippy ]
types: [ rust ]
pass_filenames: false
- name: clippy-strict
id: clippy-strict
language: system
entry: bash -c "CARGO_MAKE_CLIPPY_ARGS=\"[-- -D warnings]\" cargo make clippy"
always_run: true
stages: [ push ]
pass_filenames: false