Core components of erdpy.
- GitHub:
git+https://git@github.com/ElrondNetwork/mx-sdk-erdpy-core.git@v{Version}#egg=erdpy_core
- PyPi
Create a virtual environment and install the dependencies:
python3 -m venv ./.venv
source ./.venv/bin/activate
pip install -r ./requirements.txt --upgrade
Install development dependencies, as well:
pip install -r ./requirements-dev.txt --upgrade
Above, requirements.txt
should mirror the dependencies section of pyproject.toml
.
If using VSCode, restart it or follow these steps:
Ctrl + Shift + P
- Select Interpreter
- Choose
./.venv/bin/python
.
Run the tests as follows:
pytest .
First, install pyright
as follows:
npm install --global pyright
Run pyright
:
pyright
Run flake8
:
flake8 erdpy_core