Skip to content

Commit

Permalink
Add secrets parameter to parse_requirements_and_containers method in …
Browse files Browse the repository at this point in the history
…linters
  • Loading branch information
arash77 committed Oct 31, 2024
1 parent c74e8ce commit 44df605
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/galaxy/tool_util/linters/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class RequirementNameMissing(Linter):
@classmethod
def lint(cls, tool_source: "ToolSource", lint_ctx: "LintContext"):
_, tool_node = _tool_xml_and_root(tool_source)
requirements, containers, resource_requirements = tool_source.parse_requirements_and_containers()
requirements, containers, resource_requirements, secrets = tool_source.parse_requirements_and_containers()
for r in requirements:
if r.type != "package":
continue
Expand All @@ -195,7 +195,7 @@ class RequirementVersionMissing(Linter):
@classmethod
def lint(cls, tool_source: "ToolSource", lint_ctx: "LintContext"):
_, tool_node = _tool_xml_and_root(tool_source)
requirements, containers, resource_requirements = tool_source.parse_requirements_and_containers()
requirements, containers, resource_requirements, secrets = tool_source.parse_requirements_and_containers()
for r in requirements:
if r.type != "package":
continue
Expand All @@ -207,7 +207,7 @@ class RequirementVersionWhitespace(Linter):
@classmethod
def lint(cls, tool_source: "ToolSource", lint_ctx: "LintContext"):
_, tool_node = _tool_xml_and_root(tool_source)
requirements, containers, resource_requirements = tool_source.parse_requirements_and_containers()
requirements, containers, resource_requirements, secrets = tool_source.parse_requirements_and_containers()
for r in requirements:
if r.type != "package":
continue
Expand All @@ -223,7 +223,7 @@ class ResourceRequirementExpression(Linter):
@classmethod
def lint(cls, tool_source: "ToolSource", lint_ctx: "LintContext"):
_, tool_node = _tool_xml_and_root(tool_source)
requirements, containers, resource_requirements = tool_source.parse_requirements_and_containers()
requirements, containers, resource_requirements, secrets = tool_source.parse_requirements_and_containers()
for rr in resource_requirements:
if rr.runtime_required:
lint_ctx.warn(
Expand Down

0 comments on commit 44df605

Please sign in to comment.