From 1f7972bfd4d3bf7ab08b42d3ac2dec69b8d1a6dd Mon Sep 17 00:00:00 2001 From: John Chilton Date: Sat, 17 Feb 2024 16:19:43 -0500 Subject: [PATCH] whitespace format --- .../7ffd33d5d144_implement_structured_tool_state.py | 1 + lib/galaxy/tool_util/parameters/convert.py | 1 + lib/galaxy/tool_util/parameters/models.py | 7 +++---- lib/galaxy/webapps/galaxy/services/jobs.py | 4 +++- lib/galaxy_test/api/test_tool_execution.py | 1 + 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/galaxy/model/migrations/alembic/versions_gxy/7ffd33d5d144_implement_structured_tool_state.py b/lib/galaxy/model/migrations/alembic/versions_gxy/7ffd33d5d144_implement_structured_tool_state.py index e0a68d6c3382..044a74fe0090 100644 --- a/lib/galaxy/model/migrations/alembic/versions_gxy/7ffd33d5d144_implement_structured_tool_state.py +++ b/lib/galaxy/model/migrations/alembic/versions_gxy/7ffd33d5d144_implement_structured_tool_state.py @@ -5,6 +5,7 @@ Create Date: 2022-11-09 15:53:11.451185 """ + from alembic import op from sqlalchemy import ( Column, diff --git a/lib/galaxy/tool_util/parameters/convert.py b/lib/galaxy/tool_util/parameters/convert.py index 23ff762cae12..14caed47e92c 100644 --- a/lib/galaxy/tool_util/parameters/convert.py +++ b/lib/galaxy/tool_util/parameters/convert.py @@ -1,5 +1,6 @@ """Utilities for converting between request states. """ + from typing import ( Any, Callable, diff --git a/lib/galaxy/tool_util/parameters/models.py b/lib/galaxy/tool_util/parameters/models.py index f75ff5ecd2fe..6c8506b282e7 100644 --- a/lib/galaxy/tool_util/parameters/models.py +++ b/lib/galaxy/tool_util/parameters/models.py @@ -97,8 +97,7 @@ def validate_not_none(cls, v): class ParamModel(Protocol): @property - def name(self) -> str: - ... + def name(self) -> str: ... @property def request_requires_value(self) -> bool: @@ -535,7 +534,7 @@ def pydantic_template(self, state_representation: StateRepresentationT) -> Dynam extra_kwd=extra_kwd, extra_validators={}, ) - when_types.append(Annotated[default_type, Tag('__absent__')]) + when_types.append(Annotated[default_type, Tag("__absent__")]) def model_x_discriminator(v: Any) -> str: if test_param_name not in v: @@ -558,7 +557,7 @@ class ConditionalType(RootModel): initialize_cond = None else: initialize_cond = ... - + py_type = ConditionalType return DynamicModelInformation( diff --git a/lib/galaxy/webapps/galaxy/services/jobs.py b/lib/galaxy/webapps/galaxy/services/jobs.py index 701ce9e1c4d6..bc121fb4eb9c 100644 --- a/lib/galaxy/webapps/galaxy/services/jobs.py +++ b/lib/galaxy/webapps/galaxy/services/jobs.py @@ -70,7 +70,9 @@ class JobRequest(BaseModel): history_id: Optional[DecodedDatabaseIdField] = Field(default=None, title="history_id", description="TODO") inputs: Optional[Dict[str, Any]] = Field(default_factory=lambda: {}, title="Inputs", description="TODO") use_cached_jobs: Optional[bool] = Field(default=None, title="use_cached_jobs") - rerun_remap_job_id: Optional[DecodedDatabaseIdField] = Field(default=None, title="rerun_remap_job_id", description="TODO") + rerun_remap_job_id: Optional[DecodedDatabaseIdField] = Field( + default=None, title="rerun_remap_job_id", description="TODO" + ) send_email_notification: bool = Field(default=False, title="Send Email Notification", description="TODO") diff --git a/lib/galaxy_test/api/test_tool_execution.py b/lib/galaxy_test/api/test_tool_execution.py index 737d1d668dfd..70ac008d3c7d 100644 --- a/lib/galaxy_test/api/test_tool_execution.py +++ b/lib/galaxy_test/api/test_tool_execution.py @@ -1,5 +1,6 @@ """ """ + from typing import ( Any, Dict,