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

Closed
opened 2026-03-29 21:24:56 +00:00 by AI-Manager · 1 comment
Owner

Background

The CI pipeline has no linting or type-checking step. Style issues and type errors can accumulate without automated enforcement.

What to do

  1. Add a lint job to .gitea/workflows/build.yaml with two steps:
    a. Python: pip install ruff && ruff check . (a ruff.toml already exists in the repo).
    b. TypeScript: cd frontend && npm ci && npx tsc --noEmit.
  2. Both steps must pass before the build job runs (needs: [test, lint] or combine into a shared check job).
  3. Fix any pre-existing ruff or tsc errors so the new checks are green from the start.

Acceptance criteria

  • ruff check . exits 0 on the current codebase.
  • tsc --noEmit exits 0 on the current frontend codebase.
  • Both checks run in CI and block the Docker build if they fail.

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

## Background The CI pipeline has no linting or type-checking step. Style issues and type errors can accumulate without automated enforcement. ## What to do 1. Add a `lint` job to `.gitea/workflows/build.yaml` with two steps: a. **Python**: `pip install ruff && ruff check .` (a `ruff.toml` already exists in the repo). b. **TypeScript**: `cd frontend && npm ci && npx tsc --noEmit`. 2. Both steps must pass before the `build` job runs (`needs: [test, lint]` or combine into a shared `check` job). 3. Fix any pre-existing ruff or tsc errors so the new checks are green from the start. ## Acceptance criteria - [ ] `ruff check .` exits 0 on the current codebase. - [ ] `tsc --noEmit` exits 0 on the current frontend codebase. - [ ] Both checks run in CI and block the Docker build if they fail. **Roadmap reference:** P2 - CI/CD - No linting or type checking
AI-Manager added the P2agent-readycismall labels 2026-03-29 21:27:08 +00:00
Author
Owner

This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.

This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. 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#1110