-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
76 lines (70 loc) · 2.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
args: ["--ignore-whitespace", "--settings-path", "./", "--recursive"]
- repo: https://github.com/trustlines-protocol/more-pre-commit-hooks.git
rev: 1edc6d3ab9380e17eb01a601551283cf7bc23f2b
hooks:
- id: shfmt
- id: shellcheck
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.2.0"
hooks:
- id: prettier
additional_dependencies: ["prettier@2.1.2", "prettier-plugin-solidity@1.0.0-beta.1"]
files: "\\.sol$"
args: ["--plugin=prettier-plugin-solidity"]
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
exclude: ^contracts/contracts/lib/.*\.sol|contracts/contracts/token/TrustlinesNetworkToken.sol|tools/bridge/.bumpversion.cfg|chain/laika/.bumpversion.cfg|chain/tlbc/.bumpversion.cfg$
- id: flake8
additional_dependencies: ["flake8-string-format", "pep8-naming"]
- id: trailing-whitespace
exclude: ^(contracts/contracts/lib/.*\.sol|tools/bridge/.bumpversion.cfg|chain/laika/.bumpversion.cfg|chain/tlbc/.bumpversion.cfg)$
- id: no-commit-to-branch
args: [--branch, develop, --branch, master]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782
hooks:
- id: mypy
name: mypy-bridge
args: [--ignore-missing-imports]
files: ^bridge/
- id: mypy
name: mypy-contracts
args: [--ignore-missing-imports]
files: ^contracts/
- id: mypy
name: mypy-auction-deploy-tools
args: [--ignore-missing-imports]
files: ^deploy-tools/auction-deploy/
- id: mypy
name: mypy-bridge-deploy-tools
args: [--ignore-missing-imports]
files: ^deploy-tools/bridge-deploy/
- id: mypy
name: mypy-validator-set-deploy-tools
args: [--ignore-missing-imports]
files: ^deploy-tools/validator-set-deploy/
- id: mypy
name: mypy-quickstart
args: [--ignore-missing-imports]
files: ^quickstart/