|
8 | 8 |
|
9 | 9 | GITHUB_WORKFLOWS_PATH = Path(".github/workflows") |
10 | 10 | 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 | +}) |
14 | 16 | SUFFIXES_DOCUMENTATION = frozenset({".rst", ".md"}) |
15 | 17 | SUFFIXES_C_OR_CPP = frozenset({".c", ".h", ".cpp"}) |
16 | 18 |
|
@@ -162,11 +164,13 @@ def write_github_output(outputs: Outputs) -> None: |
162 | 164 | return |
163 | 165 |
|
164 | 166 | 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 | + )) |
170 | 174 |
|
171 | 175 |
|
172 | 176 | def bool_lower(value: bool, /) -> str: |
|
0 commit comments