Development checks: ruff lint and parallel tests #18
Loading…
Reference in a new issue
No description provided.
Delete branch "vinny/dev-tools"
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?
Closes #13 (the CI runner part is left out, as decided). -
tools/check.pylints with ruff's pyflakes rules (pyproject.toml: F and E9) and runs the suite across processes with pytest-xdist (-n auto --dist loadfile). Both are pinned inrequirements-dev.txtand thetestextra; without ruff the check says the lint was not run. - The full check now takes about 2.4 minutes for the 2,240 tests. - First lint pass: 64 unused imports and the dead variables removed from src, tools and tests. One real fault fixed:tools/qualify_reads.py's history check used a generator variable outside its generator, so a record from another timeline raised NameError instead of being reported. - Not linted or rewritten: the tester's byte copies (src/cmonet/library,src/cmonet/builder/lua), the golden bundles (tests/fixtures) and the cited verification scripts (docs). Tests may import fixtures that pyflakes reads as unused. Check:CHECK PASSEDon the working tree before commit. 🤖 Generated with Claude Code