mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
486d4cae73
commit
42da35b86c
3 changed files with 35 additions and 0 deletions
20
.pre-commit-config.yaml
Normal file
20
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
fail_fast: true
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v6.0.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-json
|
||||
- id: check-yaml
|
||||
- id: check-toml
|
||||
- id: check-symlinks
|
||||
- id: fix-byte-order-marker
|
||||
- id: check-added-large-files
|
||||
- repo: https://github.com/dnephin/pre-commit-golang
|
||||
rev: v0.5.1
|
||||
hooks:
|
||||
- id: go-fmt
|
||||
- id: go-vet
|
||||
- id: go-imports
|
||||
- id: go-mod-tidy
|
||||
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
- [JSONRPC API](./xdc/jsonrpc.md)
|
||||
- [Validator Contract](./xdc/validator.md)
|
||||
- [Development environment](develop.md)
|
||||
|
|
|
|||
14
docs/develop.md
Normal file
14
docs/develop.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# How to setup development environment
|
||||
|
||||
## pre-commit
|
||||
|
||||
```bash
|
||||
# Install pre-commit
|
||||
pipx install pre-commit
|
||||
|
||||
# Install git hook
|
||||
pre-commit install
|
||||
|
||||
# Uninstall git hook
|
||||
pre-commit uninstall
|
||||
```
|
||||
Loading…
Reference in a new issue