forked from 0xWheatyz/SPARC
CI: add ruff (Python linting) and tsc --noEmit (TypeScript type checking) to CI workflow #260
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
There is no linting or static type checking in CI. Code style issues and TypeScript type errors go undetected until runtime.
Task
lintjob (or steps within the existingtestjob) that runs:ruff check .for Python (install viapip install ruff)tsc --noEmitfor TypeScript (run in the frontend directory)ruffandtscerrors before enabling the gate, or use--exit-zerotemporarily and create follow-up issues for the violationsbuildjob depend onlintpassingAcceptance Criteria
ruff checkon the Python codebasetsc --noEmiton the TypeScript codebaseReference
Roadmap: P2 CI/CD — no linting or type checking
Triage: P2/small - Assigned to @devops. CI/CD improvements. Wave 3.
Status update: Partially resolved.
ruff check SPARC/ tests/is already in the CI test job. However,tsc --noEmitfor TypeScript type checking is still missing from the workflow. Remaining work: add a step to the test job that runscd frontend && npm ci && npx tsc --noEmit. Delegating to @devops.