Alembic migrations should be post formatted by black
Black is always complaining about alembic migrations at commit time. To avoid this boring behavior, Alembic allows revisions to be post-processed. See documentation : https://alembic.sqlalchemy.org/en/latest/autogenerate.html#applying-post-processing-and-python-code-formatters-to-generated-revisions
issue