Contributing
Contributions are welcome.
The first step to contribute is to install the package in editable mode. For any changes, check that the tests still pass as detailed below.
Local development¶
- Clone the repository.
- Install uv.
-
Create a venv and install signalbot with its dependencies in it (including extra dependencies to be able to run the examples)
uv sync --groups examples- You can install signalbot as an editable depedency in another repository (e.g. your own bot repository) like so
uv add --editable ../signalbot
- You can install signalbot as an editable depedency in another repository (e.g. your own bot repository) like so
-
Install the prek hook for linting and formatting
uv run prek install
Unit Testing¶
The tests can be executed with
uv run pytest
Serving the documentation locally¶
- Install the docs dependencies
uv sync --group docs - Run the mkdocs serve command
uv run mkdocs serve --livereload --watch ./