Skip to content

Commit

Permalink
Merge branch 'main' into shm-size#1821
Browse files Browse the repository at this point in the history
  • Loading branch information
lihl2014 authored Jan 29, 2024
2 parents 828b4a3 + d8f0eb2 commit deac33e
Show file tree
Hide file tree
Showing 32 changed files with 36 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@

# upgrade to black 23.1, longer lines (100)
7fe8c0739b0515d00daabc7db87bc5fad926d345

# upgrade to black 24
80c9ec01b4602fc51ac1f53744f98df8baba3c31
1 change: 1 addition & 0 deletions cwltool/builder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Command line builder."""

import copy
import logging
import math
Expand Down
1 change: 1 addition & 0 deletions cwltool/checker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Static checking of CWL workflow connectivity."""

from collections import namedtuple
from typing import (
Any,
Expand Down
1 change: 1 addition & 0 deletions cwltool/context.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Shared context objects that replace use of kwargs."""

import copy
import os
import shutil
Expand Down
1 change: 1 addition & 0 deletions cwltool/cwlviewer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Visualize a CWL workflow."""

from pathlib import Path
from typing import Iterator, List, cast
from urllib.parse import urlparse
Expand Down
1 change: 1 addition & 0 deletions cwltool/executors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Single and multi-threaded executors."""

import datetime
import functools
import logging
Expand Down
1 change: 1 addition & 0 deletions cwltool/loghandler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Shared logger for cwltool."""

import logging

import coloredlogs
Expand Down
1 change: 1 addition & 0 deletions cwltool/mpi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Experimental support for MPI."""

import inspect
import os
import re
Expand Down
1 change: 1 addition & 0 deletions cwltool/process.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Classes and methods relevant for all CWL Process types."""

import abc
import copy
import functools
Expand Down
1 change: 1 addition & 0 deletions cwltool/run_job.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Only used when there is a job script or CWLTOOL_FORCE_SHELL_POPEN=1."""

import json
import os
import subprocess # nosec
Expand Down
1 change: 1 addition & 0 deletions cwltool/secrets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Minimal in memory storage of secrets."""

import uuid
from typing import Dict, List, MutableMapping, MutableSequence, Optional, cast

Expand Down
1 change: 1 addition & 0 deletions cwltool/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Shared functions and other definitions."""

import collections

try:
Expand Down
2 changes: 1 addition & 1 deletion lint-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flake8-bugbear<23.13
black~=23.12
black~=24.1
codespell
7 changes: 3 additions & 4 deletions mypy-stubs/prov/model.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,9 @@ class ProvBundle:
) -> QualifiedName | None: ...
def get_records(
self,
class_or_type_or_tuple: type
| type[int | str]
| Tuple[type | type[int | str] | Tuple[Any, ...], ...]
| None = ...,
class_or_type_or_tuple: (
type | type[int | str] | Tuple[type | type[int | str] | Tuple[Any, ...], ...] | None
) = ...,
) -> List[ProvRecord]: ...
def get_record(self, identifier: Identifier | None) -> ProvRecord | List[ProvRecord] | None: ...
def is_document(self) -> bool: ...
Expand Down
1 change: 1 addition & 0 deletions tests/cwl-conformance/cwltool-conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Calls cwltool via Python, instead of a subprocess via `--cwl-runner cwltool`.
"""

import json
from io import StringIO
from typing import Any, Dict, List, Optional, Tuple
Expand Down
1 change: 1 addition & 0 deletions tests/test_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Confirm some known-bad CWL descriptions."""

import pytest

from cwltool.main import main
Expand Down
1 change: 1 addition & 0 deletions tests/test_dependencies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests of satisfying SoftwareRequirement via dependencies."""

import os
import tempfile
from getpass import getuser
Expand Down
1 change: 1 addition & 0 deletions tests/test_docker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for docker engine."""

import json
import re
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/test_environment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test passing of environment variables to tools."""

import os
from abc import ABC, abstractmethod
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/test_iwdr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""InitialWorkDirRequirement related tests."""

import json
import re
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/test_js_sandbox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test sandboxjs.py and related code."""

import logging
import os
import shutil
Expand Down
1 change: 1 addition & 0 deletions tests/test_load_tool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for cwltool.load_tool."""

import logging
import urllib.parse
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/test_loop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the prototype loop extension."""

import json
from io import StringIO
from typing import MutableMapping, MutableSequence
Expand Down
1 change: 1 addition & 0 deletions tests/test_mpi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests of the experimental MPI extension."""

import json
import os.path
import sys
Expand Down
1 change: 1 addition & 0 deletions tests/test_recursive_validation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the recursive validation feature (validate document and try to build tool)."""

from cwltool.load_tool import fetch_document, recursive_resolve_and_validate_document

from .util import get_data
Expand Down
1 change: 1 addition & 0 deletions tests/test_singularity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests to find local Singularity image."""

import shutil
from pathlib import Path
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions tests/test_singularity_versions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test singularity{,-ce} & apptainer versions."""

from subprocess import check_output # nosec

import cwltool.singularity
Expand Down
1 change: 1 addition & 0 deletions tests/test_streaming.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test that files marked as 'streamable' when 'streaming_allowed' can be named pipes."""

import os
from pathlib import Path
from typing import cast
Expand Down
1 change: 1 addition & 0 deletions tests/test_tmpdir.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test that all temporary directories respect the --tmpdir-prefix and --tmp-outdir-prefix options."""

import os
import re
import shutil
Expand Down
1 change: 1 addition & 0 deletions tests/test_udocker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test optional udocker feature."""

import copy
import os
import subprocess
Expand Down
1 change: 1 addition & 0 deletions tests/test_validate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests --validation."""

import re

from .util import get_data, get_main_output
Expand Down
1 change: 1 addition & 0 deletions tests/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test functions."""

import atexit
import contextlib
import io
Expand Down

0 comments on commit deac33e

Please sign in to comment.