-
Notifications
You must be signed in to change notification settings - Fork 49
/
.pre-commit-config.yaml
46 lines (42 loc) · 1.11 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: check-json
exclude: enums/templates/json.json
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.7
hooks:
- id: taskcluster_yml
- repo: local
hooks:
- id: fmt
name: fmt
language: system
files: '\.rs$'
exclude: '.*/templates/.*\.rs$'
entry: cargo fmt -- --check --verbose
- id: clippy
name: clippy
language: system
files: '\.rs$'
entry: cargo clippy --all-targets --all -- -D warnings
pass_filenames: false
- id: udeps
name: udeps
language: system
files: '\.rs$'
entry: cargo +nightly udeps --all-targets
pass_filenames: false
- id: test
name: test
language: system
files: '\.rs$'
entry: cargo test
pass_filenames: false
default_language_version:
python: python3