Skip to content

Commit

Permalink
remove unused Union
Browse files Browse the repository at this point in the history
  • Loading branch information
lldelisle committed Jul 2, 2024
1 parent ecdcf0f commit 2f7c139
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions planemo/workflow_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
Optional,
Tuple,
TYPE_CHECKING,
Union,
)

import requests
Expand Down Expand Up @@ -128,9 +127,7 @@ def generate_dockstore_yaml(directory: str, publish: bool = True) -> str:
return contents


def lint_workflow_artifacts_on_paths(
ctx: "PlanemoCliContext", paths: Iterable[str], lint_args: Dict[str, Any]
) -> int:
def lint_workflow_artifacts_on_paths(ctx: "PlanemoCliContext", paths: Iterable[str], lint_args: Dict[str, Any]) -> int:
report_level = lint_args["level"]
lint_context = WorkflowLintContext(report_level, skip_types=lint_args["skip_types"])
for path in paths:
Expand All @@ -142,9 +139,7 @@ def lint_workflow_artifacts_on_paths(
return EXIT_CODE_OK


def _lint_workflow_artifacts_on_path(
lint_context: WorkflowLintContext, path: str, lint_args: Dict[str, Any]
) -> None:
def _lint_workflow_artifacts_on_path(lint_context: WorkflowLintContext, path: str, lint_args: Dict[str, Any]) -> None:
if lint_args["iwc_grade"]:
if not os.path.isdir(path):
path = os.path.dirname(path)
Expand Down

0 comments on commit 2f7c139

Please sign in to comment.