forked from crypto-org-chain/chainlibpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
48 lines (48 loc) · 1.58 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 9136088a246768144165fcc3ecc3d31bb686920a # frozen: v3.3.0
hooks:
- id: check-yaml
- id: check-toml
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 4f4c0a4cda27980be153cca2cb7710c9fec57ba3 # frozen: v1.7.0
hooks:
- id: python-use-type-annotations
- id: python-check-blanket-noqa
- repo: https://github.com/timothycrosley/isort
rev: 6bb47b7acc1554ecb59d2855e9110c447162f674 # frozen: 5.6.4
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: e66be67b9b6811913470f70c28b4d50f94d05b22 # frozen: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: f3bfcb5479b4fa73b3fbb95a6390420575f20b51 # frozen: v0.790
hooks:
- id: mypy
args:
# Suppress errors resulting from no access to dependencies
- --ignore-missing-imports
- --no-warn-unused-ignores
# Allow multiple scripts (no .py postfix in name) to be checked in a single mypy invocation
- --scripts-are-modules
- repo: https://gitlab.com/pycqa/flake8
rev: bb6a530e28acab8d3551043b3e8709db8bcbac6b # frozen: 3.8.4
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- repo: https://github.com/myint/docformatter
rev: de0bf8fa254d25a01383fecdb6335bea01daeae3 # frozen: v1.3.1
hooks:
- id: docformatter
- repo: https://github.com/executablebooks/mdformat
rev: 492440cdb4f3ca87eff24dea09c85881b0e5d597 # frozen: 0.4.0
hooks:
- id: mdformat
additional_dependencies:
- mdformat-black
- mdformat-toc