Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Apr 11, 2024
1 parent bea316c commit ee152e3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions snakemake_interface_common/plugin_registry/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,11 @@ def register_cli_args(self, argparser):
for thefield in fields(params):
if "help" not in thefield.metadata:
raise InvalidPluginException(
self.name,
"Fields of ExecutorSettings must have a help string."
self.name, "Fields of ExecutorSettings must have a help string."
)
if thefield.default is MISSING and thefield.default_factory is MISSING:
raise InvalidPluginException(
self.name,
"Fields of ExecutorSettings must have a default value."
self.name, "Fields of ExecutorSettings must have a default value."
)

settings = argparser.add_argument_group(f"{self.name} executor settings")
Expand Down Expand Up @@ -233,7 +231,7 @@ def extract_values(value, thefield, name, tag=None):
if "unparse_func" not in thefield.metadata:
raise InvalidPluginException(
self.name,
f"Field {name} has a parse_func but no unparse_func."
f"Field {name} has a parse_func but no unparse_func.",
)
value = parse_func(value)
elif "type" in thefield.metadata:
Expand Down

0 comments on commit ee152e3

Please sign in to comment.