forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #628
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
There is no linting or type checking in the CI pipeline. Style violations and type errors accumulate silently.
Roadmap item: P2 > CI/CD > No linting or type checking
What to do
lintjob to.gitea/workflows/build.yaml.ruffand runruff check .from the backend directory. Add aruff.tomlor[tool.ruff]section inpyproject.tomlif not present, with sensible defaults.tsc --noEmitfrom the frontend directory. Ensuretsconfig.jsonis strict enough to catch real errors.Acceptance criteria
ruff check .passes on the backend with zero errors.tsc --noEmitpasses on the frontend with zero errors.Closing: already implemented on main.
.gitea/workflows/test.yamlincludes bothruff check SPARC/ tests/andnpx tsc --noEmitsteps.