Skip to content

Commit

Permalink
Update cylc/flow/scripts/lint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim authored Jan 14, 2025
1 parent b902f4e commit 902fcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cylc/flow/scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 902fcd2

Please sign in to comment.