Skip to content

Commit

Permalink
✨ Add run_notebooks command function
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Sep 7, 2024
1 parent 4d16027 commit 9e702d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions laminci/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
)
from ._docs_artifacts import upload_docs_artifact
from ._env import get_package_name, get_schema_handle
from ._run_notebooks import run_notebooks
4 changes: 4 additions & 0 deletions laminci/_run_notebooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def run_notebooks(file_or_folder):
import nbproject_test

nbproject_test.execute_notebooks(file_or_folder, write=True)
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ doc-changes = [
"email-validator",
"Jinja2",
]
nb-test = [
"pytest",
"pytest-cov",
run-notebooks = [
"nbproject_test",
]
dev = [
Expand Down

0 comments on commit 9e702d7

Please sign in to comment.