-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.36 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: local
hooks:
- id: validate-commit-msg
name: Commit message is prefixed by Jira ticket number
entry: ^(?!PAN-\d*:.+)
language: pygrep
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: no-commit-to-branch
name: Check that branch name follows our standard
description: Checks that a branch has a proper name
args: ["--branch", "main", "--pattern", '^(?!(feature|bugfix)\/PAN-[0-9]+-[a-z0-9._-]+).*']
stages: [commit-msg]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
args:
- --plugin=prettier-plugin-solidity
files: '\.sol$'
additional_dependencies:
- repo: local
hooks:
- id: solhint
name: "lint solidity"
entry: npx solhint
language: system
files: '\.sol$'
- repo: local
hooks:
- id: test
name: "forge test"
entry: forge test
language: system
pass_filenames: false
- repo: local
hooks:
- id: snapshot
name: "forge snapshot"
entry: forge snapshot
language: system
pass_filenames: false