Skip to content

Commit 80c9ec0

Browse files
committed
apply black 2024 formatting
1 parent 3732321 commit 80c9ec0

30 files changed

+32
-4
lines changed

cwltool/builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Command line builder."""
2+
23
import copy
34
import logging
45
import math

cwltool/checker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Static checking of CWL workflow connectivity."""
2+
23
from collections import namedtuple
34
from typing import (
45
Any,

cwltool/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Shared context objects that replace use of kwargs."""
2+
23
import copy
34
import os
45
import shutil

cwltool/cwlviewer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Visualize a CWL workflow."""
2+
23
from pathlib import Path
34
from typing import Iterator, List, cast
45
from urllib.parse import urlparse

cwltool/executors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Single and multi-threaded executors."""
2+
23
import datetime
34
import functools
45
import logging

cwltool/loghandler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Shared logger for cwltool."""
2+
23
import logging
34

45
import coloredlogs

cwltool/mpi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Experimental support for MPI."""
2+
23
import inspect
34
import os
45
import re

cwltool/process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Classes and methods relevant for all CWL Process types."""
2+
23
import abc
34
import copy
45
import functools

cwltool/run_job.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Only used when there is a job script or CWLTOOL_FORCE_SHELL_POPEN=1."""
2+
23
import json
34
import os
45
import subprocess # nosec

cwltool/secrets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Minimal in memory storage of secrets."""
2+
23
import uuid
34
from typing import Dict, List, MutableMapping, MutableSequence, Optional, cast
45

cwltool/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Shared functions and other definitions."""
2+
23
import collections
34

45
try:

mypy-stubs/prov/model.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,9 @@ class ProvBundle:
223223
) -> QualifiedName | None: ...
224224
def get_records(
225225
self,
226-
class_or_type_or_tuple: type
227-
| type[int | str]
228-
| Tuple[type | type[int | str] | Tuple[Any, ...], ...]
229-
| None = ...,
226+
class_or_type_or_tuple: (
227+
type | type[int | str] | Tuple[type | type[int | str] | Tuple[Any, ...], ...] | None
228+
) = ...,
230229
) -> List[ProvRecord]: ...
231230
def get_record(self, identifier: Identifier | None) -> ProvRecord | List[ProvRecord] | None: ...
232231
def is_document(self) -> bool: ...

tests/cwl-conformance/cwltool-conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Calls cwltool via Python, instead of a subprocess via `--cwl-runner cwltool`.
55
"""
6+
67
import json
78
from io import StringIO
89
from typing import Any, Dict, List, Optional, Tuple

tests/test_check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Confirm some known-bad CWL descriptions."""
2+
23
import pytest
34

45
from cwltool.main import main

tests/test_dependencies.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests of satisfying SoftwareRequirement via dependencies."""
2+
23
import os
34
import tempfile
45
from getpass import getuser

tests/test_docker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for docker engine."""
2+
23
import json
34
import re
45
from pathlib import Path

tests/test_environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test passing of environment variables to tools."""
2+
23
import os
34
from abc import ABC, abstractmethod
45
from pathlib import Path

tests/test_iwdr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""InitialWorkDirRequirement related tests."""
2+
23
import json
34
import re
45
from pathlib import Path

tests/test_js_sandbox.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test sandboxjs.py and related code."""
2+
23
import logging
34
import os
45
import shutil

tests/test_load_tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for cwltool.load_tool."""
2+
23
import logging
34
import urllib.parse
45
from pathlib import Path

tests/test_loop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the prototype loop extension."""
2+
23
import json
34
from io import StringIO
45
from typing import MutableMapping, MutableSequence

tests/test_mpi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests of the experimental MPI extension."""
2+
23
import json
34
import os.path
45
import sys

tests/test_recursive_validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the recursive validation feature (validate document and try to build tool)."""
2+
23
from cwltool.load_tool import fetch_document, recursive_resolve_and_validate_document
34

45
from .util import get_data

tests/test_singularity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests to find local Singularity image."""
2+
23
import shutil
34
from pathlib import Path
45
from typing import Any

tests/test_singularity_versions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test singularity{,-ce} & apptainer versions."""
2+
23
from subprocess import check_output # nosec
34

45
import cwltool.singularity

tests/test_streaming.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test that files marked as 'streamable' when 'streaming_allowed' can be named pipes."""
2+
23
import os
34
from pathlib import Path
45
from typing import cast

tests/test_tmpdir.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test that all temporary directories respect the --tmpdir-prefix and --tmp-outdir-prefix options."""
2+
23
import os
34
import re
45
import shutil

tests/test_udocker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test optional udocker feature."""
2+
23
import copy
34
import os
45
import subprocess

tests/test_validate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests --validation."""
2+
23
import re
34

45
from .util import get_data, get_main_output

tests/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test functions."""
2+
23
import atexit
34
import contextlib
45
import io

0 commit comments

Comments
 (0)