ci: add basic config checking with ruff
[buildbot.git] / phase1 / master.cfg
index 00d744c09b8a4a51b9ba884d1eef3880a33b0cdd..c392c5f2185de2521b97c887db36222b997f7396 100644 (file)
@@ -608,7 +608,7 @@ def UsignSec2Pub(props):
                comment = branches[branch].get("usign_comment") or "untrusted comment: secret key"
                seckey = branches[branch].get("usign_key")
                seckey = base64.b64decode(seckey)
-       except:
+       except Exception:
                return None
 
        return "{}\n{}".format(re.sub(r"\bsecret key$", "public key", comment),
@@ -710,12 +710,12 @@ for target in targets:
 
        # check out the source
        # Git() runs:
-         # if repo doesn't exist: 'git clone repourl'
-         # method 'clean' runs 'git clean -d -f', method fresh runs 'git clean -f -f -d -x'. Only works with mode='full'
-         # git cat-file -e <commit>
-         # git checkout -f <commit>
-         # git checkout -B <branch>
-         # git rev-parse HEAD
+       # if repo doesn't exist: 'git clone repourl'
+       # method 'clean' runs 'git clean -d -f', method fresh runs 'git clean -f -f -d -x'. Only works with mode='full'
+       # git cat-file -e <commit>
+       # git checkout -f <commit>
+       # git checkout -B <branch>
+       # git rev-parse HEAD
        factory.addStep(Git(
                name = "git",
                repourl = repo_url,