diff --git a/package.json b/package.json index 73da2309..858575cc 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/pyproject.toml b/pyproject.toml index 55b950b9..c6e4c88b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",