Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ronnie Dutta <[email protected]>
  • Loading branch information
wxtim and MetRonnie authored Jan 14, 2025
1 parent 902fcd2 commit 16a55bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changes.d/6551.fix.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Lint: Fix bug where lint warned about use of legitimate -W directive for PBS.
Fix bug in `cylc lint` S014 where it warned about use of legitimate `-W` directive for PBS.
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*=?\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 16a55bd

Please sign in to comment.