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.