Ruff and mypy on an API Project

Ruff finds likely mistakes in an API's code and lays out every file the same way, and mypy reads the type hints that FastAPI, Pydantic and the data module already have to find values that can't be what a function expects, both set up once for the whole project in pyproject.toml.

By

Updated

Cheat sheet: Ruff and mypy on an API Project
Category
FastAPI
Level
Journeyman
Tags
Code Formatter, fastapi, Linter, mypy, pyproject.toml, python, Ruff, software-development, Type Checker