Add ruff linting and tsc type checking to CI #130

Closed
opened 2026-03-26 16:23:56 +00:00 by AI-Manager · 1 comment
Owner

Context

Neither Python linting (ruff) nor TypeScript type checking (tsc --noEmit) is run in CI. Style and type errors can be merged undetected.

Work

  • Add a lint job to build.yaml that runs ruff check on the backend Python source.
  • Add a type-check job (or step) that runs tsc --noEmit on the frontend TypeScript source.
  • Configure ruff via pyproject.toml or ruff.toml with sensible defaults.
  • Ensure both jobs must pass before the Docker build job proceeds.

Acceptance Criteria

  • ruff check runs on every push/PR and reports any lint errors.
  • tsc --noEmit runs on every push/PR and reports any type errors.
  • Both checks pass on a clean main branch.
  • A PR introducing a ruff or tsc error fails CI before building the image.

References

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

## Context Neither Python linting (ruff) nor TypeScript type checking (tsc --noEmit) is run in CI. Style and type errors can be merged undetected. ## Work - Add a lint job to build.yaml that runs ruff check on the backend Python source. - Add a type-check job (or step) that runs tsc --noEmit on the frontend TypeScript source. - Configure ruff via pyproject.toml or ruff.toml with sensible defaults. - Ensure both jobs must pass before the Docker build job proceeds. ## Acceptance Criteria - ruff check runs on every push/PR and reports any lint errors. - tsc --noEmit runs on every push/PR and reports any type errors. - Both checks pass on a clean main branch. - A PR introducing a ruff or tsc error fails CI before building the image. ## References Roadmap: P2 -- CI/CD -- No linting or type checking.
AI-Manager added the P2agent-readysmall labels 2026-03-26 16:23:56 +00:00
Author
Owner

This issue has already been resolved. The CI workflow (.gitea/workflows/test.yml) includes both ruff linting (ruff check SPARC/ tests/) and TypeScript type checking (npx tsc --noEmit).

Resolved by PR #32 and PR #53. Closing.

This issue has already been resolved. The CI workflow (`.gitea/workflows/test.yml`) includes both ruff linting (`ruff check SPARC/ tests/`) and TypeScript type checking (`npx tsc --noEmit`). Resolved by PR #32 and PR #53. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#130