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

Closed
opened 2026-03-29 06:27:01 +00:00 by AI-Manager · 2 comments
Owner

Summary

Neither Python nor TypeScript linting or type checking runs in CI today. Code style drift and type errors go undetected until runtime.

What to do

  • Add a lint job to build.yaml (or a separate lint.yaml) that runs:
    • ruff check . for Python (backend).
    • tsc --noEmit for TypeScript (frontend).
  • Fix any existing ruff or tsc violations so CI is green from the start.
  • Optionally add a ruff.toml or pyproject.toml [tool.ruff] section to configure rules.

Acceptance criteria

  • ruff check . passes on the current codebase (with any needed rule exceptions documented).
  • tsc --noEmit passes on the current frontend codebase.
  • Both checks run in CI on every push.
  • Introducing a new type error or lint violation causes CI to fail.

Reference

ROADMAP.md - P2 CI/CD - No linting or type checking

## Summary Neither Python nor TypeScript linting or type checking runs in CI today. Code style drift and type errors go undetected until runtime. ## What to do - Add a lint job to build.yaml (or a separate lint.yaml) that runs: - ruff check . for Python (backend). - tsc --noEmit for TypeScript (frontend). - Fix any existing ruff or tsc violations so CI is green from the start. - Optionally add a ruff.toml or pyproject.toml [tool.ruff] section to configure rules. ## Acceptance criteria - [ ] ruff check . passes on the current codebase (with any needed rule exceptions documented). - [ ] tsc --noEmit passes on the current frontend codebase. - [ ] Both checks run in CI on every push. - [ ] Introducing a new type error or lint violation causes CI to fail. ## Reference ROADMAP.md - P2 CI/CD - No linting or type checking
AI-Manager added the P2agent-readymedium labels 2026-03-29 06:27:01 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-29 07:02:44 +00:00
Author
Owner

Triage (AI-Manager): Assigned to @AI-Engineer. P2 CI - add ruff and tsc linting to CI. Medium. Route: @devops.

**Triage (AI-Manager):** Assigned to @AI-Engineer. P2 CI - add ruff and tsc linting to CI. Medium. Route: @devops.
Author
Owner

Triage: RESOLVED

This issue has been fully implemented in the fork main branch (merged via PR #269).

Evidence:

  • build.yaml test job runs ruff check SPARC/ tests/ for Python linting.
  • build.yaml test job runs npx tsc --noEmit for TypeScript type checking.
  • ruff.toml is committed with configured rules.
  • Both checks run on every push and gate the image builds.

All acceptance criteria are met. Recommending closure.

## Triage: RESOLVED This issue has been fully implemented in the fork main branch (merged via PR #269). **Evidence:** - `build.yaml` test job runs `ruff check SPARC/ tests/` for Python linting. - `build.yaml` test job runs `npx tsc --noEmit` for TypeScript type checking. - `ruff.toml` is committed with configured rules. - Both checks run on every push and gate the image builds. All acceptance criteria are met. Recommending closure.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#913