Skip to content

Allows more complex suffixes in notebooks#328

Merged
chrisjsewell merged 4 commits into
executablebooks:masterfrom
juhuebner:master
May 14, 2021
Merged

Allows more complex suffixes in notebooks#328
chrisjsewell merged 4 commits into
executablebooks:masterfrom
juhuebner:master

Conversation

@juhuebner
Copy link
Copy Markdown
Contributor

fixes #327

Allows more complex suffixes in env.nb_allowed_exec_suffixes

@welcome
Copy link
Copy Markdown

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

Comment thread myst_nb/execution.py Outdated

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

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

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