Skip to content

Commit cf714da

Browse files
committed
ruff format
1 parent f290930 commit cf714da

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

peppy/eido/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ def convert(
148148
None,
149149
"-a",
150150
"--args",
151-
help=(
152-
"Provide arguments to the filter function " "(e.g. arg1=val1 arg2=val2)."
153-
),
151+
help=("Provide arguments to the filter function (e.g. arg1=val1 arg2=val2)."),
154152
),
155153
list_filters: bool = typer.Option(
156154
False,

peppy/project.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,10 @@ def parse_config_file(
443443
) # due to some problems with symlinks in Nextflow
444444
config = load_yaml(cfg_path)
445445

446-
assert isinstance(
447-
config, Mapping
448-
), "Config file parse did not yield a Mapping; got {} ({})".format(
449-
config, type(config)
446+
assert isinstance(config, Mapping), (
447+
"Config file parse did not yield a Mapping; got {} ({})".format(
448+
config, type(config)
449+
)
450450
)
451451

452452
_LOGGER.debug(f"Raw ({cfg_path}) config data: {config}")
@@ -470,7 +470,7 @@ def parse_config_file(
470470
self.parse_config_file(cfg_path=i)
471471
else:
472472
_LOGGER.warning(
473-
"External Project configuration does not" " exist: {}".format(i)
473+
"External Project configuration does not exist: {}".format(i)
474474
)
475475

476476
self[CONFIG_KEY].update(**config)
@@ -815,8 +815,9 @@ def attr_merge(self):
815815
"Subannotation requires column '{}'.".format(sample_colname)
816816
)
817817
_LOGGER.debug(
818-
"Using '{}' as sample name column from "
819-
"subannotation table".format(sample_colname)
818+
"Using '{}' as sample name column from subannotation table".format(
819+
sample_colname
820+
)
820821
)
821822
sample_indexer = (
822823
subsample_table[sample_colname] == sample[self.st_index]

peppy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def make_list(arg: list | str, obj_class: type) -> list:
126126

127127
def _raise_faulty_arg():
128128
raise TypeError(
129-
"Provided argument has to be a List[{o}] or a {o}, " "got '{a}'".format(
129+
"Provided argument has to be a List[{o}] or a {o}, got '{a}'".format(
130130
o=obj_class.__name__, a=arg.__class__.__name__
131131
)
132132
)

0 commit comments

Comments
 (0)