igorbenav / FastAPI-boilerplate

An extendable async API using FastAPI, Pydantic V2, SQLAlchemy 2.0, PostgreSQL and Redis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pre Commit

mithun2003 opened this issue · comments

I create a pre commit file which will check this ruff, format of the staged code if format require it format the file and stop that commit and also check for prints if a print occur in the staged code it will throw an error and stop the commit.

this is the code for that pre commit
Screenshot 2024-01-01 100617

but for run this the system have pre-commit and flake8-print installed.

pip install pre-commit flake8-print