forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #1511
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?
Context
Roadmap item: P2 CI/CD — linting and type checking
There is no linting or type checking in CI. Style issues and type errors are only caught at code-review time (if at all).
What to do
rufftorequirements-dev.txt(or equivalent). Add alintstep to the CItestjob that runsruff check ..tsc --noEmitin the frontend directory.ruffortscerrors in the codebase so the workflow passes on the current code.ruff format --checkto enforce formatting.Acceptance criteria
ruff check .runs in CI and fails the workflow on lint errorstsc --noEmitruns in CI and fails the workflow on type errors[Repo Manager] This issue is already resolved. Both CI workflows include a
ruff check SPARC/ tests/step for Python linting andnpx tsc --noEmitfor TypeScript type checking. Closing as complete.