Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hwikle-lanl committed Dec 5, 2024
1 parent 5a746f2 commit d84179c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/pavilion/cmd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/pavilion/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
8 changes: 6 additions & 2 deletions lib/pavilion/series/test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d84179c

Please sign in to comment.