Is your feature request related to a problem? Please describe.
I am running pre-commit as a post-write hook. However, when using command.revision(), the working directory may be outside of my repository, in which case my .pre-commit-config.yaml is not found.
Describe the solution you'd like
In my alembic.ini I want to add the following line under the [post_write_hooks] section
pre-commit.cwd = %(here)s
in order to have a reproducible cwd.
PR incoming...
Is your feature request related to a problem? Please describe.
I am running pre-commit as a post-write hook. However, when using
command.revision(), the working directory may be outside of my repository, in which case my.pre-commit-config.yamlis not found.Describe the solution you'd like
In my
alembic.iniI want to add the following line under the[post_write_hooks]sectionpre-commit.cwd = %(here)sin order to have a reproducible cwd.
PR incoming...