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

MAINT: update entry-points usage #2121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agoose77
Copy link
Collaborator

This PR updates our entry-points usage, noticed by @bollwyvl in bollwyvl/jupyter-book-feedstock@f572905

Co-authored-by: Nicholas Bollweg <nick.bollweg@gmail.com>
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (30afdb7) 91.30% compared to head (e001397) 91.43%.
Report is 6 commits behind head on master.

Files Patch % Lines
jupyter_book/cli/pluggable.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2121      +/-   ##
==========================================
+ Coverage   91.30%   91.43%   +0.13%     
==========================================
  Files           7        7              
  Lines         690      689       -1     
==========================================
  Hits          630      630              
+ Misses         60       59       -1     
Flag Coverage Δ
pytests 91.43% <40.00%> (+0.13%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.



def load_entry_point(group: str, name: str) -> Any:
eps = [ep for ep in metadata.entry_points().get(group, []) if ep.name == name]
eps = [ep for ep in entry_points(group=group) if ep.name == name]
Copy link

Choose a reason for hiding this comment

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

could also be entry_points().select(group=group, name=name)

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.

None yet

2 participants