Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notebook cleanup to pre-commit hooks. #3070

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stefmolin
Copy link
Contributor

Addresses #3041

Adds nbstripout pre-commit hook to clear out the following from Jupyter Notebooks being committed:

  • output
  • kernelspec name and display name
  • Python version

As stated in the issue, the part that clears out the metadata may be a bit of an annoyance to the contribution flow if you don't make a habit of clearing out the metadata.

@codecov
Copy link

codecov bot commented Oct 10, 2022

Codecov Report

Merging #3070 (b6f8ece) into master (54cab15) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3070   +/-   ##
=======================================
  Coverage   98.38%   98.38%           
=======================================
  Files          74       74           
  Lines       23648    23648           
=======================================
  Hits        23267    23267           
  Misses        381      381           

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants