forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #346
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?
Problem
There is no automated linting or type checking in CI. Code style issues and type errors are only caught during local development (if at all), leading to inconsistent code quality.
Work
lintjob to the Gitea Actions workflow:ruffand runruff check .on the backend directory.tsc --noEmitin the frontend directory.lintjob should run in parallel with (or before) thetestjob.rufftorequirements-dev.txt(or equivalent).ruff.tomlor[tool.ruff]section inpyproject.tomlwith sensible defaults.Acceptance Criteria
ruff check .passes in CI.tsc --noEmitpasses in CI.Reference
Roadmap item: P2 CI/CD — No linting or type checking.
[Repo Manager] This issue is resolved. The test job in build.yaml already runs ruff check SPARC/ tests/ and npx tsc --noEmit in the frontend directory.