-
Notifications
You must be signed in to change notification settings - Fork 75
/
.pre-commit-config.yaml
56 lines (56 loc) · 2.33 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
repos:
- repo: https://github.com/keep-network/pre-commit-golang.git
rev: 466ade9296d8445d520ec7ab246a30cfa8a07b71
hooks:
- id: go-imports
- id: go-vet
- id: go-fmt
- id: staticcheck
- repo: https://github.com/keep-network/pre-commit-hooks.git
rev: 63e729f
hooks:
- id: check-added-large-files
- repo: local
hooks:
- id: lint-sol
name: 'lint solidity sol'
entry: /usr/bin/env bash -c "cd solidity/random-beacon && npm run lint:sol"
files: '\.sol$'
language: script
description: "Checks solidity code according to the package's linter configuration"
- id: lint-eslint
name: 'lint solidity ts/js'
entry: /usr/bin/env bash -c "cd solidity/random-beacon && npm run lint:eslint"
files: '\.(ts|js)$'
language: script
description: "Checks TS/JS code according to the package's linter configuration"
- id: lint-config
name: 'lint solidity json/yaml'
entry: /usr/bin/env bash -c "cd solidity/random-beacon && npm run lint:config"
files: '\.(json|yaml)$'
language: script
description: "Checks JSON/YAML code according to the package's linter configuration"
- id: lint-js-v1
name: 'lint solidity-v1 js'
entry: /usr/bin/env bash -c "cd solidity-v1 && npm run lint:js"
files: 'solidity-v1\/.*\.js$'
language: script
description: "Checks JS code according to the package's linter configuration"
- id: lint-sol-v1
name: 'lint solidity-v1 sol'
entry: /usr/bin/env bash -c "cd solidity-v1 && npm run lint:sol"
files: 'solidity-v1\/.*\.sol$'
language: script
description: "Checks solidity code according to the package's linter configuration"
- id: format-dashboard
name: 'format dashboard'
entry: /usr/bin/env bash -c "cd solidity-v1/dashboard && npm run format"
files: 'solidity-v1/dashboard/'
language: script
description: "Checks dashboard code according to the package's formatting configuration"
- id: lint-faucet-js
name: 'lint faucet js'
entry: /usr/bin/env bash -c "cd infrastructure/gcp/keep-test/google-functions/keep-faucet && npm run lint:js"
files: 'infrastructure\/gcp\/keep-test\/google-functions\/keep-faucet\/.*\.js$'
language: script
description: "Checks JS code according to the package's linter configuration"