google-deepmind / google-deepmind/optax
Add pre-commit hook that strips notebooks of metadata
Open
dependencies
type:feature
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 369
- Avg merge
- 10h 15m
- Merged PRs (30d)
- 7
Description
Modifying and running a notebook changes its metadata. This makes diffs larger and harder to read. Furthermore, it's not necessary to store such metadata in the codebase in the first place.
Therefore, I suggest adding a pre-commit hook that automatically strips all notebooks of metadata.
A potential candidate is [nbstripout](https://github.com/kynan/nbstripout).
Contributor guide
Assessment
This issue has not been assessed yet.