igorbenav / FastAPI-boilerplate

An extendable async API using FastAPI, Pydantic V2, SQLAlchemy 2.0, PostgreSQL and Redis.
MIT License
589 stars 69 forks source link

Add ruff linter #83

Closed luca-medeiros closed 9 months ago

luca-medeiros commented 9 months ago

Added ruff linter to pyproject with some basic configs after seeing it on the roadmap. I think we could find the best settings for this project later on.

Also ran ruff format on the current project with auto-fix on.

luca-medeiros commented 9 months ago

I could add a pre-commit config as well

igorbenav commented 9 months ago

Nice one, @luca-medeiros! I'll check if this extra import is necessary in alembic migrations, but I don't think it is since I'm importing Base. No Idea why I created it in the first place

igorbenav commented 9 months ago

@luca-medeiros if you'd like to add the pre-commit config, I'd appreciate it a lot