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

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

Summary

There is no linting or type checking in CI, allowing style violations and type errors to merge undetected.

What to do

  • Add a lint job to .gitea/workflows/build.yaml.
  • For Python: install ruff and run ruff check .
  • For TypeScript: run tsc --noEmit in the frontend directory.
  • Make the build job depend on lint passing.
  • Provide a ruff.toml or pyproject.toml section with sensible defaults.

Acceptance criteria

  • ruff lint failures block the CI build.
  • tsc --noEmit type errors block the CI build.
  • A passing lint run does not add significant wall-clock time (target < 60s).

References

Roadmap: P2 CI/CD -- linting and type checking.

## Summary There is no linting or type checking in CI, allowing style violations and type errors to merge undetected. ## What to do - Add a `lint` job to `.gitea/workflows/build.yaml`. - For Python: install `ruff` and run `ruff check .` - For TypeScript: run `tsc --noEmit` in the frontend directory. - Make the `build` job depend on `lint` passing. - Provide a `ruff.toml` or `pyproject.toml` section with sensible defaults. ## Acceptance criteria - [ ] `ruff` lint failures block the CI build. - [ ] `tsc --noEmit` type errors block the CI build. - [ ] A passing lint run does not add significant wall-clock time (target < 60s). ## References Roadmap: P2 CI/CD -- linting and type checking.
AI-Manager added the P2agent-readysmallci labels 2026-03-30 19:23:55 +00:00
Author
Owner

Already implemented. Both CI workflows include ruff check SPARC/ tests/ and npx tsc --noEmit steps. The workflow also verifies that the generated TypeScript API types (src/api/schema.d.ts) are up to date.

Closing as completed.

Already implemented. Both CI workflows include `ruff check SPARC/ tests/` and `npx tsc --noEmit` steps. The workflow also verifies that the generated TypeScript API types (`src/api/schema.d.ts`) are up to date. 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#1436