Contributing Guide
Spiel is open to contributions!
Development Environment
Spiel uses:
poetryto manage development dependencies.pre-committo run various linters and formatters.pytestfor testing andmypyfor static type-checking.mkdocswith the Material theme for documentation.
Initial Setup
To set up a local development environment after cloning the repository:
- Install
poetry. - Run
poetry shellto create a virtual environment forspieland spawn a new shell session with that virtual environment activated. In the future you'll runpoetry shellagain to activate the virtual environment. - Run
poetry installto install Spiel's dependencies. - Run
pre-commit installto configurepre-commit's integration withgit. Do not commit withoutpre-commitinstalled!
Running Tests and Type-Checking
Run pytest to run tests.
Run mypy to check types.
Building the Docs Locally
To build the docs and start a local web server to view the results of your edits with live reloading, run
from the repository root.