Here you find all the important development information about the backend service.
Development:
- Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh - Install python version 3.13:
uv python install 3.13
- Run the backend:
uv run fastapi dev
The backend creates missing tables automatically on startup.
Use the following command to reformat the files:
uv run ruff formatUse the following command to show the lint results:
uv run ruff checkUse the following command to fix fixable mistakes:
uv run ruff check --fixHere is a link to a fastapi tutorial link Here is a link to the pytest documentation link
Use the following command to run the tests:
uv run pytestThe test coverage is generated using the pytest-cov plugin. To generate a coverage report, run the following command: The --cov-report=html option generates an HTML report. You can omit this option if you only want the terminal output.
uv run pytest --cov=app --cov-report=htmlWe need a coverage of at least 95% to be able to merge the PR. You can check the coverage with the following command:
uv run coverage report --fail-under=95