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

FEAT: remove tags from notebook cell if empty #350

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Jul 8, 2024

Closes #349


Added the following hook:

repos:
  - repo: https://github.com/ComPWA/policy
    rev: ""
    hooks:
      - id: remove-empty-tags

This removes the tags cell metadata field from Jupyter notebooks if it is empty, e.g.:

"metadata": {
 "tags": []
}
"metadata": {}

Also removing slideshow from the configure cell from set-nb-cells in order to address ComPWA/qrules#277.

@redeboer redeboer added the ✨ Feature New feature added to the package label Jul 8, 2024
@redeboer redeboer self-assigned this Jul 8, 2024
@redeboer redeboer marked this pull request as ready for review July 8, 2024 14:57
@redeboer redeboer added this to the 0.3.10 milestone Jul 8, 2024
@redeboer redeboer merged commit a64df28 into main Jul 8, 2024
22 checks passed
@redeboer redeboer deleted the remove-empty-tags branch July 8, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New feature added to the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create hook for removing empty tag lists in notebook cell metadata
1 participant