From d84179cf87cdbe581e2912a064dd8f958cb1e70f Mon Sep 17 00:00:00 2001 From: Hank Wikle Date: Thu, 5 Dec 2024 15:54:41 -0700 Subject: [PATCH] Fix style issues --- lib/pavilion/cmd_utils.py | 3 ++- lib/pavilion/errors.py | 2 +- lib/pavilion/series/test_set.py | 8 ++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/pavilion/cmd_utils.py b/lib/pavilion/cmd_utils.py index 1682a17c9..876f6509b 100644 --- a/lib/pavilion/cmd_utils.py +++ b/lib/pavilion/cmd_utils.py @@ -321,7 +321,8 @@ def get_collection_path(pav_cfg, collection) -> Union[Path, None]: return None -def test_list_to_paths(pav_cfg: config.PavConfig, req_tests: List, errfile: Optional[Path] = None) -> List[Path]: +def test_list_to_paths(pav_cfg: config.PavConfig, req_tests: List, + errfile: Optional[Path] = None) -> List[Path]: """Given a list of raw test id's and series id's, return a list of paths to those tests. The keyword 'last' may also be given to get the last series run by diff --git a/lib/pavilion/errors.py b/lib/pavilion/errors.py index 906c51eb1..3b90f6450 100644 --- a/lib/pavilion/errors.py +++ b/lib/pavilion/errors.py @@ -56,7 +56,7 @@ def __str__(self): def _wrap_lines(lines: List[str], width: int) -> List[str]: """Given a list of lines, produce a new list of lines wrapped to the specified width.""" - lines = map(lambda x: textwrap.wrap(x, width=width), lines) + lines = map(lambda x: textwrap.wrap(x, width=width), lines) return list(flatten(lines)) diff --git a/lib/pavilion/series/test_set.py b/lib/pavilion/series/test_set.py index b271de641..38b0e10eb 100644 --- a/lib/pavilion/series/test_set.py +++ b/lib/pavilion/series/test_set.py @@ -238,11 +238,15 @@ def make_iter(self, build_only: bool = False, rebuild: bool = False, for error in cfg_resolver.errors: if error.request is not None: self.status.set(S_STATES.ERROR, - '{} - {}'.format(error.request.request, error.pformat(show_tracebacks))) + '{} - {}'.format( + error.request.request, + error.pformat(show_tracebacks))) output.fprint( self.outfile, - "{} - {}".format(error.request.request, error.pformat(show_tracebacks))) + "{} - {}".format( + error.request.request, + error.pformat(show_tracebacks))) else: self.status.set(S_STATES.ERROR, error.pformat()) output.fprint(