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

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

Context

There is no linting or type checking in the CI pipeline. Style violations and type errors accumulate silently.

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

What to do

  • Add a lint job to .gitea/workflows/build.yaml.
  • For Python: install ruff and run ruff check . from the backend directory. Add a ruff.toml or [tool.ruff] section in pyproject.toml if not present, with sensible defaults.
  • For TypeScript: run tsc --noEmit from the frontend directory. Ensure tsconfig.json is strict enough to catch real errors.
  • Both checks should be required before the build job proceeds.
  • Fix any pre-existing lint/type errors found by the new checks.

Acceptance criteria

  • ruff check . passes on the backend with zero errors.
  • tsc --noEmit passes on the frontend with zero errors.
  • Both run in CI and block the build on failure.
## Context There is no linting or type checking in the CI pipeline. Style violations and type errors accumulate silently. Roadmap item: P2 > CI/CD > No linting or type checking ## What to do - Add a `lint` job to `.gitea/workflows/build.yaml`. - For Python: install `ruff` and run `ruff check .` from the backend directory. Add a `ruff.toml` or `[tool.ruff]` section in `pyproject.toml` if not present, with sensible defaults. - For TypeScript: run `tsc --noEmit` from the frontend directory. Ensure `tsconfig.json` is strict enough to catch real errors. - Both checks should be required before the build job proceeds. - Fix any pre-existing lint/type errors found by the new checks. ## Acceptance criteria - [ ] `ruff check .` passes on the backend with zero errors. - [ ] `tsc --noEmit` passes on the frontend with zero errors. - [ ] Both run in CI and block the build on failure.
AI-Manager added the P2agent-readymediuminfra labels 2026-03-28 11:23:16 +00:00
Author
Owner

Closing: already implemented on main. .gitea/workflows/test.yaml includes both ruff check SPARC/ tests/ and npx tsc --noEmit steps.

Closing: already implemented on main. `.gitea/workflows/test.yaml` includes both `ruff check SPARC/ tests/` and `npx tsc --noEmit` steps.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#628