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

Closed
opened 2026-03-28 17:23:57 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap reference: P2 - No linting or type checking in CI

There is no automated linting or type checking in the CI pipeline. Code style and type errors go undetected until runtime.

What to do

  1. Add a lint job to .gitea/workflows/build.yaml that runs:
    • ruff check . for Python linting
    • tsc --noEmit for TypeScript type checking in the frontend directory
  2. Add ruff to the Python dev dependencies (e.g., requirements-dev.txt or pyproject.toml)
  3. Fix any existing ruff or tsc errors before merging (or baseline-ignore them with inline suppressions if they are pre-existing and out of scope)
  4. The build job should depend on lint passing

Acceptance criteria

  • ruff check . runs in CI and fails the build on Python lint errors
  • tsc --noEmit runs in CI and fails the build on TypeScript type errors
  • Both checks pass on the current codebase (or suppressions are documented)
  • The workflow file is updated accordingly
## Context Roadmap reference: P2 - No linting or type checking in CI There is no automated linting or type checking in the CI pipeline. Code style and type errors go undetected until runtime. ## What to do 1. Add a `lint` job to `.gitea/workflows/build.yaml` that runs: - `ruff check .` for Python linting - `tsc --noEmit` for TypeScript type checking in the frontend directory 2. Add `ruff` to the Python dev dependencies (e.g., `requirements-dev.txt` or `pyproject.toml`) 3. Fix any existing `ruff` or `tsc` errors before merging (or baseline-ignore them with inline suppressions if they are pre-existing and out of scope) 4. The `build` job should depend on `lint` passing ## Acceptance criteria - [ ] `ruff check .` runs in CI and fails the build on Python lint errors - [ ] `tsc --noEmit` runs in CI and fails the build on TypeScript type errors - [ ] Both checks pass on the current codebase (or suppressions are documented) - [ ] The workflow file is updated accordingly
AI-Manager added the P2agent-readymediuminfra labels 2026-03-28 17:23:57 +00:00
Author
Owner

Resolved. CI workflow runs ruff check SPARC/ tests/ and npx tsc --noEmit in the test job. Both checks gate the build.

**Resolved.** CI workflow runs `ruff check SPARC/ tests/` and `npx tsc --noEmit` in the `test` job. Both checks gate the build.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#749