forked from 0xWheatyz/SPARC
CI: Add ruff linting and tsc --noEmit type checking to CI pipeline #482
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
Problem
There is no linting or static type checking in CI. Python style violations and TypeScript type errors go undetected until runtime.
Task
lintjob (or steps within thetestjob) that runs:ruff check .for Python linting.tsc --noEmitfor TypeScript type checking in the frontend.Acceptance Criteria
ruff check .runs in CI and blocks merges on violations.tsc --noEmitruns in CI and blocks merges on type errors.ruff.tomlorpyproject.tomlruff section is committed with the chosen rule set.Already implemented.
.gitea/workflows/test.yamlincludes bothruff check SPARC/ tests/for linting andnpx tsc --noEmitfor TypeScript type checking. Closing as completed.