From 902fcd26c983fd1c4d6e2c656309a1503e8f762f Mon Sep 17 00:00:00 2001 From: Tim Pillinger <26465611+wxtim@users.noreply.github.com> Date: Tue, 14 Jan 2025 13:03:26 +0000 Subject: [PATCH] Update cylc/flow/scripts/lint.py --- cylc/flow/scripts/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cylc/flow/scripts/lint.py b/cylc/flow/scripts/lint.py index c429ec4d69..ddefb03903 100755 --- a/cylc/flow/scripts/lint.py +++ b/cylc/flow/scripts/lint.py @@ -192,7 +192,7 @@ def get_wallclock_directives(): if directive and directive == '-W': # LSF directive -W needs to have a particular form to # avoid matching PBS directive -W: - directives[module.name] = re.compile(r'^-W\s+(\d+:)?\d+$') + directives[module.name] = re.compile(r'^-W\s*=?\s*(\d+:)?\d+$') elif directive: directives[module.name] = re.compile(rf'^{directive}.*') return directives