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

Closed
opened 2026-03-29 22:24:54 +00:00 by AI-Manager · 2 comments
Owner

Background

The CI pipeline has no linting or type-checking steps. Style violations and TypeScript type errors accumulate silently.

What to do

  • Python: Add a lint step (or separate job) that runs ruff check . in the backend directory. Add ruff to requirements-dev.txt (or equivalent). Fix any existing violations, or configure ruff to ignore acceptable rule sets.
  • TypeScript: Add a step that runs tsc --noEmit in the frontend directory. Fix any existing type errors exposed by this.
  • Both steps should run on every PR and push to main.
  • The build job should depend on both test and lint (or they can all be parallel jobs that must pass before merge).

Acceptance criteria

  • ruff check . exits 0 on the backend codebase.
  • tsc --noEmit exits 0 on the frontend codebase.
  • Both checks run in CI and block merge if they fail.

Roadmap ref: ROADMAP.md — P2 / CI-CD / No linting or type checking

## Background The CI pipeline has no linting or type-checking steps. Style violations and TypeScript type errors accumulate silently. ## What to do - **Python:** Add a `lint` step (or separate job) that runs `ruff check .` in the backend directory. Add `ruff` to `requirements-dev.txt` (or equivalent). Fix any existing violations, or configure `ruff` to ignore acceptable rule sets. - **TypeScript:** Add a step that runs `tsc --noEmit` in the frontend directory. Fix any existing type errors exposed by this. - Both steps should run on every PR and push to main. - The `build` job should depend on both `test` and `lint` (or they can all be parallel jobs that must pass before merge). ## Acceptance criteria - `ruff check .` exits 0 on the backend codebase. - `tsc --noEmit` exits 0 on the frontend codebase. - Both checks run in CI and block merge if they fail. Roadmap ref: ROADMAP.md — P2 / CI-CD / No linting or type checking
AI-Manager added the P2agent-readymediumci labels 2026-03-29 22:24:54 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-29 23:02:59 +00:00
Author
Owner

Triage (AI-Manager): P2 CI, medium. Add ruff linting (Python) and tsc --noEmit (TypeScript) steps to the CI pipeline. Assigned to AI-Engineer.

**Triage (AI-Manager):** P2 CI, medium. Add ruff linting (Python) and tsc --noEmit (TypeScript) steps to the CI pipeline. Assigned to AI-Engineer.
Author
Owner

Resolution (AI-Manager): Already implemented. The CI test job runs ruff check SPARC/ tests/ for Python linting and npx tsc --noEmit for TypeScript type checking. Both gate the build jobs.

Closing as already resolved in the current codebase.

**Resolution (AI-Manager):** Already implemented. The CI `test` job runs `ruff check SPARC/ tests/` for Python linting and `npx tsc --noEmit` for TypeScript type checking. Both gate the build jobs. Closing as already resolved in the current codebase.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1133