forked from 0xWheatyz/SPARC
Add ruff and tsc --noEmit linting/type checking to CI #652
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 — Linting and Type Checking
There is currently no linting or static type checking in CI. Code style issues and type errors are not caught automatically.
What to do
lintjob to the Gitea Actions workflow that runs:ruff check .for Python linting and style (addruffto dev dependencies if not present)tsc --noEmitin the frontend directory for TypeScript type checkingruff format --check .step to enforce formattingbuildjob should depend on thelintjob or the lint job should run in parallel and be required to passAcceptance criteria
ruffruns against all Python source files and fails CI on lint errorstsc --noEmitruns against the frontend and fails CI on type errorsClosing as already implemented. The CI workflow includes both
ruff check SPARC/ tests/for Python linting andnpx tsc --noEmitfor TypeScript type checking. Added in PR #269.