-
Notifications
You must be signed in to change notification settings - Fork 84
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
Allows more complex suffixes in notebooks #328
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! One minor thing to change
myst_nb/execution.py
Outdated
@@ -323,7 +327,9 @@ def _converter(path): | |||
return result | |||
|
|||
|
|||
def nb_has_all_output(source_path: str, nb_extensions: List[str] = (".ipynb",)) -> bool: | |||
def nb_has_all_output( | |||
source_path: str, nb_extensions: Tuple[str] = (".ipynb",) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tuple[str]
means a tuple with only one element that is a string. For a variable number use I think Tuple[str,...]
or maybe just Iterable[str]
would be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Changed it to Iterable[str]
in f17d12c
Codecov Report
@@ Coverage Diff @@
## master #328 +/- ##
=======================================
Coverage 87.42% 87.43%
=======================================
Files 12 12
Lines 1336 1337 +1
=======================================
+ Hits 1168 1169 +1
Misses 168 168
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers!
fixes #327
Allows more complex suffixes in
env.nb_allowed_exec_suffixes