Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Nov 9, 2024
1 parent 3806aa7 commit 5cf3bf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/galaxy/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,9 @@ def parse_param_elem(self, input_source: InputSource, enctypes, context) -> Tool
# form when it changes
for name in param.get_dependencies():
# Let it throw exception, but give some hint what the problem might be
assert name in context, f"Tool with id '{self.id}': Could not find dependency '{name}' of parameter '{param.name}'"
assert (
name in context
), f"Tool with id '{self.id}': Could not find dependency '{name}' of parameter '{param.name}'"
context[name].refresh_on_change = True
return param

Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ def __init__(self, tool, input_source):
if self.accept_default:
self.optional = True
self.data_ref = input_source.get("data_ref", None)
assert self.data_ref is not None, f'data_column parameter {self.name} requires a valid data_ref attribute'
assert self.data_ref is not None, f"data_column parameter {self.name} requires a valid data_ref attribute"
self.ref_input = None
# Legacy style default value specification...
self.default_value = input_source.get("default_value", None)
Expand Down

0 comments on commit 5cf3bf4

Please sign in to comment.