Skip to content

A few more doctest skips for mpl/np dependencies. - #7403

Merged
dschult merged 1 commit into
networkx:mainfrom
rossbar:mpl-docdeps
Apr 11, 2024
Merged

dschult merged 1 commit into
networkx:mainfrom
rossbar:mpl-docdeps

Conversation

@rossbar

@rossbar rossbar commented Apr 10, 2024

Copy link
Copy Markdown
Contributor

Followup to #7388

Additional test-suite config to skip doctests when dependencies aren't installed. The main change is that the docstrings of the generators/classic.py graph creation functions now depend on matplotlib with the addition of the .. plot directive. IMO this is totally fine and straightforward to skip (see below).

The other two changes are:

  • nx_latex docstring depends on numpy
  • alphabetizing the needs_numpy list.

@jarrodmillman jarrodmillman left a comment

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.

Thanks!

@dschult dschult left a comment

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.

Looks good! Thanks!

@dschult
dschult merged commit 5cb302c into networkx:main Apr 11, 2024
@jarrodmillman jarrodmillman added this to the 3.4 milestone Apr 11, 2024
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants