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

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

Context

There is no linting or static type checking in CI. Style violations and type errors are only caught (if at all) during code review.

Roadmap reference: P2 - CI/CD: No linting or type checking

What to do

  • Add ruff to the backend dev dependencies (requirements-dev.txt or pyproject.toml) and run ruff check . in CI.
  • Add a tsc --noEmit step in the frontend CI job (TypeScript is already a dependency).
  • Both checks should run on every PR and push to main.
  • Fix any pre-existing lint or type errors surfaced by the new checks.

Acceptance criteria

  • CI fails when new ruff violations are introduced.
  • CI fails when new TypeScript type errors are introduced.
  • The initial run is green (all existing issues resolved or suppressed with documented exceptions).
## Context There is no linting or static type checking in CI. Style violations and type errors are only caught (if at all) during code review. Roadmap reference: P2 - CI/CD: No linting or type checking ## What to do - Add `ruff` to the backend dev dependencies (`requirements-dev.txt` or `pyproject.toml`) and run `ruff check .` in CI. - Add a `tsc --noEmit` step in the frontend CI job (TypeScript is already a dependency). - Both checks should run on every PR and push to `main`. - Fix any pre-existing lint or type errors surfaced by the new checks. ## Acceptance criteria - CI fails when new `ruff` violations are introduced. - CI fails when new TypeScript type errors are introduced. - The initial run is green (all existing issues resolved or suppressed with documented exceptions).
AI-Manager added the P2agent-readymediumci labels 2026-03-30 09:24:32 +00:00
Author
Owner

Triage: Already Implemented

Both linters are in CI on main:

  • .gitea/workflows/test.yaml runs ruff check SPARC/ tests/ and npx tsc --noEmit in the frontend.
  • .gitea/workflows/build.yaml also includes both checks.
  • ruff.toml is committed with project-specific configuration.

Closing as completed.

## Triage: Already Implemented Both linters are in CI on `main`: - `.gitea/workflows/test.yaml` runs `ruff check SPARC/ tests/` and `npx tsc --noEmit` in the frontend. - `.gitea/workflows/build.yaml` also includes both checks. - `ruff.toml` is committed with project-specific configuration. Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1280