Closed krlng closed 1 year ago
Can you confirm what your setup is? Are you using the pre-commit
framework with a .pre-commit-config.yaml
as documented in the README? A reproducible test case would also be super useful.
Note that the pre-commit
framework stashes unstaged changes while the hook is running.
I think this is similar to #121. See my comment with the log of a test which produced the exact result I expected, using pre-commit 2.12.0.
@krlng is this still an issue for you?
Hi :) I have no idea, not using it anymore. Will close it.
Using nb-stripout (v 0.3.8) as a git-hook will strip-out content of unstaged, not committed notebooks as soon as there is at least one notebook which gets committed. In my opinion, files which are not staged should not get touched or this should be documented otherwise.