From 0071c7b6cbabf7881bc8ff1189fb6d0baaab3f81 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen <33718780+casparvl@users.noreply.github.com> Date: Thu, 31 Aug 2023 17:09:50 +0200 Subject: [PATCH] Apply style suggestions from code review Co-authored-by: Sam Moors --- eessi/testsuite/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eessi/testsuite/utils.py b/eessi/testsuite/utils.py index a6fd2478..e75d7eb6 100644 --- a/eessi/testsuite/utils.py +++ b/eessi/testsuite/utils.py @@ -57,14 +57,14 @@ def is_cuda_required_module(module_name: str) -> bool: return requires_cuda -def find_modules(regex: str, name_only = True) -> Iterator[str]: +def find_modules(regex: str, name_only=True) -> Iterator[str]: """ Return all modules matching the regular expression regex. Note that since we use re.search, a module matches if the regex matches the module name at any place. I.e. the match does not have to be at the start of the smodule name Arguments: - - regex: a regular expresion + - regex: a regular expression - name_only: regular expressions will only be matched on the module name, not the version (default: True). Note: the name_only feature assumes anything after the last forward '/' is the version,