]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Implement new `exec` write-hook runner that will execute arbitrary binaries
authorMihail Milushev <mihail@conversocial.com>
Tue, 22 Aug 2023 18:07:30 +0000 (14:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Aug 2023 15:03:17 +0000 (11:03 -0400)
commit70463e9cae6cf32fb3b0e881a6213fcc690fce12
tree08182d65a52375957307a71c7efe1e8f4160d51f
parentbf6f14907b72db76ac23635789754489e3208655
Implement new `exec` write-hook runner that will execute arbitrary binaries

Added new feature to the "code formatter" function which allows standalone
executable tools to be run against code, without going through the Python
interpreter.  Known as the ``exec`` runner, it complements the existing
``console_scripts`` runner by allowing non-Python tools such as ``ruff`` to
be used.   Pull request courtesy Mihail Milushev.

Fixes: #1275
Closes: #1276
Pull-request: https://github.com/sqlalchemy/alembic/pull/1276
Pull-request-sha: 24e576b9d8aa0d3931f2b0c0c15bb370577d7485

Change-Id: Ie28f2b7faf2fb8493c8e704f51e3e3524982e346
alembic/__init__.py
alembic/script/write_hooks.py
alembic/templates/async/alembic.ini.mako
alembic/templates/generic/alembic.ini.mako
alembic/templates/multidb/alembic.ini.mako
docs/build/autogenerate.rst
docs/build/tutorial.rst
docs/build/unreleased/1275.rst [new file with mode: 0644]
tests/test_post_write.py