Skip to content

Commit

Permalink
Ensure that lint S014 has a proper test. (cylc#6324)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim authored Aug 23, 2024
1 parent 700ca84 commit cadf1ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cylc/flow/scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,15 @@ def get_wallclock_directives():
def check_wallclock_directives(line: str) -> Union[Dict[str, str], bool]:
"""Check for job runner specific directives
equivelent to exection time limit.
It's recommended that users prefer execution time limit
because it gives the Cylc scheduler awareness should communications
with a remote job runner be lost.
Examples:
>>> this = check_wallclock_directives
>>> this(' -W 42:22')
{'directive': '-W 42:22'}
"""
for directive in set(WALLCLOCK_DIRECTIVES.values()):
if line.strip().startswith(directive):
Expand Down

0 comments on commit cadf1ef

Please sign in to comment.