-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
57 lines (57 loc) · 1.42 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
55
56
57
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-yaml
- id: requirements-txt-fixer
- id: detect-private-key
- id: check-merge-conflict
# - id: no-commit-to-branch
- repo: https://github.com/snok/pep585-upgrade
rev: v1.0.1
hooks:
- id: upgrade-type-hints
- repo: local
hooks:
- id: isort
name: isort
language: python
entry: isort
types: [python]
- id: black
name: black
language: python
entry: black
types: [python]
- id: flake8
name: flake8
language: python
entry: flake8
types: [python]
- id: autoflake
name: autoflake
language: python
entry: autoflake
types: [python]
args: [-i, --remove-all-unused-imports, --remove-unused-variable]
- id: pylint
name: pylint
language: python
entry: pylint
types: [python]
- id: mypy
name: mypy
language: python
entry: mypy .
types: [python]
pass_filenames: false
- id: bandit
name: bandit
language: python
entry: bandit -s B101
types: [python]