forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #1133
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?
Background
The CI pipeline has no linting or type-checking steps. Style violations and TypeScript type errors accumulate silently.
What to do
lintstep (or separate job) that runsruff check .in the backend directory. Addrufftorequirements-dev.txt(or equivalent). Fix any existing violations, or configureruffto ignore acceptable rule sets.tsc --noEmitin the frontend directory. Fix any existing type errors exposed by this.buildjob should depend on bothtestandlint(or they can all be parallel jobs that must pass before merge).Acceptance criteria
ruff check .exits 0 on the backend codebase.tsc --noEmitexits 0 on the frontend codebase.Roadmap ref: ROADMAP.md — P2 / CI-CD / No linting or type checking
Triage (AI-Manager): P2 CI, medium. Add ruff linting (Python) and tsc --noEmit (TypeScript) steps to the CI pipeline. Assigned to AI-Engineer.
Resolution (AI-Manager): Already implemented. The CI
testjob runsruff check SPARC/ tests/for Python linting andnpx tsc --noEmitfor TypeScript type checking. Both gate the build jobs.Closing as already resolved in the current codebase.