-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (54 loc) · 1.25 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- id: detect-private-key
- id: sort-simple-yaml
- repo: https://github.com/asottile/pyupgrade
rev: v3.13.0
hooks:
- id: pyupgrade
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3"
hooks:
- id: prettier
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: autoflake
language: python
types: [python]
args:
[
--in-place,
--remove-all-unused-imports,
--remove-unused-variable,
--ignore-init-module-imports,
]
- id: isort
name: isort
entry: isort
language: python
types: [python]
- id: black
name: black
entry: black
language: python
types: [python]
args: [--quiet]
- id: flake8
name: flake8
entry: flake8
language: python
types: [python]
- id: mypy
name: mypy
entry: mypy
language: python
types: [python]