-
Notifications
You must be signed in to change notification settings - Fork 36
/
.pre-commit-config.yaml
49 lines (49 loc) · 2.28 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
repos:
- repo: https://github.com/keep-network/pre-commit-hooks.git
rev: v1.3.0
hooks:
- id: check-added-large-files
- repo: local
hooks:
- id: root-format
name: "Check root directory code formatting"
entry: /usr/bin/env bash -c "yarn format"
exclude: '^solidity\/|^yearn\/|^typescript\/|^monitoring\/'
language: script
description: "Checks root directory code according to the formatting configuration"
- id: solidity-format
name: "Check solidity directory code formatting"
entry: /usr/bin/env bash -c "cd solidity && yarn format"
files: "^solidity/"
language: script
description: "Checks solidity directory code according to the formatting configuration"
- id: yearn-format
name: "Check yearn directory code formatting"
entry: /usr/bin/env bash -c "cd yearn && yarn format"
files: "^yearn/"
language: script
description: "Checks yearn directory code according to the formatting configuration"
- id: typescript-format
name: "Check typescript directory code formatting"
entry: /usr/bin/env bash -c "cd typescript && yarn format"
files: "^typescript/"
language: script
description: "Checks typescript directory code according to the formatting configuration"
- id: monitoring-format
name: "Check monitoring directory code formatting"
entry: /usr/bin/env bash -c "cd monitoring && yarn format"
files: "^monitoring/"
language: script
description: "Checks monitoring directory code according to the formatting configuration"
- id: cross-chain-arbitrum-format
name: "Check cross-chain/arbitrum directory code formatting"
entry: /usr/bin/env bash -c "cd cross-chain/arbitrum && yarn format"
files: "^cross-chain/arbitrum/"
language: script
description: "Checks cross-chain/arbitrum directory code according to the formatting configuration"
- id: typescript-docs
name: "Generate typescript API reference docs"
entry: /usr/bin/env bash -c "cd typescript && yarn docs"
files: "^typescript/"
language: script
description: "Generates typescript API reference docs according to the typedoc configuration"