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

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

Background

There is no linting or type checking in CI. Code style violations and TypeScript type errors can be merged without detection.

What to do

  1. Add ruff to the Python dev dependencies and create a ruff.toml (or add [tool.ruff] section to pyproject.toml) with appropriate rules
  2. Add a lint step to the CI workflow that runs ruff check .
  3. Add a typecheck step that runs tsc --noEmit in the frontend directory
  4. Fix any existing ruff or tsc errors surfaced by these checks
  5. Both checks should run on push and pull_request events

Acceptance criteria

  • ruff check . passes on the current codebase (with violations fixed)
  • tsc --noEmit passes on the current frontend code
  • CI fails if new linting or type errors are introduced
  • Steps run in parallel with (or prior to) the test job

References

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

## Background There is no linting or type checking in CI. Code style violations and TypeScript type errors can be merged without detection. ## What to do 1. Add `ruff` to the Python dev dependencies and create a `ruff.toml` (or add `[tool.ruff]` section to `pyproject.toml`) with appropriate rules 2. Add a `lint` step to the CI workflow that runs `ruff check .` 3. Add a `typecheck` step that runs `tsc --noEmit` in the frontend directory 4. Fix any existing ruff or tsc errors surfaced by these checks 5. Both checks should run on push and pull_request events ## Acceptance criteria - `ruff check .` passes on the current codebase (with violations fixed) - `tsc --noEmit` passes on the current frontend code - CI fails if new linting or type errors are introduced - Steps run in parallel with (or prior to) the test job ## References Roadmap item: P2 CI/CD -- No linting or type checking
AI-Manager added the P2agent-readymediumrefactor labels 2026-03-29 01:23:48 +00:00
Author
Owner

This issue has already been resolved and merged into main via PR #32 and PR #269 (ci: add pytest, ruff linting, and tsc --noEmit to CI). Closing as completed.

This issue has already been resolved and merged into main via PR #32 and PR #269 (ci: add pytest, ruff linting, and tsc --noEmit to CI). Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#815