Refer these for setting up precommit hooks - https://github.com/darth-dodo/hackernews-backend/pull/2/files - https://github.com/leosussan/fastapi-gino-arq-uvicorn/blob/master/.pre-commit-config.yaml