Skip to content

ci: exclude tutorial notebooks from detect-secrets#1

Merged
tlancaster6 merged 4 commits into
mainfrom
dev
Apr 20, 2026
Merged

ci: exclude tutorial notebooks from detect-secrets#1
tlancaster6 merged 4 commits into
mainfrom
dev

Conversation

@tlancaster6

Copy link
Copy Markdown
Collaborator

Summary

  • Excludes docs/tutorials/*.ipynb from the detect-secrets pre-commit hook.
  • Tutorial notebooks ship with rendered matplotlib PNG outputs (for Colab/Sphinx). Those base64 blobs trigger Base64HighEntropyString false positives and change on every re-run, making baseline maintenance impractical.
  • Unblocks CI on the next release push (the v1.5.0 release commit's test job failed for this reason).

Test plan

  • pre-commit run detect-secrets --all-files passes locally
  • CI test.yml passes on the PR

Matplotlib PNG outputs embedded in tutorial notebooks trigger
Base64HighEntropyString false positives. Outputs change on every
re-run, making baseline maintenance impractical. Tutorials are
intentionally shipped with rendered outputs for Colab/Sphinx.
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

The docs workflow was installing .[dev] but not .[docs], so
myst-parser, furo, nbsphinx, etc. were missing at build time.
Also drops the manual sphinx/sphinx-rtd-theme install — sphinx is
already in the [docs] extra and sphinx-rtd-theme was unused (theme is furo).
nbsphinx converts .ipynb → HTML via pandoc, which is a system
binary not a pip package. ReadTheDocs had this fix already
(9e1b285) but the GH Actions docs workflow needed it too.
Notebook code cells are tagged with language 'ipython3', which
requires the IPython package to register the matching Pygments
lexer. Without it, sphinx-build -W fails on the highlighting
warning.
@tlancaster6 tlancaster6 merged commit 7b94bba into main Apr 20, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants