forked from mahsamoosavi/arbitrum-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (60 loc) · 1.78 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
exclude: |
(?x)(
^packages/arb-avm-cpp/external/keccak/|
^packages/arb-bridge-eth/installed_contracts/
)
repos:
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8
- repo: git://github.com/doublify/pre-commit-clang-format
rev: master
hooks:
- id: clang-format
- repo: git://github.com/dnephin/pre-commit-golang
rev: master
hooks:
- id: go-fmt
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.2.1' # Use the sha or tag you want to point at
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v7.3.1' # Use the sha / tag you want to point at
hooks:
- id: eslint
args: [--fix]
types: [text]
# ignore prettier config
files: \.[jt]sx?$
additional_dependencies:
- '@typescript-eslint/[email protected]'
- '@typescript-eslint/[email protected]'
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.16
hooks:
- id: circleci-config-validate
- repo: local
hooks:
- id: prettier-soldity
name: prettier-soldity
language: node
entry: ./node_modules/.bin/prettier --write --list-different
files: \.sol$
additional_dependencies:
- 'prettier-plugin-solidity@^1.0.0-alpha.54'
- id: go-vet
name: Go Vet
entry: ./scripts/run-go-packages "go list ./... | grep -v 'arb-node-core/ethbridge[^/]*contracts' | xargs go vet"
language: script
files: \.go$