forked from 0xWheatyz/SPARC
Add ruff (Python) and tsc --noEmit (TypeScript) linting to CI #1415
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
Roadmap item: P2 -- CI/CD -- No linting or type checking
There is no automated linting or type checking in CI. Style and type errors go undetected until review.
What to do
lintjob (or extend thetestjob) in the Gitea Actions workflow:pip install ruff && ruff check .(and optionallyruff format --check .).tsc --noEmitfrom the frontend directory.pyproject.tomlwith a[tool.ruff]section andtsconfig.jsonwith strict settings if they don't already exist.--ignorerules for known legacy issues and document them).Acceptance criteria
ruff check .passes with zero errors on the current codebase (modulo documented ignores).tsc --noEmitexits 0 on the current frontend codebase.Triage: Already resolved in main.
Both linting steps exist in
.gitea/workflows/test.yaml:ruff check SPARC/ tests/(lines 33-35)npx tsc --noEmit(lines 55-56)Also duplicated in
build.yamlas a build gate.ruff.tomlconfig file is present in the repo root. Closing as complete.