There are 2 sets of requirements.txt:
- requirements.txt
- requirements_dev.txt - superset of 1. which additionally contains libraries for development (tests and linters)
Installing;
pip install -r {requirements_file}
# or using pip-tools
pip-sync {requirements_file}
Ruff rules are defined in pyproject.toml
ruff check
In project mypy is used. Mypy rules are defined in pyproject.toml
mypy app
fastapi dev app/main.py
docker build . --tag "{image_name}"
docker run -p 8000:8000 {image_name}