-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (45 loc) · 1.13 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: v4.1.0
hooks:
- id: trailing-whitespace
- id: check-toml
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: forbid-tabs
- repo: local
hooks:
- id: rustfmt
name: rustfmt
language: system
entry: cargo fmt --
types: [rust]
- id: clippy
name: clippy
language: system
entry: cargo clippy --all-targets --all-features -- -D warnings
types: [rust]
pass_filenames: false
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args: [
'--in-place',
'--remove-all-unused-imports',
'--remove-unused-variables',
'--ignore-init-module-imports'
]
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
args: [--settings-path=pyproject.toml]
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
args: [--config=pyproject.toml]
default_language_version:
python: python3.8