Development from Source
If you want to contribute to Workstate or build it from scratch, follow this guide.
Building Locally
Section titled “Building Locally”Workstate uses Hatch as its build system and environment manager.
-
Clone the Repo:
Terminal window git clone https://github.com/mtpontes/workstate.gitcd workstate -
Install via Hatch:
Terminal window hatch run build-localThis command will build the wheel and install it in your environment using
pip install -e ..
Documentation Development
Section titled “Documentation Development”The documentation site is built with Astro/Starlight.
- Dependencies: You need Node.js v22.
- Dev Server:
This will start the local server at
Terminal window hatch run docs-servehttp://localhost:4321/workstate/.
Coding Standards
Section titled “Coding Standards”- Language: Core logic is in Python.
- Style: We follow PEP8 conventions.
- Testing: Run tests using
hatch run test:unit.