See Hatch docs for a general walkthrough.
-
Install hatch globally with
pipxpipx install hatch hatch --version
-
(Optional) Create hatch environments. You can skip this step since environments are automatically created when you run hatch commands in general
hatch env create
-
Spawn a shell in the default hatch environment
hatch shell
or spawn a shell in a specific environment, e.g.
devfor local developmenthatch shell dev
Use
exitto exit the shell environment.
TBD
See the scripts in pyproject.toml to see the configured commands available to hatch run <env>:<command>.
To run a live server:
hatch run docs:serveTo build html:
hatch run docs:buildTo run all tests on all python versions use:
hatch run test:runTo run the tests on a single python version use:
hatch run test.py3.14:runTo open a shell with the test environment for python 3.14, run
hatch shell test.py3.14We use pre-commit to automatically apply linting and code style checks when a git commit is made. See the configuration in the .pre-commit-config.yaml file.
In the dev shell, you can install the hooks and run with
pre-commit installand optionally, you can manually run this against all files with
pre-commit run --all-files