forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #795
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?
Context
There is no automated linting or type-checking in CI. Style regressions and type errors accumulate silently between reviews.
Roadmap reference: ROADMAP.md -- P2 CI/CD -- "No linting or type checking"
What to do
rufftorequirements.txt(or a separaterequirements-dev.txt). Add alintstep (or extend thetestjob) that runsruff check ..tsc:checkscript topackage.jsonthat runstsc --noEmit. Add a CI step that runs this script.Acceptance criteria
ruff check .runs in CI and fails on new lint errors.tsc --noEmitruns in CI and fails on new type errors.Triage: Assigned to @qa-engineer. Reason: P2 test, small - CI linting.
Already implemented -- closing.
Both linters are configured in CI:
ruff check SPARC/ tests/runs in the test job of bothbuild.yamlandtest.yamlnpm ciand OpenAPI type generation, in both workflow filesA
ruff.tomlconfiguration file exists at the repo root.No further work needed.