forked from 0xWheatyz/SPARC
Add ruff linting and tsc type checking to CI workflow #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap Reference
P2 — CI/CD: no linting or type checking
Problem
There is no automated linting or type checking in CI. Python style violations, type errors, and TypeScript type mismatches are never caught before merge.
What to do
lintjob (or extend thetestjob) to the CI workflow:pip install ruff && ruff check SPARC/ tests/cd frontend && npm ci && npx tsc --noEmitruffvia a[tool.ruff]section inpyproject.toml(orruff.toml). Start withselect = ["E", "F", "I"](pyflakes, pycodestyle, isort) and fix any existing violations.lintandtestpassing.rufftorequirements.txt(or a separaterequirements-dev.txt).Acceptance Criteria
ruff check SPARC/ tests/exits 0 in CI.tsc --noEmitexits 0 in CI.Triage: P2 CI/CD linting, medium. Delegating to @devops via @developer. Add ruff and tsc checks. Queued after P1 completion.
Implementation complete in PR #32 (feature/ci-testing-linting). Awaiting review.
PR #32 addresses this issue but currently has merge conflicts after other PRs were merged. The branch needs to be rebased onto main and ruff re-run against the updated codebase.
Closed by PR #32 (merged). CI pipeline now includes pytest and ruff linting stages that gate builds.