Skip to content

Commit

Permalink
Merge branch 'topic/linter-overhaul' of https://github.com/bernt-matt…
Browse files Browse the repository at this point in the history
…hias/galaxy into topic/linter-overhaul
  • Loading branch information
bernt-matthias committed Feb 15, 2024
2 parents a0b25b5 + ed8eb6e commit 101a8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/linters/xsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def lint(cls, tool_source: "ToolSource", lint_ctx: "LintContext"):
xmlschema = etree.parse(TOOL_XSD)
xsd = etree.XMLSchema(xmlschema)
if not xsd.validate(tool_xml):
for error in xsd.error_log:
for error in xsd.error_log: # type: ignore[attr-defined] # https://github.com/lxml/lxml-stubs/pull/100
# the validation error contains the path which allows
# us to lookup the node that is reported in the lint context
node = tool_xml.xpath(error.path)
Expand Down

0 comments on commit 101a8a9

Please sign in to comment.