Skip to content

Enforce repository formatting in GitHub CI (#2023) - #2023

Closed
cortinico wants to merge 3 commits into
mainfrom
export-D119662616
Closed

Enforce repository formatting in GitHub CI (#2023)#2023
cortinico wants to merge 3 commits into
mainfrom
export-D119662616

Conversation

@cortinico

@cortinico cortinico commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary:

Add a dedicated GitHub Actions check for the repository-owned formatter contract and document the same commands for contributors. The job provisions the Java and Python runtimes needed by Yoga’s Kotlin and Python formatters before running yarn format-check.

Differential Revision: D119662616

Summary:
Add a single `yarn format` / `yarn format-check` contract for Yoga JavaScript and documentation, C-family sources, Kotlin, and the two Python maintenance scripts.

Pin clang-format 21.1.2 through a public DotSlash manifest so it matches the current fbsource formatter, and use ktfmt 0.59.0 and Ruff 0.14.0 across internal and public checkouts. Replace the JavaScript workspace clang-format 15 command, which covered only `wasm_bridge.c`, with the repository-wide command.

Generated sources and vendored headers remain excluded.

allow-large-files

Differential Revision: D119662614
Summary: Format the Markdown and GitHub Actions files newly covered by Yoga’s repository-level Prettier command. Keeping this mechanical baseline separate makes the tooling change reviewable and lets the following CI change start from a clean tree.

Differential Revision: D119662615
@meta-cla meta-cla Bot added the CLA Signed label Sep 11, 2026
@meta-codesync

meta-codesync Bot commented Sep 11, 2026

Copy link
Copy Markdown

@cortinico has exported this pull request. If you are a Meta employee, you can view the originating Diff in D119662616.

Summary:
Pull Request resolved: #2023

Add a dedicated GitHub Actions check for the repository-owned formatter contract and document the same commands for contributors. The job provisions the Java and Python runtimes needed by Yoga’s Kotlin and Python formatters before running `yarn format-check`.

Differential Revision: D119662616
@meta-codesync meta-codesync Bot changed the title Enforce repository formatting in GitHub CI Enforce repository formatting in GitHub CI (#2023) Sep 11, 2026
@meta-codesync meta-codesync Bot closed this in f42d532 Sep 11, 2026
@meta-codesync meta-codesync Bot added the Merged label Sep 11, 2026
@meta-codesync

meta-codesync Bot commented Sep 11, 2026

Copy link
Copy Markdown

This pull request has been merged in f42d532.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant