-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
607f330
commit 06a3cb6
Showing
3 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Development | ||
|
||
To get started with working on the codebase, use the following steps prepare your local environment: | ||
|
||
```bash | ||
# clone the github repo and navigate into the folder | ||
git clone https://github.com/ApeWorX/evmchains.git | ||
cd evmchains | ||
|
||
# create and load a virtual environment | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
|
||
# install evmchains into the virtual environment | ||
python setup.py install | ||
|
||
# install the developer dependencies (-e is interactive mode) | ||
pip install -e .'[dev]' | ||
``` | ||
|
||
## Pre-Commit Hooks | ||
|
||
We use [`pre-commit`](https://pre-commit.com/) hooks to simplify linting and ensure consistent formatting among contributors. | ||
Use of `pre-commit` is not a requirement, but is highly recommended. | ||
|
||
Install `pre-commit` locally from the root folder: | ||
|
||
```bash | ||
pip install pre-commit | ||
pre-commit install | ||
``` | ||
|
||
Committing will now automatically run the local hooks and ensure that your commit passes all lint checks. | ||
|
||
## Pull Requests | ||
|
||
Pull requests are welcomed! Please adhere to the following: | ||
|
||
- Ensure your pull request passes our linting checks | ||
- Include test cases for any new functionality | ||
- Include any relevant documentation updates | ||
|
||
It's a good idea to make pull requests early on. | ||
A pull request represents the start of a discussion, and doesn't necessarily need to be the final, finished submission. | ||
|
||
If you are opening a work-in-progress pull request to verify that it passes CI tests, please consider | ||
[marking it as a draft](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#draft-pull-requests). | ||
|
||
Join the ApeWorX [Discord](https://discord.gg/apeworx) if you have any questions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters