Suggesting changes to the code
Suggestions for improvements are very welcome. Use the GitHub issue tracker or submit a pull request.
Pull request
To set up an environment for developing and submitting a pull request:
Install pyenv
Install the python versions listed in .python_version with pyenv
- On Linux and macOS:
Install Poetry : Run :
curl -sSL https://install.python-poetry.org | python3 -On macOS: update PATH environment variable in your ~/.zshrc init file:
export PATH="/Users/username/.local/bin:$PATH"such that Zsh can find thepoetrycommand
- On Windows (PowerShell):
Install Poetry :
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -Update
PATHto include the installation folder, e.g.C:\Users\username\AppData\Roaming\Python\Scripts
- Then, from the root directory of this repository:
run
poetry installto install development dependencies into a virtual environmentrun
poetry shellto activate the virtual environmentrun
make testto run the test suiterun
pre-commit installto install the pre-commit hooksrun
make coverageto run unit tests and generate coverage reportrun
make toxto run the test suite with multiple Python versionsrun
make ruff-checkto check the code with ruffrun
make mypyto check the code with mypy