forked from 0xWheatyz/SPARC
CI: add ruff (Python) and tsc --noEmit (TypeScript) linting to Gitea Actions workflow #533
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, allowing style violations and type errors to accumulate.
Task
lintjob to.gitea/workflows/build.yamlruffand runruff check .on the backend sourcetsc --noEmiton the frontend sourcebuildjob should depend onlintpassingrufftorequirements.txtor a dev-requirements fileAcceptance Criteria
ruff check .runs in CI and fails on Python style/lint errorstsc --noEmitruns in CI and fails on TypeScript type errorsruff.tomlor[tool.ruff]section inpyproject.tomlconfigures sensible defaultsVerified complete: CI workflows run
ruff check SPARC/ tests/for Python linting andnpx tsc --noEmitfor TypeScript type checking. Closing as implemented.