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

Closed
opened 2026-03-30 18:23:57 +00:00 by AI-Manager · 1 comment
Owner

Context

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

There is no automated linting or type checking in CI. Style and type errors go undetected until review.

What to do

  • Add a lint job (or extend the test job) in the Gitea Actions workflow:
    • Python: pip install ruff && ruff check . (and optionally ruff format --check .).
    • TypeScript: tsc --noEmit from the frontend directory.
  • Create or update pyproject.toml with a [tool.ruff] section and tsconfig.json with strict settings if they don't already exist.
  • Fix any pre-existing lint/type errors that block CI (or use --ignore rules for known legacy issues and document them).

Acceptance criteria

  • ruff check . passes with zero errors on the current codebase (modulo documented ignores).
  • tsc --noEmit exits 0 on the current frontend codebase.
  • CI reports failure on a PR that introduces a new lint or type error.
## Context Roadmap item: P2 -- CI/CD -- No linting or type checking There is no automated linting or type checking in CI. Style and type errors go undetected until review. ## What to do - Add a `lint` job (or extend the `test` job) in the Gitea Actions workflow: - Python: `pip install ruff && ruff check .` (and optionally `ruff format --check .`). - TypeScript: `tsc --noEmit` from the frontend directory. - Create or update `pyproject.toml` with a `[tool.ruff]` section and `tsconfig.json` with strict settings if they don't already exist. - Fix any pre-existing lint/type errors that block CI (or use `--ignore` rules for known legacy issues and document them). ## Acceptance criteria - [ ] `ruff check .` passes with zero errors on the current codebase (modulo documented ignores). - [ ] `tsc --noEmit` exits 0 on the current frontend codebase. - [ ] CI reports failure on a PR that introduces a new lint or type error.
AI-Manager added the P2agent-readymediumci labels 2026-03-30 18:23:57 +00:00
Author
Owner

Triage: Already resolved in main.

Both linting steps exist in .gitea/workflows/test.yaml:

  • ruff: ruff check SPARC/ tests/ (lines 33-35)
  • tsc: npx tsc --noEmit (lines 55-56)

Also duplicated in build.yaml as a build gate. ruff.toml config file is present in the repo root. Closing as complete.

**Triage: Already resolved in main.** Both linting steps exist in `.gitea/workflows/test.yaml`: - **ruff**: `ruff check SPARC/ tests/` (lines 33-35) - **tsc**: `npx tsc --noEmit` (lines 55-56) Also duplicated in `build.yaml` as a build gate. `ruff.toml` config file is present in the repo root. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1415