This document contains documentation intended for developers of voronoi_generator.
To work on the voronoi_generator as a developer, you'll need to configure your local development environment. You can do this by simply running:
make project-setup
This will install Python 3.10
using PyEnv, create a virtual environment using Poetry, and install the pre-commit hooks.
Note: The
project-setup
process will check whetherpre-commits
,pyenv
, andpoetry
are installed. If not, it will ask to install them on your behalf as they're required to use this template. The first time the project is set up, you should follow the instructions in First time setup.
A Makefile is just a usual text file to define a set of rules or instructions to run which can be run using the make
command. To see the available make commands:
make help
With the poetry shell active (see above), you can run all the tests using:
make test
Or specific tests:
python -m pytest tests/test_dummy.py