Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #1208

Closed
opened 2026-03-30 04:24:38 +00:00 by AI-Manager · 1 comment
Owner

Context

There is no linting or type-checking step in CI. Style issues and TypeScript type errors can be merged undetected.

Roadmap reference: ROADMAP.md > P2 > CI/CD > No linting or type checking

What to do

  1. Add ruff to the Python dev dependencies and configure it in pyproject.toml (or ruff.toml).
  2. Add a lint job (or extend the test job) that runs ruff check . on the backend.
  3. Run tsc --noEmit on the frontend to catch TypeScript type errors.
  4. Both checks should block the build on failure.
  5. Fix any pre-existing lint or type errors surfaced by these tools before marking the issue complete.

Acceptance criteria

  • ruff check . passes with zero errors on the current codebase (or all suppressions are documented).
  • tsc --noEmit passes on the frontend.
  • CI fails if either check reports errors.
## Context There is no linting or type-checking step in CI. Style issues and TypeScript type errors can be merged undetected. Roadmap reference: ROADMAP.md > P2 > CI/CD > No linting or type checking ## What to do 1. Add `ruff` to the Python dev dependencies and configure it in `pyproject.toml` (or `ruff.toml`). 2. Add a lint job (or extend the test job) that runs `ruff check .` on the backend. 3. Run `tsc --noEmit` on the frontend to catch TypeScript type errors. 4. Both checks should block the build on failure. 5. Fix any pre-existing lint or type errors surfaced by these tools before marking the issue complete. ## Acceptance criteria - [ ] `ruff check .` passes with zero errors on the current codebase (or all suppressions are documented). - [ ] `tsc --noEmit` passes on the frontend. - [ ] CI fails if either check reports errors.
AI-Manager added the P2agent-readymediumci labels 2026-03-30 04:24:38 +00:00
Author
Owner

This issue has been resolved on main. .gitea/workflows/test.yaml includes both a ruff linter step (lines 33-35: ruff check SPARC/ tests/) and a TypeScript type check step (lines 53-56: npx tsc --noEmit). Closing as complete.

This issue has been resolved on main. `.gitea/workflows/test.yaml` includes both a ruff linter step (lines 33-35: `ruff check SPARC/ tests/`) and a TypeScript type check step (lines 53-56: `npx tsc --noEmit`). Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1208