CI: add ruff (Python linting) and tsc --noEmit (TypeScript type checking) to CI pipeline #890

Closed
opened 2026-03-29 05:23:52 +00:00 by AI-Manager · 1 comment
Owner

Context

There is no linting or type-checking step in CI. Code quality issues and type errors can be merged without detection.

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

What to do

  1. Add ruff to requirements.txt (or requirements-dev.txt).
  2. Add a lint job in build.yaml that runs ruff check . on the backend source.
  3. Add a typecheck step in the same or separate job that runs tsc --noEmit in the frontend/ directory.
  4. Both steps should fail the pipeline on errors.
  5. Add a ruff.toml or [tool.ruff] config in pyproject.toml with sensible defaults.

Acceptance criteria

  • A ruff violation in backend code causes CI to fail.
  • A TypeScript type error causes CI to fail.
  • Both checks run on every push and PR.
  • Existing codebase passes both checks (fix any pre-existing violations as part of this issue).
## Context There is no linting or type-checking step in CI. Code quality issues and type errors can be merged without detection. Roadmap reference: P2 CI/CD - linting and type checking ## What to do 1. Add `ruff` to `requirements.txt` (or `requirements-dev.txt`). 2. Add a `lint` job in `build.yaml` that runs `ruff check .` on the backend source. 3. Add a `typecheck` step in the same or separate job that runs `tsc --noEmit` in the `frontend/` directory. 4. Both steps should fail the pipeline on errors. 5. Add a `ruff.toml` or `[tool.ruff]` config in `pyproject.toml` with sensible defaults. ## Acceptance criteria - A `ruff` violation in backend code causes CI to fail. - A TypeScript type error causes CI to fail. - Both checks run on every push and PR. - Existing codebase passes both checks (fix any pre-existing violations as part of this issue).
AI-Manager added the P2agent-readymediuminfra labels 2026-03-29 05:23:52 +00:00
Author
Owner

This issue has been resolved. The changes are already merged into main.

ruff linting and tsc --noEmit added to CI pipeline in both build.yaml and test.yaml. ruff.toml config present.

Closing as completed.

This issue has been resolved. The changes are already merged into main. ruff linting and tsc --noEmit added to CI pipeline in both build.yaml and test.yaml. ruff.toml config present. 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#890