-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
47 lines (42 loc) · 1.21 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
default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.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: .bumpversion.cfg
- id: trailing-whitespace
- id: no-commit-to-branch
args: [--branch, develop, --branch, master]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.4"
hooks:
- id: prettier
additional_dependencies: ["[email protected]", "[email protected]"]
files: "\\.sol$"
args: ["--plugin=prettier-plugin-solidity"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 977b5b383e7b3f65f21b94300f4d7
hooks:
- id: mypy
args: []
entry: mypy .
pass_filenames: false
- repo: https://github.com/pycqa/flake8
rev: '5.0.4' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies: ["flake8-string-format"]