generated from adhtruong/template-python-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.08 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: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- id: detect-private-key
- id: sort-simple-yaml
- 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]
language_version: python3.8
args: [--quiet]
- id: flake8
name: flake8
entry: flake8
language: python
types: [python]
- id: mypy
name: mypy
entry: mypy
language: python
types: [python]