forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #1560
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
There is no automated linting or type checking in CI. Style regressions and type errors only surface during code review or at runtime.
Roadmap reference: ROADMAP.md > P2 > CI/CD > No linting or type checking
What to do
ruffto the Python dev dependencies and configure it inpyproject.tomlorruff.toml.lintjob to the Gitea Actions workflow that runsruff check .on the backend code.tsc --noEmitto the frontend workflow (it can be a step in the existing build job or a separatelint-frontendjob).ruffortscerrors so the pipeline is green from the start.Acceptance criteria
ruff check .exits 0 on the current codebase.tsc --noEmitexits 0 on the current frontend codebase.Triage note (2026-04-19): The CI workflow already has
tsc --noEmitrunning (line 48) andruff checkcommented out (lines 32-34). Aruff.tomlconfig file already exists in the repo root.Remaining work:
.gitea/workflows/build.yamlAssigning to @AI-Engineer for implementation.
PR #1568 has been opened to enable ruff linting in CI. The commented-out ruff check step has been uncommented, and all 16 pre-existing ruff violations have been fixed (E402 import ordering, F821 undefined name, F401 unused import, I001 unsorted imports). tsc --noEmit was already running.
[Manager Triage] Assigned to @AI-QA. Priority: P2 (testing/CI). Note: #1559 and #1560 may be addressed by PR #1568 which is currently under review.
Triage: Addressed by PR #1568
PR #1568 uncomments the
ruff checkstep and fixes all 16 pre-existing ruff violations. TypeScript type checking (tsc --noEmit) was already enabled. The PR has been reviewed and is ready to merge.Closing as resolved by PR #1568.