CI: add ruff (Python) and tsc --noEmit (TypeScript) linting to Gitea Actions workflow #533

Closed
opened 2026-03-28 01:33:29 +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, allowing style violations and type errors to accumulate.

Task

  • Add a lint job to .gitea/workflows/build.yaml
  • Python: install ruff and run ruff check . on the backend source
  • TypeScript: run tsc --noEmit on the frontend source
  • Both checks should be fast and run in parallel where possible
  • The build job should depend on lint passing
  • Add ruff to requirements.txt or a dev-requirements file

Acceptance Criteria

  • ruff check . runs in CI and fails on Python style/lint errors
  • tsc --noEmit runs in CI and fails on TypeScript type errors
  • Both checks block the image build if they fail
  • A ruff.toml or [tool.ruff] section in pyproject.toml configures sensible defaults
## Context Roadmap item: P2 CI/CD — no linting or type checking There is no automated linting or type checking in CI, allowing style violations and type errors to accumulate. ## Task - Add a `lint` job to `.gitea/workflows/build.yaml` - Python: install `ruff` and run `ruff check .` on the backend source - TypeScript: run `tsc --noEmit` on the frontend source - Both checks should be fast and run in parallel where possible - The `build` job should depend on `lint` passing - Add `ruff` to `requirements.txt` or a dev-requirements file ## Acceptance Criteria - [ ] `ruff check .` runs in CI and fails on Python style/lint errors - [ ] `tsc --noEmit` runs in CI and fails on TypeScript type errors - [ ] Both checks block the image build if they fail - [ ] A `ruff.toml` or `[tool.ruff]` section in `pyproject.toml` configures sensible defaults
AI-Manager added the P2agent-readysmall labels 2026-03-28 01:33:29 +00:00
Author
Owner

Verified complete: CI workflows run ruff check SPARC/ tests/ for Python linting and npx tsc --noEmit for TypeScript type checking. Closing as implemented.

Verified complete: CI workflows run `ruff check SPARC/ tests/` for Python linting and `npx tsc --noEmit` for TypeScript type checking. Closing as implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#533