Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.
- Fork the project
- Create a new branch
- Code, test, format, commit and push
- Open a pull request detailing your changes.
- Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
- You may need to rebase to avoid merge conflicts.
-
Clone your fork
-
Setup your virtual environment using
venv
python -m venv venv
- Activate your virtual environment
Platform | Shell | Command to activate venv |
---|---|---|
POSIX | bash/zsh | $ source venv/bin/activate |
fish | $ source venv/bin/activate.fish | |
csh/tcsh | $ source venv/bin/activate.csh | |
PowerShell Core | C:> venv\Scripts\activate.bat | |
Windows | cmd.exe | $ source venv/bin/activate |
PowerShell | PS C:> venv\Scripts\Activate.ps1 |
- Install the dev dependencies:
pip install -e .[dev]
Run all tests:
pytest
Note
Make sure tests cover 100%.
pytest --cov
pre-commit run