This file tells automation agents how to build, test, lint and deploy this project.
Set up virtualenv initially like so:
pyenv install
python -m pip install uv
uv syncInstall or update main dependencies like so:
uv add some_packageInstall or a dev dependency like so:
uv add --dev some_packageRun the project file like so:
python -m example_projectYou can check the project for errors like so:
# Run the linter and autofix warnings/errors.
uv run ruff check --fix
# Run the type checker to spot typing issues.
uv run pyright
# Run unit and integration tests.
uv run pytest- base: installs
uvand sets up virtualenv - dev: adds dev dependencies for linting and IDE support
- prod: A distroless image for deployment to production
Build manually:
docker build -t example_project:base --target=base .
docker build -t example_project:dev --target=dev .
docker build -t example_project:prod --target=prod --build-arg RELEASE_VERSION=0.1.0 .- Code lives in
src/ - Do not install with pip directly; use
uv - Always rebuild if Dockerfile or deps change
- Do not modify lock files without using
uv sync