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 15, 2025
1 parent 16a55bd commit 9470bdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cylc/flow/scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ 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*=?\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 9470bdd

Please sign in to comment.