diff options
author | Ross Barnowski <rossbar@berkeley.edu> | 2023-04-03 10:22:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 13:22:09 -0400 |
commit | 7366c9f5352352e562d5081cdaff042a15a73f72 (patch) | |
tree | ce9f995a45a09a84cc321d3e1c47b4e8cbeaba69 | |
parent | f26a1705f57c83838a966cc847fc52f78ff7314c (diff) | |
download | networkx-7366c9f5352352e562d5081cdaff042a15a73f72.tar.gz |
Minor docs/test maintenance (#6614)
* doc: fix docstring heading, eliminate sphinx error.
* doc: change extension of included file to prevent duplicate labels.
* tst: add warnings filter for deprecated forest_str.
-rw-r--r-- | doc/developer/about_us.rst | 2 | ||||
-rw-r--r-- | doc/developer/teams.inc (renamed from doc/developer/team.rst) | 0 | ||||
-rw-r--r-- | networkx/algorithms/boundary.py | 4 | ||||
-rw-r--r-- | networkx/conftest.py | 3 |
4 files changed, 6 insertions, 3 deletions
diff --git a/doc/developer/about_us.rst b/doc/developer/about_us.rst index 34c203f2..bb0fe5c5 100644 --- a/doc/developer/about_us.rst +++ b/doc/developer/about_us.rst @@ -6,7 +6,7 @@ and has been developed with the help of many others. Thanks to everyone who has improved NetworkX by contributing code, bug reports (and fixes), documentation, and input on design, features, and the future of NetworkX. -.. include:: team.rst +.. include:: teams.inc Contributors ------------ diff --git a/doc/developer/team.rst b/doc/developer/teams.inc index 33bc0b1e..33bc0b1e 100644 --- a/doc/developer/team.rst +++ b/doc/developer/teams.inc diff --git a/networkx/algorithms/boundary.py b/networkx/algorithms/boundary.py index 722d8521..4e98d438 100644 --- a/networkx/algorithms/boundary.py +++ b/networkx/algorithms/boundary.py @@ -60,7 +60,7 @@ def edge_boundary(G, nbunch1, nbunch2=None, data=False, keys=False, default=None with keys and/or data, as in :meth:`MultiGraph.edges`. Examples - ------- + -------- >>> G = nx.wheel_graph(6) When nbunch2=None: @@ -136,7 +136,7 @@ def node_boundary(G, nbunch1, nbunch2=None): The node boundary of `nbunch1` with respect to `nbunch2`. Examples - ------- + -------- >>> G = nx.wheel_graph(6) When nbunch2=None: diff --git a/networkx/conftest.py b/networkx/conftest.py index d26a1935..8da660b2 100644 --- a/networkx/conftest.py +++ b/networkx/conftest.py @@ -78,6 +78,9 @@ def set_warnings(): category=DeprecationWarning, message="shortest_path for all_pairs", ) + warnings.filterwarnings( + "ignore", category=DeprecationWarning, message="\nforest_str is deprecated" + ) @pytest.fixture(autouse=True) |