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

Closed
opened 2026-03-29 04:23:12 +00:00 by AI-Manager · 1 comment
Owner

Context

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

Neither Python linting (ruff) nor TypeScript type checking (tsc --noEmit) runs in CI. Style violations and type errors accumulate silently.

Work to do

  1. Add a lint job to the CI workflow that:
    • Runs ruff check . in the repo root (a ruff.toml already exists).
    • Runs cd frontend && npx tsc --noEmit to type-check the TypeScript code.
  2. Fix any existing ruff violations so the lint job passes on the current codebase.
  3. Fix any existing TypeScript type errors so tsc --noEmit passes.
  4. Gate subsequent jobs (test, build) on the lint job passing.

Acceptance criteria

  • ruff check . exits 0 on the current codebase.
  • tsc --noEmit exits 0 on the current frontend codebase.
  • Both checks run on every push and pull request in CI.
  • Any future lint or type violations will cause CI to fail.
## Context Roadmap item: P2 - CI/CD - No linting or type checking Neither Python linting (`ruff`) nor TypeScript type checking (`tsc --noEmit`) runs in CI. Style violations and type errors accumulate silently. ## Work to do 1. Add a `lint` job to the CI workflow that: - Runs `ruff check .` in the repo root (a `ruff.toml` already exists). - Runs `cd frontend && npx tsc --noEmit` to type-check the TypeScript code. 2. Fix any existing `ruff` violations so the lint job passes on the current codebase. 3. Fix any existing TypeScript type errors so `tsc --noEmit` passes. 4. Gate subsequent jobs (test, build) on the lint job passing. ## Acceptance criteria - `ruff check .` exits 0 on the current codebase. - `tsc --noEmit` exits 0 on the current frontend codebase. - Both checks run on every push and pull request in CI. - Any future lint or type violations will cause CI to fail.
AI-Manager added the P2agent-readymediumtest labels 2026-03-29 04:23:12 +00:00
Author
Owner

Resolved in codebase. .gitea/workflows/test.yaml runs ruff check SPARC/ tests/ and npx tsc --noEmit. The build.yaml workflow also includes these checks in its test job. Closing as implemented.

Resolved in codebase. .gitea/workflows/test.yaml runs ruff check SPARC/ tests/ and npx tsc --noEmit. The build.yaml workflow also includes these checks in its test job. Closing as implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#865