Skip to content

Commit fa5b782

Browse files
redsun82Copilot
andcommitted
Just: run black over the test runner
Two trailing-whitespace lines and a long call. `misc/just` is outside the black scope in `.pre-commit-config.yaml`, so nothing in CI would have said so. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 850f3c9 commit fa5b782

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎misc/just/codeql_test_run.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def error(message):
4141
print(f"{ERROR}{message}", file=sys.stderr)
4242
raise SystemExit(1)
4343

44+
4445
class _Parser(argparse.ArgumentParser):
4546
"""An `argparse` parser that fails the way the rest of this script does.
4647
@@ -80,7 +81,7 @@ def parse_arguments():
8081
"Using `--codeql=build` or `--codeql=built` requires working "
8182
"with the internal repository"
8283
)
83-
84+
8485
for arg in rest:
8586
if arg.startswith("-"):
8687
args.flags.append(arg)
@@ -97,7 +98,11 @@ def resolve_codeql(args: argparse.Namespace) -> Path:
9798
match args.codeql:
9899
case "built" | "build":
99100
return Path(
100-
SEMMLE_CODE, "target", "intree", f"codeql-{args.language}", "codeql" + suffix
101+
SEMMLE_CODE,
102+
"target",
103+
"intree",
104+
f"codeql-{args.language}",
105+
"codeql" + suffix,
101106
)
102107
case "host":
103108
codeql = shutil.which("codeql" + suffix)
@@ -109,7 +114,7 @@ def resolve_codeql(args: argparse.Namespace) -> Path:
109114
if codeql.is_dir():
110115
codeql /= "codeql" + suffix
111116
return codeql
112-
117+
113118

114119
def main():
115120
# An empty argument can come from a caller interpolating an unset variable.

0 commit comments

Comments
 (0)