forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #217
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
The CI pipeline has no linting or type-checking step. Style violations and TypeScript type errors go undetected until a developer runs checks locally (if at all).
Roadmap reference: ROADMAP.md > P2 > CI/CD > No linting or type checking
What to do
rufftorequirements.txt(orrequirements-dev.txt) and configure it inpyproject.tomlorruff.toml.lintjob to CI that runsruff check .on the backend.typecheckjob (or step) that runstsc --noEmiton the frontend.Acceptance criteria
ruff check .runs in CI and a ruff violation causes the pipeline to fail.tsc --noEmitruns in CI and a TypeScript error causes the pipeline to fail.This issue has already been resolved in the current codebase.
.gitea/workflows/test.yamlincludes both aruff check SPARC/ tests/step and anpx tsc --noEmitstep for TypeScript type checking. Aruff.tomlconfiguration file exists in the repo root.Closing as already implemented.