forked from OffchainLabs/arbitrum-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (60 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
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://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.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.24.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:
- "eslint@7.3.1"
- "typescript@3.8.3"
- "@typescript-eslint/parser@3.4.0"
- "@typescript-eslint/eslint-plugin@3.4.0"
- eslint-config-prettier@6.11.0
- 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@2.0.5"
- "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$