forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #1208
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 step in CI. Style issues and TypeScript type errors can be merged undetected.
Roadmap reference: ROADMAP.md > P2 > CI/CD > No linting or type checking
What to do
ruffto the Python dev dependencies and configure it inpyproject.toml(orruff.toml).ruff check .on the backend.tsc --noEmiton the frontend to catch TypeScript type errors.Acceptance criteria
ruff check .passes with zero errors on the current codebase (or all suppressions are documented).tsc --noEmitpasses on the frontend.This issue has been resolved on main.
.gitea/workflows/test.yamlincludes both a ruff linter step (lines 33-35:ruff check SPARC/ tests/) and a TypeScript type check step (lines 53-56:npx tsc --noEmit). Closing as complete.