forked from mozilla/authenticator-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
42 lines (42 loc) · 1 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
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: HEAD
hooks:
- id: flake8
- id: check-ast
- id: detect-private-key
- id: detect-aws-credentials
- id: check-merge-conflict
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: rustfmt
name: Check rustfmt
language: system
entry: cargo fmt -- --check
pass_filenames: false
files: '.rs$'
- repo: local
hooks:
- id: tests
name: Run tests
language: system
entry: cargo test --all-targets --all-features
pass_filenames: false
files: '.rs$'
- repo: local
hooks:
- id: clippy
name: Check clippy
language: system
entry: cargo clippy --all-targets -- -A renamed_and_removed_lints -A clippy::new-ret-no-self -D warnings
pass_filenames: false
files: '.rs$'
- repo: local
hooks:
- id: black
name: Check black
language: system
entry: black
files: '.py$'