Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit hookup does not apply to rebase edits #24

Open
ndim opened this issue Sep 13, 2020 · 0 comments
Open

pre-commit hookup does not apply to rebase edits #24

ndim opened this issue Sep 13, 2020 · 0 comments

Comments

@ndim
Copy link
Contributor

ndim commented Sep 13, 2020

During a lot of interactive rebasing (git rebase -i release), I ran into several instances of black being in disagreement with the git tree about the formatting of some *.py file.

I had to fix these manually with

git rebase -i --exec "black soundcraft && flake8 soundcraft" cleanups-before-session-dbus session-dbus

I am wondering whether it would be possible to hook the existing pre-commit checks into git such that the checks also run after edits made during (interactive) rebases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant