You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for this pre-commit hook, it looks really useful!
Unfortunately I haven't been able to get it working. If I run pre-commit run --all-files it does actually seem to execute (all of my .ipynb files get changed), but the task returns a "Failed" state without any explanation for the failure:
jupyter-notebook-cleanup.................................................Failed
- hook id: jupyter-notebook-cleanup
- files were modified by this hook
So even though the changes have been make the commit will not go through since a failed state has been returned.
The text was updated successfully, but these errors were encountered:
When a pre-commit hook makes any changes (regardless of whether it's this hook or any other), it will fail. However, after that initial run, you should be able to run pre-commit run --all-files again and the jupyter-notebook-cleanup hook should pass.
In short, the status Failed is an indication whether or not the hook made any changes. If it didn't make changes, it will pass.
Hey, thanks for this pre-commit hook, it looks really useful!
Unfortunately I haven't been able to get it working. If I run
pre-commit run --all-files
it does actually seem to execute (all of my .ipynb files get changed), but the task returns a "Failed" state without any explanation for the failure:So even though the changes have been make the commit will not go through since a failed state has been returned.
The text was updated successfully, but these errors were encountered: