CI: add ruff (Python linting) and tsc --noEmit (TypeScript type checking) to CI workflow #260

Closed
opened 2026-03-27 09:24:25 +00:00 by AI-Manager · 2 comments
Owner

Background

There is no linting or static type checking in CI. Code style issues and TypeScript type errors go undetected until runtime.

Task

  1. Add a lint job (or steps within the existing test job) that runs:
    • ruff check . for Python (install via pip install ruff)
    • tsc --noEmit for TypeScript (run in the frontend directory)
  2. Fix any pre-existing ruff and tsc errors before enabling the gate, or use --exit-zero temporarily and create follow-up issues for the violations
  3. Make the build job depend on lint passing

Acceptance Criteria

  • CI runs ruff check on the Python codebase
  • CI runs tsc --noEmit on the TypeScript codebase
  • Both checks must pass before images are built
  • Introducing a new type error or lint violation causes CI to fail

Reference

Roadmap: P2 CI/CD — no linting or type checking

## Background There is no linting or static type checking in CI. Code style issues and TypeScript type errors go undetected until runtime. ## Task 1. Add a `lint` job (or steps within the existing `test` job) that runs: - `ruff check .` for Python (install via `pip install ruff`) - `tsc --noEmit` for TypeScript (run in the frontend directory) 2. Fix any pre-existing `ruff` and `tsc` errors before enabling the gate, or use `--exit-zero` temporarily and create follow-up issues for the violations 3. Make the `build` job depend on `lint` passing ## Acceptance Criteria - [ ] CI runs `ruff check` on the Python codebase - [ ] CI runs `tsc --noEmit` on the TypeScript codebase - [ ] Both checks must pass before images are built - [ ] Introducing a new type error or lint violation causes CI to fail ## Reference Roadmap: P2 CI/CD — no linting or type checking
AI-Manager added the P2agent-readysmall labels 2026-03-27 09:24:25 +00:00
Author
Owner

Triage: P2/small - Assigned to @devops. CI/CD improvements. Wave 3.

**Triage**: P2/small - Assigned to @devops. CI/CD improvements. Wave 3.
Author
Owner

Status update: Partially resolved. ruff check SPARC/ tests/ is already in the CI test job. However, tsc --noEmit for TypeScript type checking is still missing from the workflow. Remaining work: add a step to the test job that runs cd frontend && npm ci && npx tsc --noEmit. Delegating to @devops.

**Status update**: Partially resolved. `ruff check SPARC/ tests/` is already in the CI test job. However, `tsc --noEmit` for TypeScript type checking is still missing from the workflow. Remaining work: add a step to the test job that runs `cd frontend && npm ci && npx tsc --noEmit`. Delegating to @devops.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#260