| 281 | }, |
| 282 | ) |
| 283 | def spellcheck(ctx: Context, no_clean: bool = False, no_color: bool = False): |
| 284 | if no_clean is False: |
| 285 | ctx.run("make", "clean", cwd="doc/", check=True) |
| 286 | opts = [ |
| 287 | "-W", |
| 288 | "-j", |
| 289 | "auto", |
| 290 | "--keep-going", |
| 291 | ] |
| 292 | if no_color is False: |
| 293 | opts.append("--color") |
| 294 | ctx.run( |
| 295 | "make", |
| 296 | "spelling", |
| 297 | f"SPHINXOPTS={' '.join(opts)}", |
| 298 | cwd="doc/", |
| 299 | check=True, |
| 300 | ) |
| 301 | github_output = os.environ.get("GITHUB_OUTPUT") |
| 302 | if github_output is not None: |
| 303 | with open(github_output, "a", encoding="utf-8") as wfh: |
| 304 | wfh.write("has-artifacts=false\n") |