Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit b1d9f05

Browse files
authored
cleanup: Remove unused imports
1 parent b78b035 commit b1d9f05

File tree

49 files changed

+368
-246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+368
-246
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Definitions with a `spec` can use the `subspec` parameter to declare that they
1414
are a list or a dict where the values are of the `spec` type. Rather than the
1515
list or dict itself being of the `spec` type.
16+
### Removed
17+
- Unused imports
1618

1719
## [0.3.3] - 2020-02-10
1820
### Added

dffml/cli/cli.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,19 @@
33
"""
44
Command line interface evaluates packages given their source URLs
55
"""
6-
import os
7-
import sys
86
import pdb
9-
import json
10-
import pathlib
11-
import asyncio
12-
import logging
13-
import inspect
14-
import argparse
15-
import contextlib
167
import pkg_resources
17-
from typing import List
188

199
from ..version import VERSION
20-
from ..base import BaseConfig
2110
from ..repo import Repo
22-
from ..port import Port
23-
from ..feature import Feature, Features, Data
24-
from ..source.source import BaseSource, Sources, SubsetSources
25-
from ..model import Model
26-
from ..config.config import BaseConfigLoader
27-
from ..config.json import JSONConfigLoader
28-
from ..df.types import Input, Operation, DataFlow
29-
from ..df.base import StringInputSetContext
30-
from ..df.memory import MemoryInputSet, MemoryInputSetConfig
31-
from ..util.entrypoint import load
11+
from ..source.source import BaseSource
3212
from ..util.packaging import is_develop
33-
from ..util.data import merge
3413
from ..util.cli.arg import Arg
3514
from ..util.cli.cmd import CMD
3615
from ..util.cli.cmds import (
3716
SourcesCMD,
38-
ModelCMD,
3917
PortCMD,
4018
KeysCMD,
41-
ListEntrypoint,
4219
)
4320

4421
from .dataflow import Dataflow

dffml/cli/dataflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
import pathlib
32
import hashlib
43
import contextlib

dffml/feature/feature.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,12 @@
77
import abc
88
import pydoc
99
import asyncio
10-
import traceback
11-
import concurrent.futures as futures
12-
import pkg_resources
1310
from contextlib import AsyncExitStack
14-
from functools import singledispatch, partial
15-
from typing import Optional, List, Dict, Type, AsyncIterator, Any, Callable
11+
from typing import List, Dict, Type, Any
1612

1713
from .log import LOGGER
18-
from ..repo import Repo
19-
from ..util.monitor import Monitor, Task
14+
from ..util.monitor import Task
2015
from ..util.entrypoint import Entrypoint
21-
from ..util.asynchelper import AsyncContextManagerList
2216

2317

2418
class Frequency(object):

dffml/repo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
"""
44
Information on the software to evaluate is stored in a Repo instance.
55
"""
6-
import os
7-
import warnings
86
from datetime import datetime
9-
from typing import Optional, List, Dict, Any, AsyncIterator
7+
from typing import Optional, List, Dict, Any
108

119
from .util.data import merge
1210
from .log import LOGGER

dffml/service/dev.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
from ..base import BaseConfig
1717
from ..util.os import chdir
18-
from ..util.skel import Skel
19-
from ..util.cli.cmd import CMD
2018
from ..version import VERSION
2119
from ..util.skel import Skel, SkelTemplateConfig
2220
from ..util.cli.arg import Arg

dffml/skel/source/REPLACE_IMPORT_PACKAGE_NAME/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from typing import AsyncIterator, Dict, List, NamedTuple
1+
from typing import AsyncIterator, Dict, List
22

33
from dffml.base import BaseConfig
44
from dffml.repo import Repo
55
from dffml.source.source import BaseSourceContext, BaseSource
66
from dffml.util.cli.arg import Arg
77
from dffml.util.entrypoint import entrypoint
8-
from dffml.base import config, field
8+
from dffml.base import config
99

1010

1111
@config

dffml/source/csv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
import ast
88
import itertools
99
import asyncio
10-
from typing import NamedTuple, Dict, List
10+
from typing import Dict
1111
from dataclasses import dataclass
1212
from contextlib import asynccontextmanager
1313

1414
from ..repo import Repo
1515
from .memory import MemorySource
1616
from .file import FileSource, FileSourceConfig
1717
from ..base import config
18-
from ..util.cli.arg import Arg
1918
from ..util.entrypoint import entrypoint
2019

2120
csv.register_dialect("strip", skipinitialspace=True)

dffml/source/memory.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
"""
44
Fake data sources used for testing
55
"""
6-
import asyncio
7-
from typing import Any, Dict, List, NamedTuple, AsyncIterator
6+
from typing import Dict, List, AsyncIterator
87

98
from ..base import config
109
from ..repo import Repo
1110
from .source import BaseSourceContext, BaseSource
12-
from ..util.cli.arg import Arg
1311
from ..util.entrypoint import entrypoint
1412

1513

dffml/source/source.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@
55
source project's source URL.
66
"""
77
import abc
8-
import asyncio
9-
from typing import AsyncIterator, Dict, List, Optional, Callable, Tuple, Any
8+
from typing import AsyncIterator, List, Optional, Callable
109

1110
from ..base import (
12-
BaseConfig,
1311
BaseDataFlowFacilitatorObjectContext,
1412
BaseDataFlowFacilitatorObject,
1513
)
16-
from ..repo import Repo, RepoData
14+
from ..repo import Repo
1715
from ..util.asynchelper import (
1816
AsyncContextManagerListContext,
1917
AsyncContextManagerList,
2018
)
21-
from ..util.entrypoint import Entrypoint, base_entry_point
2219

20+
from ..util.entrypoint import base_entry_point
2321
from .log import LOGGER
2422

2523

0 commit comments

Comments
 (0)