Repository navigation
Add pre-commit nbstripout for notebook cleanup - #45
Merged
Merged
Conversation
Strip outputs and execution counts on commit; document install in README and normalize existing notebooks (including tutorial.ipynb).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #45 +/- ##
=======================================
Coverage 74.96% 74.96%
=======================================
Files 17 17
Lines 1254 1254
Branches 185 185
=======================================
Hits 940 940
Misses 255 255
Partials 59 59
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.pre-commit-config.yamlwith nbstripout 0.8.2 so Jupyter outputs / execution counts are stripped before commit.pre-commit installin the README.examples/tutorial.ipynb).Test plan
pre-commit run nbstripout --all-files(second run clean)pip install pre-commit && pre-commit installthen commit a notebook with outputs and confirm they are stripped