Skip to content

Commit a17329f

Browse files
committed
sort imports
1 parent 6fd6fdb commit a17329f

17 files changed

+41
-40
lines changed

cwltool/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
)
4646

4747
if TYPE_CHECKING:
48-
from .provenance_profile import ProvenanceProfile # pylint: disable=unused-import
4948
from .pathmapper import PathMapper
49+
from .provenance_profile import ProvenanceProfile # pylint: disable=unused-import
5050

5151

5252
def content_limit_respected_read_bytes(f): # type: (IO[bytes]) -> bytes

cwltool/command_line_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
from .singularity import SingularityCommandLineJob
5959
from .stdfsaccess import StdFsAccess
6060
from .udocker import UDockerCommandLineJob
61+
from .update import ORDERED_VERSIONS
6162
from .utils import (
6263
CWLObjectType,
6364
CWLOutputType,
@@ -79,7 +80,6 @@
7980
visit_class,
8081
windows_default_container_id,
8182
)
82-
from .update import ORDERED_VERSIONS
8383

8484
if TYPE_CHECKING:
8585
from .provenance_profile import ProvenanceProfile # pylint: disable=unused-import

cwltool/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Shared context objects that replace use of kwargs."""
22
import copy
33
import threading
4-
from typing import Any, Callable, Dict, Iterable, List, Optional, Union, IO, TextIO
4+
from typing import IO, Any, Callable, Dict, Iterable, List, Optional, TextIO, Union
55

66
# move to a regular typing import when Python 3.3-3.6 is no longer supported
77
from ruamel.yaml.comments import CommentedMap

cwltool/cwlrdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from schema_salad.jsonld_context import makerdf
88
from schema_salad.ref_resolver import ContextType
99

10-
from .process import Process
1110
from .cwlviewer import CWLViewer
11+
from .process import Process
1212

1313

1414
def gather(tool: Process, ctx: ContextType) -> Graph:

cwltool/cwlviewer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""Visualize a CWL workflow."""
2-
import rdflib
3-
from urllib.parse import urlparse
42
import os
3+
from urllib.parse import urlparse
4+
55
import pydot # type: ignore
6+
import rdflib
67

78

89
class CWLViewer:

cwltool/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Parse CWL expressions."""
22

33
import copy
4+
import json
45
import re
56
from typing import (
67
Any,
@@ -15,7 +16,6 @@
1516
cast,
1617
)
1718

18-
import json
1919
from schema_salad.utils import json_dumps
2020

2121
from .errors import WorkflowException

cwltool/job.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@
3232

3333
import psutil
3434
import shellescape
35+
from prov.model import PROV
3536
from schema_salad.sourceline import SourceLine
3637
from schema_salad.utils import json_dump, json_dumps
3738
from typing_extensions import TYPE_CHECKING
3839

39-
from prov.model import PROV
40-
4140
from .builder import Builder, HasReqsHints
4241
from .context import RuntimeContext, getdefault
4342
from .errors import UnsupportedRequirement, WorkflowException

cwltool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
resolve_tool_uri,
6363
)
6464
from .loghandler import _logger, defaultStreamHandler
65+
from .mpi import MpiConfig
6566
from .mutation import MutationManager
6667
from .pack import pack
6768
from .process import (
@@ -99,7 +100,6 @@
99100
windows_default_container_id,
100101
)
101102
from .workflow import Workflow
102-
from .mpi import MpiConfig
103103

104104

105105
def _terminate_processes() -> None:

cwltool/mpi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import inspect
12
import os
23
import re
3-
import inspect
4-
from typing import List, Type, TypeVar, Optional, MutableMapping, Mapping, Union
5-
from ruamel import yaml
4+
from typing import List, Mapping, MutableMapping, Optional, Type, TypeVar, Union
65

6+
from ruamel import yaml
77

88
MpiConfigT = TypeVar("MpiConfigT", bound="MpiConfig")
99

cwltool/pack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
from .context import LoadingContext
2222
from .load_tool import fetch_document, resolve_and_validate_document
23+
from .loghandler import _logger
2324
from .process import shortname, uniquename
25+
from .update import ORDERED_VERSIONS, update
2426
from .utils import CWLObjectType, CWLOutputType
25-
from .loghandler import _logger
26-
from .update import update, ORDERED_VERSIONS
2727

2828
LoadRefType = Callable[[Optional[str], str], ResolveType]
2929

0 commit comments

Comments
 (0)