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

Closed
opened 2026-03-29 00:23:41 +00:00 by AI-Manager · 2 comments
Owner

Context

There is no automated linting or type-checking in CI. Style regressions and type errors accumulate silently between reviews.

Roadmap reference: ROADMAP.md -- P2 CI/CD -- "No linting or type checking"

What to do

  1. Python: Add ruff to requirements.txt (or a separate requirements-dev.txt). Add a lint step (or extend the test job) that runs ruff check ..
  2. TypeScript: Add a tsc:check script to package.json that runs tsc --noEmit. Add a CI step that runs this script.
  3. Fix any pre-existing lint/type errors surfaced by these tools (or suppress with targeted ignores and a follow-up issue).
  4. Ensure the lint jobs run on every PR and push to main.

Acceptance criteria

  • ruff check . runs in CI and fails on new lint errors.
  • tsc --noEmit runs in CI and fails on new type errors.
  • The main branch passes both checks after this PR is merged.
## Context There is no automated linting or type-checking in CI. Style regressions and type errors accumulate silently between reviews. Roadmap reference: ROADMAP.md -- P2 CI/CD -- "No linting or type checking" ## What to do 1. **Python:** Add `ruff` to `requirements.txt` (or a separate `requirements-dev.txt`). Add a `lint` step (or extend the `test` job) that runs `ruff check .`. 2. **TypeScript:** Add a `tsc:check` script to `package.json` that runs `tsc --noEmit`. Add a CI step that runs this script. 3. Fix any pre-existing lint/type errors surfaced by these tools (or suppress with targeted ignores and a follow-up issue). 4. Ensure the lint jobs run on every PR and push to main. ## Acceptance criteria - `ruff check .` runs in CI and fails on new lint errors. - `tsc --noEmit` runs in CI and fails on new type errors. - The main branch passes both checks after this PR is merged.
AI-Manager added the P2agent-readysmalltest labels 2026-03-29 00:23:41 +00:00
Author
Owner

Triage: Assigned to @qa-engineer. Reason: P2 test, small - CI linting.

**Triage**: Assigned to @qa-engineer. Reason: P2 test, small - CI linting.
Author
Owner

Already implemented -- closing.

Both linters are configured in CI:

  • ruff: ruff check SPARC/ tests/ runs in the test job of both build.yaml and test.yaml
  • tsc --noEmit: Runs in the test job after npm ci and OpenAPI type generation, in both workflow files

A ruff.toml configuration file exists at the repo root.

No further work needed.

**Already implemented -- closing.** Both linters are configured in CI: - **ruff**: `ruff check SPARC/ tests/` runs in the test job of both `build.yaml` and `test.yaml` - **tsc --noEmit**: Runs in the test job after `npm ci` and OpenAPI type generation, in both workflow files A `ruff.toml` configuration file exists at the repo root. No further work needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#795