Skip to content

runtime: deno fmt the package and gate it (just fmt-check) - #316

Merged
lannbot merged 1 commit into
mainfrom
chore/fmt-runtime
Sep 8, 2026
Merged

runtime: deno fmt the package and gate it (just fmt-check)#316
lannbot merged 1 commit into
mainfrom
chore/fmt-runtime

Conversation

@lannbot

@lannbot lannbot commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #315's report. The runtime had no formatter gate anywhere (justfile, CI, or deno.json) and 124 of 214 files disagreed with stock deno fmt. This is the one-time reformat plus the gate that keeps it that way.

  • just fmt-check = cd runtime && deno fmt --check; a dependency of check and gates and a step of gha::core (cheap, runs right after the version guards).
  • runtime/deno.json gains an fmt.exclude for the generated bindgen snapshots and envelopes (tests/bindgen/generated, tests/bindgen/fixtures) and the generator's output (tests/fixtures): generated artifacts are not for hand formatting, and reformatting them would drift from their generators.
  • suspending_imports_test.ts: dprint rewrites the @(suspending as any) decorator into @suspending as any, which does not parse. Bound the untyped alias to a const and decorate with that; the test's assertion is unchanged.

Everything else is whitespace/line-wrap only. just test-runtime: 739 passed, 0 failed. deno.lock untouched. Scope is the runtime package only; the other workspace members are unchanged (they can follow the same pattern if wanted).

Automerge armed.

The runtime had no formatter gate and 124 of 214 files disagreed with
stock `deno fmt`. One-time reformat, then keep it that way:

- `just fmt-check` (`cd runtime && deno fmt --check`), a dependency of
  `check` and `gates` and a step of `gha::core`.
- runtime/deno.json excludes the generated bindgen snapshots and
  envelopes (tests/bindgen/generated, tests/bindgen/fixtures) and the
  generator's output (tests/fixtures): generated artifacts are not for
  hand formatting.
- suspending_imports_test.ts: the `@(suspending as any)` decorator
  spelling is rewritten by dprint into invalid syntax; bind the untyped
  alias to a const and decorate with that instead.

Whitespace-only otherwise; `just test-runtime` 739 passed.
@lannbot
lannbot enabled auto-merge September 8, 2026 02:53
@lannbot
lannbot merged commit 509b5f0 into main Sep 8, 2026
4 checks passed
@lannbot
lannbot deleted the chore/fmt-runtime branch September 8, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants