Skip to content

Commit

Permalink
pin docformatter==1.5.0 due to 1.5.1 breaking changes (relates to PyC…
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Jan 23, 2023
1 parent 3ad6c56 commit a2ce165
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ bump2version
codacy-coverage
coverage
doc8>=0.8.1
docformatter>=1.5.0 # add support of config file
docformatter==1.5.0 # add support of config file
flake8<6 # FIXME: false positive redefinition (https://github.com/PyCQA/pyflakes/issues/757)
flynt
isort>=4.3.21,<5
Expand Down
2 changes: 0 additions & 2 deletions tests/functional/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,6 @@ class TestWeaverClientAuthBase(TestWeaverClientBase):

@classmethod
def setup_auth_app(cls):

def auth_view(request):
# type: (AnyRequestType) -> AnyResponseType
token = str(uuid.uuid4())
Expand Down Expand Up @@ -2057,7 +2056,6 @@ def setUpClass(cls):


class TestWeaverCLIAuthHandler(TestWeaverClientAuthBase):

def test_describe_auth(self):
# prints formatted JSON ProcessDescription over many lines
proc = self.test_process["Echo"]
Expand Down
1 change: 0 additions & 1 deletion tests/wps_restapi/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


class GenericApiRoutesTestCase(unittest.TestCase):

@classmethod
def setUpClass(cls):
cls.testapp = get_test_weaver_app(settings={"weaver.wps": True, "weaver.wps_restapi": True})
Expand Down
1 change: 1 addition & 0 deletions weaver/processes/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ def __iter__(self):
symbols: "Union[CWL_IO_EnumSymbols, AnyValue, Type[AnyValue]]" = AnyValue
"""
Specifies the allowed values when the definition is marked as :attr:`enum`.
When not overriden by literal values, it uses the default :class:`AnyValue`.
"""

Expand Down
3 changes: 2 additions & 1 deletion weaver/processes/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
from weaver.typedefs import DataSourceConfig

DATA_SOURCES = {} # type: DataSourceConfig
"""Data sources configuration.
"""
Data sources configuration.
Unless explicitly overridden, the configuration will be loaded from file as specified by``weaver.data_sources`` setting.
Following JSON schema format is expected (corresponding YAML also supported):
Expand Down
1 change: 0 additions & 1 deletion weaver/processes/wps_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,6 @@ def location(self, destination):


class WpsPackage(Process):

def __init__(self, package=None, payload=None, **kw):
# type: (CWL, Optional[JSON], **Any) -> None
"""
Expand Down
1 change: 0 additions & 1 deletion weaver/wps_restapi/colander_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ def __init__(self, *args, v_prefix=False, rc_suffix=True, **kwargs):


class ExtendedBoolean(colander.Boolean):

def __init__(self, *args, true_choices=None, false_choices=None, allow_string=False, **kwargs):
# type: (Any, Optional[Iterable[str]], Optional[Iterable[str]], bool, Any) -> None
"""
Expand Down

0 comments on commit a2ce165

Please # to comment.