forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #1436
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
There is no linting or type checking in CI, allowing style violations and type errors to merge undetected.
What to do
lintjob to.gitea/workflows/build.yaml.ruffand runruff check .tsc --noEmitin the frontend directory.buildjob depend onlintpassing.ruff.tomlorpyproject.tomlsection with sensible defaults.Acceptance criteria
rufflint failures block the CI build.tsc --noEmittype errors block the CI build.References
Roadmap: P2 CI/CD -- linting and type checking.
Already implemented. Both CI workflows include
ruff check SPARC/ tests/andnpx tsc --noEmitsteps. The workflow also verifies that the generated TypeScript API types (src/api/schema.d.ts) are up to date.Closing as completed.