-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
95 lines (88 loc) · 2.37 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
default_language_version:
python: python3
repos:
- repo: local
hooks:
- id: generate
name: generate
language: system
entry: bash -c 'cd rolling-shutter && make generate'
always_run: true
pass_filenames: false
require_serial: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1000"]
- id: file-contents-sorter
files: \.tool-versions$
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
exclude: |
(?x)(
^rolling-shutter/docs/.*\.md$|
)
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
additional_dependencies:
args: ["--plugin=prettier-plugin-solidity"]
exclude: |
(?x)(
^contracts/openzeppelin/.*|
wasm_exec.js$
)
types_or:
[
"yaml",
"markdown",
"solidity",
"makefile",
"gitignore",
"toml",
"json",
"javascript",
"proto",
]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v8.56.0"
hooks:
- id: eslint
- repo: https://github.com/shutter-network/pre-commit-go-hooks
rev: "53239641ec106cda9a7acf9150c98be8d5ffa1ec"
hooks:
- id: shfmt
args: ["-i", "4"]
- id: go-mod-tidy
args: ["./rolling-shutter"]
- id: gci
args:
[
"--custom-order",
"-sStandard",
"-sDefault",
"-sPrefix(github.com/shutter-network/shutter)",
"-sPrefix(github.com/shutter-network/rolling-shutter)",
]
exclude: |
(?x)(
^.*\.gen\.go$|
^rolling-shutter/.*\.pb\.go$|
^rolling-shutter/shcryptowasm/.*_wasm\.go$
)
- id: gofumpt
exclude: |
(?x)(
^.*\.gen\.go$|
^rolling-shutter/.*\.pb\.go$|
^rolling-shutter/shcryptowasm/.*_wasm\.go$
)