Skip to content

⬆️🪝 Update pre-commit hook srstevenson/nb-clean to v6 - #616

Merged
denialhaag merged 2 commits into
mainfrom
renovate/srstevenson-nb-clean-6.x
Nov 15, 2026
Merged

denialhaag merged 2 commits into
mainfrom
renovate/srstevenson-nb-clean-6.x

Conversation

@renovate

@renovate renovate Bot commented Nov 14, 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
    • "every weekend"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, 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.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate Bot added dependencies Pull requests that update a dependency file pre-commit labels Nov 14, 2026
@denialhaag denialhaag self-assigned this Nov 15, 2026
Assisted-by: GPT-6.1 Sol via Codex
@denialhaag
denialhaag enabled auto-merge (squash) November 15, 2026 05:58
@denialhaag
denialhaag merged commit 6ca5988 into main Nov 15, 2026
10 checks passed
@denialhaag
denialhaag deleted the renovate/srstevenson-nb-clean-6.x branch November 15, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file pre-commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant