This project provides a starter structure and tooling for Python apps, aiming for a consistent and modern dev experience.
Read the full project documentation.
- UV package manager, see Installing uv
git clone https://github.com/PierreLapolla/python_template.git
cd python_template uv sync
uv run pre-commit installTo run the project locally, run the following command:
uv run appBuild the image:
docker build -t python-template .Run the container:
docker run --rm python-template uv run pytest uvx ruff check . --fix uvx ruff format .Run all hooks manually:
uv run pre-commit run --all-filesPreview the documentation locally with uv run zensical serve. The
documentation site is
automatically deployed to GitHub Pages when changes are pushed to main or
master.
This project is licensed under the MIT LICENSE