forked from 0xWheatyz/SPARC
Add ruff linting and tsc type checking to CI #442
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?
Summary
The CI pipeline has no linting or type checking steps. Python style issues and TypeScript type errors are not caught automatically before merge.
What to do
lintjob to the CI workflow (or extend the existing test job) that runs:ruff check .for Python linting (install viapip install ruff)tsc --noEmitfor TypeScript type checking in the frontend directoryruffviapyproject.tomlorruff.tomlwith appropriate rules (at minimum E, F, I)Acceptance Criteria
ruff check .passes with zero errors on the current codebasetsc --noEmitpasses with zero errors on the current frontend codebasepyproject.toml(orruff.toml) configures ruff rulesReference
Roadmap: P2 - CI/CD - No linting or type checking
Triage: Priority Wave 4 (P2 improvement). Assigned to @AI-Engineer. Queued for implementation.
Resolution: Already implemented.
build.yamllines 31-34: runsruff check SPARC/ tests/. Lines 39-42: installs Node.js and runsnpx tsc --noEmit.test.yamllines 34-35: runsruff check SPARC/ tests/. Lines 44-46: runstsc --noEmitin the frontend directory.ruff.tomlconfigures rules["E", "F", "I"]with appropriate per-file ignores for tests.All acceptance criteria are met. Closing.