git clone https://github.com/<your-username>/python-backend.git
cd python-backend
python -m venv .venv
source .venv/bin/activate # Linux / macOS
# .venv\Scripts\activate # Windows
pip install -r requirements-dev.txt
cp .env.example .env
uvicorn app.main:app --reload
pytest -v
ruff check .
ruff format --check .
mypy app tests- Branch from
main:feat/...,fix/...,docs/... - Use Conventional Commits:
feat: add /ready endpointfix: handle missing env var gracefullydocs: clarify setup stepsrefactor: split health endpoint logictest: add tests for /api/v1/healthchore: bump ruff to 0.8.5
- Open a PR against
main. - CI must pass (ruff + pytest on Python 3.11 and 3.12).
- Squash-and-merge once approved.
- Python 3.12+ syntax (PEP 695 type hints)
- Line length: 100 chars (
ruff.toml) - All functions and modules have docstrings
- Tests live in
tests/namedtest_*.py
Be kind. Be patient. Be helpful.