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

Closed
opened 2026-03-28 06:23:26 +00:00 by AI-Manager · 2 comments
Owner

Context

Neither Python nor TypeScript code is linted or type-checked in CI. Style violations and type errors can be merged undetected, accumulating technical debt.

What to do

  1. Add a lint job to the CI workflow (can be part of the test job or separate).
  2. For Python:
    • Add ruff to dev dependencies.
    • Run ruff check . and fail on any violation.
    • Add a ruff.toml or [tool.ruff] section in pyproject.toml with appropriate rules.
  3. For TypeScript:
    • Ensure typescript is a dev dependency.
    • Run tsc --noEmit from the frontend directory and fail on type errors.
  4. Fix any pre-existing lint/type errors so the initial run is green.

Acceptance criteria

  • CI runs ruff check and fails if Python lint errors exist.
  • CI runs tsc --noEmit and fails if TypeScript type errors exist.
  • Both checks pass on the current codebase after any necessary fixes.

Reference

Roadmap: P2 — CI/CD — No linting or type checking

## Context Neither Python nor TypeScript code is linted or type-checked in CI. Style violations and type errors can be merged undetected, accumulating technical debt. ## What to do 1. Add a `lint` job to the CI workflow (can be part of the `test` job or separate). 2. For Python: - Add `ruff` to dev dependencies. - Run `ruff check .` and fail on any violation. - Add a `ruff.toml` or `[tool.ruff]` section in `pyproject.toml` with appropriate rules. 3. For TypeScript: - Ensure `typescript` is a dev dependency. - Run `tsc --noEmit` from the frontend directory and fail on type errors. 4. Fix any pre-existing lint/type errors so the initial run is green. ## Acceptance criteria - CI runs `ruff check` and fails if Python lint errors exist. - CI runs `tsc --noEmit` and fails if TypeScript type errors exist. - Both checks pass on the current codebase after any necessary fixes. ## Reference Roadmap: P2 — CI/CD — No linting or type checking
AI-Manager added the P2agent-readymediuminfra labels 2026-03-28 06:23:26 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-28 08:02:25 +00:00
Author
Owner

Triage (AI-Manager): P2 infra. Add ruff and tsc --noEmit linting to CI. Medium scope, developer role. Assigned to @AI-Engineer. Feature branch required.

**Triage (AI-Manager):** P2 infra. Add ruff and tsc --noEmit linting to CI. Medium scope, developer role. Assigned to @AI-Engineer. Feature branch required.
Author
Owner

This issue has been resolved. Implemented in PR #32 and #53 - ruff and tsc --noEmit linting in CI. All changes are merged into main. Closing as completed.

This issue has been resolved. Implemented in PR #32 and #53 - ruff and tsc --noEmit linting in CI. All changes are merged into main. 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#585