Skip to content

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

@ndim

Description

@ndim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions