diff --git a/examples/circos/edge_color.py b/examples/circos/edge_color.py index aad02648..6abb2db2 100644 --- a/examples/circos/edge_color.py +++ b/examples/circos/edge_color.py @@ -1,6 +1,7 @@ """ Shows different edge colors. Either categorial/ordinal or continuous """ + import matplotlib.pyplot as plt import networkx as nx from nxviz.plots import CircosPlot diff --git a/examples/circos/edge_width.py b/examples/circos/edge_width.py index 64b7228a..ed265509 100644 --- a/examples/circos/edge_width.py +++ b/examples/circos/edge_width.py @@ -1,6 +1,7 @@ """ Shows different edge widths on CircusPlot """ + import matplotlib.pyplot as plt import networkx as nx from nxviz.plots import CircosPlot diff --git a/nxviz/__init__.py b/nxviz/__init__.py index 979f8f92..69b1f632 100644 --- a/nxviz/__init__.py +++ b/nxviz/__init__.py @@ -1,4 +1,5 @@ """Top-level nxviz API.""" + from .api import ( arc, hive, diff --git a/nxviz/annotate.py b/nxviz/annotate.py index 9373460f..57c149c3 100644 --- a/nxviz/annotate.py +++ b/nxviz/annotate.py @@ -1,4 +1,5 @@ """Annotation submodule.""" + from functools import partial, update_wrapper from typing import Dict, Hashable diff --git a/nxviz/api.py b/nxviz/api.py index 08486044..acaa4c59 100644 --- a/nxviz/api.py +++ b/nxviz/api.py @@ -1,6 +1,5 @@ """High level nxviz plotting API.""" - from functools import partial, update_wrapper from typing import Callable, Dict, Hashable diff --git a/nxviz/encodings.py b/nxviz/encodings.py index b73987d5..9386c08e 100644 --- a/nxviz/encodings.py +++ b/nxviz/encodings.py @@ -1,4 +1,5 @@ """Functions to encode data inside visual properties of nodes and edges.""" + from functools import partial from typing import Callable, Tuple diff --git a/nxviz/facet.py b/nxviz/facet.py index 7f835ae8..387f3263 100644 --- a/nxviz/facet.py +++ b/nxviz/facet.py @@ -6,6 +6,7 @@ The others are faceting functions that can be called on. The faceting functions rely on the high level API for plotting. """ + import warnings from functools import partial, update_wrapper from itertools import combinations diff --git a/nxviz/geometry.py b/nxviz/geometry.py index e1960de8..d6f79d66 100644 --- a/nxviz/geometry.py +++ b/nxviz/geometry.py @@ -1,6 +1,7 @@ """ Utility geometry functions that can help with drawing to screen. """ + import numpy as np from .polcart import to_cartesian diff --git a/nxviz/io.py b/nxviz/io.py index 1d6b2cba..2e1c9dcf 100644 --- a/nxviz/io.py +++ b/nxviz/io.py @@ -1,4 +1,5 @@ """Deprecated module no longer used.""" + import pandas as pd from networkx import Graph, MultiGraph diff --git a/nxviz/lines.py b/nxviz/lines.py index d7fba70e..a601b43a 100644 --- a/nxviz/lines.py +++ b/nxviz/lines.py @@ -1,6 +1,5 @@ """Patch generators for edges.""" - from itertools import product from typing import Dict, Iterable, List diff --git a/nxviz/utils.py b/nxviz/utils.py index 1e31564d..47660837 100644 --- a/nxviz/utils.py +++ b/nxviz/utils.py @@ -1,4 +1,5 @@ """Utility functions.""" + from collections import Counter import pandas as pd diff --git a/tests/conftest.py b/tests/conftest.py index 7f14ea05..9cc9ec9b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,2 +1,3 @@ """Pytest configuration.""" + from .fixtures.graphs import dummyG, geoG, manygroupG, smallG diff --git a/tests/test_midlevel_api.py b/tests/test_midlevel_api.py index e6492c83..f5f96998 100644 --- a/tests/test_midlevel_api.py +++ b/tests/test_midlevel_api.py @@ -1,6 +1,5 @@ """Integration tests that operate at the mid-level API.""" - from nxviz import nodes, edges import pytest diff --git a/tests/test_polcart.py b/tests/test_polcart.py index 4f05a6a6..f7a7d81c 100644 --- a/tests/test_polcart.py +++ b/tests/test_polcart.py @@ -1,4 +1,5 @@ """Tests for polcart submodule.""" + import numpy as np from hypothesis import assume, given, settings