Skip to content

Commit 174aa09

Browse files
lint
1 parent 2099a3f commit 174aa09

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

nightly_testing/generate_test_suite_cron.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
import argparse
3636
import os
37-
import re
3837
import subprocess
3938
import sys
4039
import yaml
@@ -82,8 +81,8 @@ def create_git_clone_cron(repo):
8281
repo_mirror = os.path.join(MIRROR_PATH, "MetOffice", f"{repo}.git")
8382

8483
command = f"# Clone {repo} - every day at 23:30 #"
85-
l = len(command)
86-
command = f"{l*'#'}\n{command}\n{l*'#'}\n30 23 * * * {PROFILE} ; "
84+
length = len(command)
85+
command = f"{length*'#'}\n{command}\n{length*'#'}\n30 23 * * * {PROFILE} ; "
8786
command += f"rm -rf {clone_path} ; "
8887
command += f"git clone {repo_mirror} {clone_path}"
8988
return command + "\n\n\n"
@@ -214,7 +213,7 @@ def generate_cylc_command(suite, wc_path, cylc_version, name):
214213
f"-S USE_MIRRORS=true "
215214
)
216215
if "revisions" in suite and suite["revisions"] == "heads":
217-
command += f"-S USE_HEADS=true "
216+
command += "-S USE_HEADS=true "
218217
command += f"{wc_path} "
219218
return command
220219

0 commit comments

Comments
 (0)