rafsaf / minimal-fastapi-postgres-template

minimal-fastapi-postgres-template based on official template but rewritten
https://minimal-fastapi-postgres-template.rafsaf.pl
MIT License
456 stars 60 forks source link

Fixed Ruff linter defaulting to python3.8 #37

Closed rosstitmarsh closed 10 months ago

rosstitmarsh commented 10 months ago

Ruff currently defaults to linting code as if it was Python 3.8, hence the tomllib import being moved in commit 7edb31c.

It can be specified with requires-python = ">= 3.12" in the [project] section of pyproject.toml, but since you are not using that section I used the Ruff specific option.