You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There is a small output bug when running alembic revision ... with a post-write hook. The name of the hook is not correctly displayed:
$ alembic revision -m 'my new revision'
Generating myrepo/migrations/versions/202306151538_my_new_revision.py_ ... done
Running post write hook {name!r} ... # Display bug HERE
reformatted myrepo/migrations/versions/202306151538_my_new_revision.py
All done! ✨ 🍰 ✨
1 file reformatted.
done
Happy to fix, if approved!
Expected behavior
This output
$ alembic revision -m 'my new revision'
Generating myrepo/migrations/versions/202306151538_my_new_revision.py_ ... done
Running post write hook black ... # Display bug HERE
reformatted myrepo/migrations/versions/202306151538_my_new_revision.py
All done! ✨ 🍰 ✨
1 file reformatted.
done
Describe the bug
There is a small output bug when running
alembic revision ...
with a post-write hook. The name of the hook is not correctly displayed:Happy to fix, if approved!
Expected behavior
This output
when
black
hook is configured.To Reproduce
Uncomment default
post_write_hooks
parameters inalembic.ini
Then run revision command
alembic revision -m 'my new revision'
Error
Versions.
Additional context
Bug seems to be here:
alembic/alembic/script/write_hooks.py
Line 88 in 79738c9
Have a nice day!
The text was updated successfully, but these errors were encountered: