You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyproject, .github/workflows, .gitignore: align with fleet coverage convention
Two related cleanups, applied per the fleet sweep brief
(unpythonic/briefs/fleet-sweep-coverage-and-deps.md):
- Add [tool.coverage.run] to pyproject.toml: source = ["pyan"] and
omit = ["*/tests/*"], so coverage reports cover only production code.
Test files are excluded from analysis because pytest already reports
pass/fail per test — coverage of tests just adds rows without insight.
- Switch the coverage and CI workflows from ad-hoc `pip install pytest
pytest-cov sphinx docutils && pip install -e .` to `pip install pdm
&& pdm install`. All four packages are already declared in
[dependency-groups].dev, so `pdm install` covers them in one shot
(default behavior includes the dev group), and a fresh `pdm install`
on a developer's machine now matches what CI runs.
Subsequent pytest/ruff invocations gain a `pdm run` prefix, since
`pdm install` lands the binaries under `.venv/bin/` rather than on
PATH.
Also gitignore coverage.xml — already generated locally by the
verify recipe, and a CI artifact uploaded to Codecov but not meant
for the repo.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments