chore(subgraph): add biome config and format codebase#638
Open
silent-cipher wants to merge 3 commits into
Open
chore(subgraph): add biome config and format codebase#638silent-cipher wants to merge 3 commits into
silent-cipher wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Biome tooling/config for the apps/subgraph package, reformats the subgraph code/tests accordingly, and introduces a subgraph-focused GitHub Actions workflow to run codegen/tests/builds for both calibration and mainnet.
Changes:
- Add Biome config + package scripts for formatting/linting/checks in
apps/subgraph. - Add
.github/workflows/subgraph.ymlto run subgraph tests and build both network manifests on PRs touching the subgraph. - Apply formatting/cleanup changes across subgraph AssemblyScript tests/helpers and a small
DataSetStatusrefactor.
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Adds @biomejs/biome to the workspace lockfile. |
| apps/subgraph/tests/pdp-verifier.test.ts | Formatting-only updates (imports/strings). |
| apps/subgraph/tests/pdp-verifier-utils.ts | Formatting + minor refactors in test event builders. |
| apps/subgraph/tests/fwss.test.ts | Formatting-only updates. |
| apps/subgraph/tests/fwss-utils.ts | Formatting + minor refactors in test event builders. |
| apps/subgraph/tests/dataset-status.test.ts | Formatting-only updates (imports). |
| apps/subgraph/src/types.ts | Refactors DataSetStatus from static-only class to namespace constants. |
| apps/subgraph/src/helpers.ts | Minor formatting/refactor changes (template strings, const). |
| apps/subgraph/src/fwss.ts | Minor formatting change to logging call. |
| apps/subgraph/scripts/sync-abis.mjs | Import ordering formatting. |
| apps/subgraph/scripts/check-networks.test.mjs | Formatting/consistency tweaks to assertions and object keys. |
| apps/subgraph/package.json | Adds Biome scripts and adjusts build/test scripts. |
| apps/subgraph/biome.json | Introduces subgraph-specific Biome overrides. |
| .github/workflows/subgraph.yml | Adds a subgraph-scoped CI workflow (tests + builds for both networks). |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #498