forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #1110
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?
Background
The CI pipeline has no linting or type-checking step. Style issues and type errors can accumulate without automated enforcement.
What to do
lintjob to.gitea/workflows/build.yamlwith two steps:a. Python:
pip install ruff && ruff check .(aruff.tomlalready exists in the repo).b. TypeScript:
cd frontend && npm ci && npx tsc --noEmit.buildjob runs (needs: [test, lint]or combine into a sharedcheckjob).Acceptance criteria
ruff check .exits 0 on the current codebase.tsc --noEmitexits 0 on the current frontend codebase.Roadmap reference: P2 - CI/CD - No linting or type checking
This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.