Skip to content

Commit 4b91bf5

Browse files
committed
writelines
1 parent 9826d47 commit 4b91bf5

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Tools/build/compute-changes.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88

99
GITHUB_WORKFLOWS_PATH = Path(".github/workflows")
1010
GITHUB_CODEOWNERS_PATH = Path(".github/CODEOWNERS")
11-
CONFIGURATION_FILE_NAMES = frozenset(
12-
{".ruff.toml", "mypy.ini", ".pre-commit-config.yaml"}
13-
)
11+
CONFIGURATION_FILE_NAMES = frozenset({
12+
".ruff.toml",
13+
"mypy.ini",
14+
".pre-commit-config.yaml",
15+
})
1416
SUFFIXES_DOCUMENTATION = frozenset({".rst", ".md"})
1517
SUFFIXES_C_OR_CPP = frozenset({".c", ".h", ".cpp"})
1618

@@ -162,11 +164,13 @@ def write_github_output(outputs: Outputs) -> None:
162164
return
163165

164166
with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as f:
165-
f.write(f"run-cifuzz={bool_lower(outputs.run_ci_fuzz)}\n")
166-
f.write(f"run-docs={bool_lower(outputs.run_docs)}\n")
167-
f.write(f"run-hypothesis={bool_lower(outputs.run_hypothesis)}\n")
168-
f.write(f"run-tests={bool_lower(outputs.run_tests)}\n")
169-
f.write(f"run-win-msi={bool_lower(outputs.run_win_msi)}\n")
167+
f.writelines((
168+
f"run-cifuzz={bool_lower(outputs.run_ci_fuzz)}",
169+
f"run-docs={bool_lower(outputs.run_docs)}",
170+
f"run-hypothesis={bool_lower(outputs.run_hypothesis)}",
171+
f"run-tests={bool_lower(outputs.run_tests)}",
172+
f"run-win-msi={bool_lower(outputs.run_win_msi)}",
173+
))
170174

171175

172176
def bool_lower(value: bool, /) -> str:

0 commit comments

Comments
 (0)