Thank you for considering contributing to Pisco! The following section describes how to set up and use a development environment.
Pisco uses the following developer tools:
- mypy for static type checking
- Poetry for dependency management and packaging
- pre-commit for managing pre-commit and pre-push hooks
- pytest for unit testing
Please follow these steps to set up your development environment:
- Install Poetry if you have not already done so.
- Clone the Pisco repository and
cd
into it. - Install Pisco and its (development) dependencies by running
poetry install
. - Set up the hooks by executing
poetry run pre-commit install
. The output should look something like this:pre-commit installed at .git/hooks/pre-commit pre-commit installed at .git/hooks/pre-push
Start Pisco in your new development environment:
poetry run pisco Küche # Replace 'Küche' with the name of your Sonos device.
Run unit tests:
poetry run pytest
Run static type checks:
poetry run mypy .
Run pre-commit hooks:
poetry run pre-commit run --all-files