Skip to content

Enforce formatting on *.{md,js,html,yml}, non-blocking edition#9297

Merged
ErichDonGubler merged 4 commits intogfx-rs:trunkfrom
erichdongubler-mozilla:fmt-md-js-html-yml
Mar 25, 2026
Merged

Enforce formatting on *.{md,js,html,yml}, non-blocking edition#9297
ErichDonGubler merged 4 commits intogfx-rs:trunkfrom
erichdongubler-mozilla:fmt-md-js-html-yml

Conversation

@ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Mar 24, 2026

Connections

Spurred by discussion at #9269 (CC @andyleiserson, @cwfitzgerald): #9269 (review)

Description

Add a check to CI that checks formatting of these files. If they get reformatted, fail.

Note that this is not intended to become a required check. This is just hoping to preempt formatting divergences faster for attentive maintainers, rather than discovering them when other work is being done. 😭

Recommended review experience is commit-by-commit.

Testing

CI!

Checklist

@ErichDonGubler ErichDonGubler changed the title Fmt md js html yml Enforce formatting on *.{md,js,html,yml}, non-blocking edition Mar 24, 2026
@@ -1,4 +1,5 @@
**/*.frag
**/*.vert
deno_webgpu/**/*.js
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: Hey @crowlKats, I think it might be interesting for us to enforce this formatting for deno_webgpu, but I didn't want to conflict with any style enforcement that deno might have. Would it be a problem if we, say, implemented 9300599 and squashed it into this?

@ErichDonGubler ErichDonGubler force-pushed the fmt-md-js-html-yml branch 2 times, most recently from 3399657 to ab29c2a Compare March 24, 2026 23:03
@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler force-pushed the fmt-md-js-html-yml branch 3 times, most recently from fcd0334 to 131a6e9 Compare March 24, 2026 23:27
@ErichDonGubler

This comment was marked as resolved.

@cwfitzgerald cwfitzgerald self-assigned this Mar 25, 2026
@cwfitzgerald
Copy link
Member

In the meeting, we have resolved to have this be a required check.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After our discussion, could you merge the CI job into the other format job?

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually going to approve with nits rather than rc with nits, so the following + merging jobs.

@ErichDonGubler ErichDonGubler force-pushed the fmt-md-js-html-yml branch 3 times, most recently from 0bcbfe3 to 225b1e1 Compare March 25, 2026 17:57
This actually may enforce the format of other files than these, but we
don't use them, so far as I'm aware. If we want to opt out of other
formats later, that's what `.prettierignore` is for.
@ErichDonGubler ErichDonGubler enabled auto-merge (rebase) March 25, 2026 18:25
@ErichDonGubler ErichDonGubler merged commit c04119a into gfx-rs:trunk Mar 25, 2026
58 checks passed
@ErichDonGubler ErichDonGubler deleted the fmt-md-js-html-yml branch March 25, 2026 18:46
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