Skip to content

Commit adc56fa

Browse files
committed
Comply with linters
1 parent 6138e1f commit adc56fa

File tree

3 files changed

+15
-34
lines changed

3 files changed

+15
-34
lines changed

nodestream_plugin_meta/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from .plugin import SchemaRenderer
22

3-
43
__all__ = ("SchemaRenderer",)

nodestream_plugin_meta/plugin.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
from typing import Iterable, Optional
21
from pathlib import Path
2+
from typing import Iterable, Optional
33

4+
from nodestream.model import DesiredIngestion, Node, Relationship
45
from nodestream.pipeline import Extractor
56
from nodestream.project import Project
6-
from nodestream.schema import (
7-
Schema,
8-
GraphObjectSchema,
9-
PropertyMetadata,
10-
Adjacency,
11-
)
12-
from nodestream.model import Node, Relationship, DesiredIngestion
13-
7+
from nodestream.schema import (Adjacency, GraphObjectSchema, PropertyMetadata,
8+
Schema)
149

1510
NODE_TYPE_TYPE = "NodeType"
1611
REL_TYPE_TYPE = "RelationshipType"

tests/test_plugin.py

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
from pathlib import Path
2-
from unittest.mock import patch, MagicMock
2+
from unittest.mock import MagicMock, patch
33

44
import pytest
5-
from nodestream.schema import GraphObjectSchema, PropertyMetadata, Adjacency
6-
from nodestream.model import Node, Relationship, DesiredIngestion
7-
from nodestream.schema import (
8-
GraphObjectSchema,
9-
PropertyMetadata,
10-
Adjacency,
11-
Schema,
12-
AdjacencyCardinality,
13-
)
14-
from nodestream.project import Project
15-
16-
17-
from nodestream_plugin_meta.plugin import (
18-
find_nodestream_yaml,
19-
render_property,
20-
has_property_rel,
21-
rel_by_name,
22-
node_by_name,
23-
render_node,
24-
render_relationship,
25-
render_adjacency,
26-
SchemaRenderer,
27-
)
5+
from nodestream.model import DesiredIngestion, Node, Relationship
6+
from nodestream.schema import (Adjacency, AdjacencyCardinality,
7+
GraphObjectSchema, PropertyMetadata, Schema)
8+
9+
from nodestream_plugin_meta.plugin import (SchemaRenderer,
10+
find_nodestream_yaml,
11+
has_property_rel, node_by_name,
12+
rel_by_name, render_adjacency,
13+
render_node, render_property,
14+
render_relationship)
2815

2916

3017
def test_find_nodestream_yaml_in_current_dir():

0 commit comments

Comments
 (0)