forked from OffchainLabs/arbitrum-classic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.77 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
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://gitlab.com/pycqa/flake8
rev: 3.9.0
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.3.2' # Use the sha or tag you want to point at
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v7.32.0' # 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-beta.17'
- id: go-vet
name: Go Vet
entry: ./scripts/run-go-packages "PATH=/usr/local/bin:$PATH go list ./... | grep -v 'arb-node-core/ethbridge[^/]*contracts' | xargs go vet"
language: script
files: \.go$