Skip to content

chore: format the repo and enforce it in CI#87

Merged
Aayam Bansal (aayambansal) merged 3 commits into
mainfrom
chore/format
Jul 5, 2026
Merged

chore: format the repo and enforce it in CI#87
Aayam Bansal (aayambansal) merged 3 commits into
mainfrom
chore/format

Conversation

@aayambansal

Copy link
Copy Markdown
Member

Fixes #35.

bun run format:check failed on 1300+ files because nothing ever enforced it and .prettierignore only excluded one file. This PR:

  • extends .prettierignore to generated output (tooling/sdk/js/src/*/gen/, openapi.json, the models snapshot), build dirs, *.mdx (prettier's mdx parser is deprecated and can mangle JSX-in-markdown), and backend/cli/skills/ (curated templates that agents consume verbatim — format churn there is content churn)
  • runs prettier --write once over everything else (175 files, purely mechanical)
  • adds a Format job to CI so it can't drift again

Verified after the reformat: backend suite 852 pass / 0 fail, typecheck clean, workspace + docs + landing builds all pass.

.prettierignore now covers generated output (SDK gen, openapi.json,
models snapshot), build dirs, mdx (prettier's mdx parser is
deprecated), and the curated skill content agents consume verbatim.
One prettier --write over everything else, and a Format job in CI so
the tree can't drift again — format:check had been failing on 1300+
files with nothing enforcing it.
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscience Ready Ready Preview, Comment Jul 5, 2026 12:17pm

Request Review

Comment thread backend/cli/src/science/connectors/pathways/util.ts Fixed
Comment thread frontend/workspace/src/thesis/ThesisCanvas.tsx Fixed
…uild output

CodeQL on the format pass surfaced two pre-existing defects: stripTags
removed HTML tags in a single pass, so nested fragments could
reassemble into a tag (incomplete-multi-character-sanitization); and
the thesis repo link replaced 'github.com/' with itself. stripTags now
re-strips until stable; the dead replace is gone.
Comment thread backend/cli/src/science/connectors/pathways/util.ts Fixed
The recursive form is functionally equivalent but CodeQL's
incomplete-multi-character-sanitization check only recognizes the
loop-until-no-change idiom as complete.
@aayambansal Aayam Bansal (aayambansal) merged commit c170322 into main Jul 5, 2026
12 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the chore/format branch July 5, 2026 12:20
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.

format:check fails on 1300+ files and .prettierignore only excludes sst-env.d.ts

2 participants