Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ividito committed Feb 16, 2024
1 parent c3ead2f commit 2b1750e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion workflows_api/runtime/src/airflow_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def list_dags() -> str:
f"https://{mwaa_cli_token['WebServerHostname']}/aws_mwaa/cli"
)

raw_data = f"dags list"
raw_data = "dags list"
mwaa_response = requests.post(
mwaa_webserver_hostname,
headers={
Expand Down
2 changes: 1 addition & 1 deletion workflows_api/runtime/src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Settings(BaseSettings):
client_secret: str = Field("", description="The Cognito APP client secret")
stage: str = Field(description="API stage")
workflow_root_path: str = Field(description="Root path of API")
ingest_root_path: str = Field(description="Root path of API")
ingest_url: str = Field(description="URL of ingest API")

class Config(AwsSsmSourceConfig):
env_file = ".env"
Expand Down
8 changes: 4 additions & 4 deletions workflows_api/runtime/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

# "Datasets" interface (collections + item ingests from one input)


@workflows_app.post(
"/dataset/validate",
tags=["Dataset"],
Expand Down Expand Up @@ -101,7 +102,6 @@ async def publish_dataset(
return return_dict



@workflows_app.post(
"/discovery",
response_model=schemas.WorkflowExecutionResponse,
Expand Down Expand Up @@ -138,9 +138,9 @@ async def get_discovery_workflow_execution_status(
tags=["Workflow-Executions"],
dependencies=[Depends(auth.get_username)],
)
async def get_workflow_list() -> Union[
schemas.ExecutionResponse, schemas.WorkflowExecutionResponse
]:
async def get_workflow_list() -> (
Union[schemas.ExecutionResponse, schemas.WorkflowExecutionResponse]
):
"""
Returns the status of the workflow execution
"""
Expand Down
2 changes: 1 addition & 1 deletion workflows_api/runtime/src/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ def fetch_many(
}


class NotInDb(Exception):
class NotInDb(Exception):
...

0 comments on commit 2b1750e

Please sign in to comment.