-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
executable file
·68 lines (59 loc) · 1.52 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
58
59
60
61
62
63
64
65
66
67
68
default_language_version:
python: python3
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
name: Trailing Whitespace
- id: end-of-file-fixer
name: End Of File Fixer
- id: check-merge-conflict
name: Check Merge Conflict
- id: detect-private-key
name: Detect Private Key
- id: mixed-line-ending
name: Mixed Line Ending
- id: detect-private-key
name: Detect Private Keys
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
name: Isort
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
name: Black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
name: Blacken Docs
additional_dependencies: ["black==22.1.0"]
- repo: local
hooks:
- id: flake8
name: Flake8
entry: pflake8
language: python
types: [python]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.941
hooks:
- id: mypy
name: MyPy
additional_dependencies: ["types-redis"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
name: Pyupgrade
args: ["--py36-plus"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
hooks:
- id: shellcheck
name: Check shell scripts