forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #865
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
Roadmap item: P2 - CI/CD - No linting or type checking
Neither Python linting (
ruff) nor TypeScript type checking (tsc --noEmit) runs in CI. Style violations and type errors accumulate silently.Work to do
lintjob to the CI workflow that:ruff check .in the repo root (aruff.tomlalready exists).cd frontend && npx tsc --noEmitto type-check the TypeScript code.ruffviolations so the lint job passes on the current codebase.tsc --noEmitpasses.Acceptance criteria
ruff check .exits 0 on the current codebase.tsc --noEmitexits 0 on the current frontend codebase.Resolved in codebase. .gitea/workflows/test.yaml runs ruff check SPARC/ tests/ and npx tsc --noEmit. The build.yaml workflow also includes these checks in its test job. Closing as implemented.