summaryrefslogtreecommitdiff
path: root/networkx/readwrite/json_graph/tests
diff options
context:
space:
mode:
authorMridul Seth <seth.mridul@gmail.com>2022-06-02 19:54:09 +0400
committerGitHub <noreply@github.com>2022-06-02 08:54:09 -0700
commit5c0b11afb4c0882a070d522ef3fa41482ba935d3 (patch)
tree1b8f21413afd65617420203cf834a8d15d8282ab /networkx/readwrite/json_graph/tests
parent4dba24ba22fc8c4906e16f67b5cf103ee0a830b3 (diff)
downloadnetworkx-5c0b11afb4c0882a070d522ef3fa41482ba935d3.tar.gz
Use isort with pre-commit to enforce import guidelines (#5659)
* Add isort to pre-commit * Run isort on all python files (except __init__.py ones)
Diffstat (limited to 'networkx/readwrite/json_graph/tests')
-rw-r--r--networkx/readwrite/json_graph/tests/test_adjacency.py2
-rw-r--r--networkx/readwrite/json_graph/tests/test_cytoscape.py4
-rw-r--r--networkx/readwrite/json_graph/tests/test_jit.py2
-rw-r--r--networkx/readwrite/json_graph/tests/test_node_link.py2
-rw-r--r--networkx/readwrite/json_graph/tests/test_tree.py2
5 files changed, 11 insertions, 1 deletions
diff --git a/networkx/readwrite/json_graph/tests/test_adjacency.py b/networkx/readwrite/json_graph/tests/test_adjacency.py
index 57a2a6b1..48f34404 100644
--- a/networkx/readwrite/json_graph/tests/test_adjacency.py
+++ b/networkx/readwrite/json_graph/tests/test_adjacency.py
@@ -1,5 +1,7 @@
import json
+
import pytest
+
import networkx as nx
from networkx.readwrite.json_graph import adjacency_data, adjacency_graph
diff --git a/networkx/readwrite/json_graph/tests/test_cytoscape.py b/networkx/readwrite/json_graph/tests/test_cytoscape.py
index 64cfa577..cdb101f9 100644
--- a/networkx/readwrite/json_graph/tests/test_cytoscape.py
+++ b/networkx/readwrite/json_graph/tests/test_cytoscape.py
@@ -1,7 +1,9 @@
+import copy
import json
+
import pytest
+
import networkx as nx
-import copy
from networkx.readwrite.json_graph import cytoscape_data, cytoscape_graph
diff --git a/networkx/readwrite/json_graph/tests/test_jit.py b/networkx/readwrite/json_graph/tests/test_jit.py
index 9a2ef682..309c4055 100644
--- a/networkx/readwrite/json_graph/tests/test_jit.py
+++ b/networkx/readwrite/json_graph/tests/test_jit.py
@@ -1,5 +1,7 @@
import json
+
import pytest
+
import networkx as nx
from networkx.readwrite.json_graph import jit_data, jit_graph
diff --git a/networkx/readwrite/json_graph/tests/test_node_link.py b/networkx/readwrite/json_graph/tests/test_node_link.py
index e5773d26..bc46e7ba 100644
--- a/networkx/readwrite/json_graph/tests/test_node_link.py
+++ b/networkx/readwrite/json_graph/tests/test_node_link.py
@@ -1,5 +1,7 @@
import json
+
import pytest
+
import networkx as nx
from networkx.readwrite.json_graph import node_link_data, node_link_graph
diff --git a/networkx/readwrite/json_graph/tests/test_tree.py b/networkx/readwrite/json_graph/tests/test_tree.py
index 848edd0b..ea19810e 100644
--- a/networkx/readwrite/json_graph/tests/test_tree.py
+++ b/networkx/readwrite/json_graph/tests/test_tree.py
@@ -1,5 +1,7 @@
import json
+
import pytest
+
import networkx as nx
from networkx.readwrite.json_graph import tree_data, tree_graph