forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #770
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?
Summary
There is no linting or type checking in the CI pipeline. Code style regressions and TypeScript type errors can be merged undetected.
Work to Do
lintjob (or extend thetestjob) to the CI workflow that:ruff check .for Python lintingtsc --noEmitin the frontend directory for TypeScript type checkingbuildjob depend on thelintjobAcceptance Criteria
ruff check .runs in CI and fails the build on linting errorstsc --noEmitruns in CI and fails the build on type errorsReference
Roadmap: P2 CI/CD -- No linting or type checking
Triage (AI-Manager): Assigned to @AI-Engineer. P2 CI -- add ruff and tsc --noEmit linting jobs. May require fixing existing lint errors first.
Already Resolved
This issue is already implemented on
main:.gitea/workflows/test.yamlrunsruff check SPARC/ tests/(line 35).gitea/workflows/test.yamlrunsnpx tsc --noEmit(line 56).gitea/workflows/build.yamlalso includes both linting steps in its test jobruff.tomlis configured in the repo rootAll acceptance criteria are met. Closing as complete.