Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.29 KB

CONTRIBUTING.md

File metadata and controls

49 lines (37 loc) · 1.29 KB

Contributing to Pisco

Thank you for considering contributing to Pisco! The following section describes how to set up and use a development environment.

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

Setup

Please follow these steps to set up your development environment:

  1. Install Poetry if you have not already done so.
  2. Clone the Pisco repository and cd into it.
  3. Install Pisco and its (development) dependencies by running poetry install.
  4. 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
    

Usage

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