Skip to content

FastAPI dockerized project template with Qodana integration.

Notifications You must be signed in to change notification settings

UpswingOps/fastapi-qodana-docker

Repository files navigation

Qodana

FastAPI Qodana Docker app

FastAPI docs: https://fastapi.tiangolo.com/

Qodana report https://qodana.cloud/projects/3oJwO/reports/Zl2gx

installation for setup.py

python -m pip install --upgrade pip
pip install .[dev]

installation for requirements.txt

python -m pip install -r requirements-dev.txt
python -m pip install -r requirements.txt

lint

pylint app

test

pytest tests/test.py

run server

uvicorn app.main:app --reload

Example request: http://127.0.0.1:8000/items/5?q=somequery

Swagger UI: http://127.0.0.1:8000/docs