Skip to content

Commit

Permalink
ci: add pre-commit step to remove output and widget state from notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Jul 30, 2024
1 parent 9b4c91f commit 85e6eae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"trailing-whitespaces",
"ruff format",
"ruff check --fix"
]
],
"*ipynb":
"python3 -m jupyter nbconvert --clear-output --ClearMetadataPreprocessor.enabled=True --ClearMetadataPreprocessor.preserve_cell_metadata_mask='[(\"nbsphinx\")]' --inplace"
}
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "BSD-3-Clause"
requires-python = ">=3.8"

[project.optional-dependencies]
dev = ["pytest", "watchfiles", "jupyterlab", "ruff"]
dev = ["pytest", "watchfiles", "jupyterlab", "ruff", "nbconvert"]
recommended = ["mocpy", "regions", "astroquery"]
notebooks = ["requests"]
docs = ["autoapi",
Expand Down

0 comments on commit 85e6eae

Please sign in to comment.