mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 15:10:54 +00:00
Add pre commit (#103)
* add pre-commit * run pre-commit * skip lint on README.md as it breaks template filling
This commit is contained in:
@ -24,9 +24,13 @@ for information on how we do:
|
||||
|
||||
- Testing
|
||||
- Pull Requests
|
||||
- Code Style
|
||||
- Documentation
|
||||
|
||||
We use [pre-commit](https://pre-commit.com/) to maintain consistent code style. Once
|
||||
installed, it will run automatically with every commit. You can also run it manually
|
||||
with `make lint`. If you need to make a commit that skips the `pre-commit` checks, you
|
||||
can do so with `git commit --no-verify`.
|
||||
|
||||
### Development Environment Setup
|
||||
|
||||
You can set up your dev environment with:
|
||||
@ -37,6 +41,7 @@ cd <REPO_NAME>
|
||||
virtualenv -p python3 venv
|
||||
. venv/bin/activate
|
||||
python -m pip install -e ".[dev]"
|
||||
pre-commit install
|
||||
```
|
||||
|
||||
### Release setup
|
||||
|
||||
Reference in New Issue
Block a user