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

Allows more complex suffixes in notebooks #328

Merged
merged 4 commits into from
May 14, 2021

Conversation

juhuebner
Copy link
Contributor

fixes #327

Allows more complex suffixes in env.nb_allowed_exec_suffixes

@welcome
Copy link

welcome bot commented May 12, 2021

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.

Welcome to the EBP community! 🎉

Copy link
Member

@chrisjsewell chrisjsewell left a 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

@@ -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",)
Copy link
Member

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

Copy link
Contributor Author

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
Copy link

codecov bot commented May 12, 2021

Codecov Report

Merging #328 (d473665) into master (ce5f69c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #328   +/-   ##
=======================================
  Coverage   87.42%   87.43%           
=======================================
  Files          12       12           
  Lines        1336     1337    +1     
=======================================
+ Hits         1168     1169    +1     
  Misses        168      168           
Flag Coverage Δ
pytests 87.43% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
myst_nb/execution.py 82.51% <100.00%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce5f69c...d473665. Read the comment docs.

Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!

@chrisjsewell chrisjsewell merged commit e39132e into executablebooks:master May 14, 2021
@welcome
Copy link

welcome bot commented May 14, 2021

Congrats on your first merged pull request in this project! 🎉
congrats

Thank you for contributing, we are very proud of you! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing file extension metadata in notebooks
2 participants