File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ fail_fast : true
2
+ repos :
3
+ - repo : https://github.com/pre-commit/pre-commit-hooks
4
+ rev : v6.0.0
5
+ hooks :
6
+ - id : trailing-whitespace
7
+ - id : end-of-file-fixer
8
+ - id : check-json
9
+ - id : check-yaml
10
+ - id : check-toml
11
+ - id : check-symlinks
12
+ - id : fix-byte-order-marker
13
+ - id : check-added-large-files
14
+ - repo : https://github.com/dnephin/pre-commit-golang
15
+ rev : v0.5.1
16
+ hooks :
17
+ - id : go-fmt
18
+ - id : go-vet
19
+ - id : go-imports
20
+ - id : go-mod-tidy
21
+ - id : no-go-testing
22
+ - id : go-unit-tests
23
+ - repo : https://github.com/golangci/golangci-lint
24
+ rev : v2.4.0
25
+ hooks :
26
+ - id : golangci-lint
Original file line number Diff line number Diff line change 2
2
3
3
- [ JSONRPC API] ( ./xdc/jsonrpc.md )
4
4
- [ Validator Contract] ( ./xdc/validator.md )
5
+ - [ Setup development environment] ( ./xdc/development.md )
Original file line number Diff line number Diff line change
1
+ # How to setup development environment
2
+
3
+ ## pre-commit
4
+
5
+ ``` bash
6
+ # Install pre-commit
7
+ pipx install pre-commit
8
+
9
+ # Install git hook
10
+ pre-commit install
11
+
12
+ # Uninstall git hook
13
+ pre-commit uninstall
14
+ ```
You can’t perform that action at this time.
0 commit comments