Skip to content

Update pre-commit hook srstevenson/nb-clean to v6 - #540

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/srstevenson-nb-clean-6.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/srstevenson-nb-clean-6.x

Conversation

@renovate

@renovate renovate Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
srstevenson/nb-clean repository major 4.0.1 → v6.0.0

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

srstevenson/nb-clean

v6.0.0

Compare Source

Migrating from nb-clean 5

check and clean now skip hidden files and directories, including .ipynb_checkpoints, and Git-ignored paths when searching directories. Previously, these notebooks were included.

To retain the version 5 directory search behaviour, add both --no-ignore and --hidden:

nb-clean check --no-ignore --hidden notebooks/
nb-clean clean --no-ignore --hidden notebooks/

The flags are independent: --no-ignore disables Git ignore rules, while --hidden includes hidden files and directories. Explicitly supplied files are still processed regardless of either restriction. Stdin, Git filters, and the standard pre-commit hook need no changes.

What's Changed

New Contributors

Full Changelog: srstevenson/nb-clean@v5.0.0...v6.0.0

v5.0.0

Compare Source

nb-clean was ported from Python to Rust in version 5. PyPI wheels install the native executable; the Python library API is removed. The installed command supports Git filters and pre-commit as before.

Use nb-clean --version instead of nb-clean version. To preserve selected metadata, replace --preserve-cell-metadata tags slideshow -- with --preserve-cell-metadata-field tags --preserve-cell-metadata-field slideshow. The bare -m option now accepts no field arguments and can appear before paths.

An execution count of zero is now reported as dirty. Transient metadata is also reported explicitly. Clean files are no longer rewritten just to normalise formatting. Unsupported notebook major versions are rejected.

What's Changed

Full Changelog: srstevenson/nb-clean@4.0.1...v5.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

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.

0 participants