This is a demo project to show how modern Python project may look like.
Install dependencies by automatically creating a virtual environment:
uv syncSetup pre-commit hooks:
uv run pre-commit installRun tests:
uv run pytestWhile doing commits, you might turn the virtual environment on, so pre-commit hooks can run:
source .venv/bin/activateLocal Docker image build
docker build -t hello-python:latest .Local Docker container run
docker run --rm hello-python:latestOutput should be:
Hello from hello-python!- Fork it
- Create your feature branch (
git switch -c my-new-feature) - Create a Pull Request