|
| 1 | +# 0.5.0 release validation |
| 2 | + |
| 3 | +Validated on 2026-11-15. Baseline: `2a294b180daefe0511e253905b685de68d761175` |
| 4 | +(main, version 0.4.1). Candidate code: `8960979`, version 0.5.0. |
| 5 | +Later documentation-only commits do not change the tested implementation. |
| 6 | + |
| 7 | +## Tests and packaging |
| 8 | + |
| 9 | +- 287 tests passed on each CI target: Python 3.10.22, 3.11.18, 3.12.14, and 3.13.5. |
| 10 | +- Ruff lint and format checks passed. |
| 11 | +- Coverage: 91% overall, 100% for the import-boundary rule. |
| 12 | +- The installed wheel passed all 287 tests with current PyPI dependencies. |
| 13 | +- Wheel and source distribution passed Twine validation and isolated functional |
| 14 | + checks for version metadata, opt-in behavior, remediation guidance, and the |
| 15 | + CLI failure gate. The wheel was built from the source distribution by `uv build`. |
| 16 | +- Configured policy checks found 28 expected urllib3 imports in Requests, 79 |
| 17 | + Werkzeug imports in Flask, and 115 Starlette imports in FastAPI. A nonexistent |
| 18 | + forbidden module produced no boundary diagnostics in those projects. |
| 19 | +- JSON and SARIF, both configuration formats, relative imports, src layouts, |
| 20 | + type-checking blocks, nested imports, negative fixtures, suppression, invalid |
| 21 | + configuration, and disabling lint are covered by automated tests. |
| 22 | + |
| 23 | +## Public-source corpus comparison |
| 24 | + |
| 25 | +All 29 default packages from `uv run --frozen python benchmarks/run_corpus.py` |
| 26 | +were scanned, totaling **10,330 Python files**. Sources are cached PyPI |
| 27 | +source distributions, not arbitrary working copies. These checks exercise |
| 28 | +PyCodeGate against those projects; they do not run the projects' own test suites. |
| 29 | + |
| 30 | +Each source tree was scanned separately with baseline and candidate code using |
| 31 | +`--json --no-dead-code`. Scores, discovered project metadata, and all diagnostic |
| 32 | +fields were compared after sorting diagnostics. Only version and elapsed time |
| 33 | +were excluded. **Every comparison was identical.** No new default restrictions |
| 34 | +are introduced for projects without import-boundary configuration. |
| 35 | + |
| 36 | +The corpus emits 19,376 existing diagnostics with a mean score of 52.8. These |
| 37 | +findings were not individually adjudicated as true or false positives. Identical |
| 38 | +output demonstrates lack of regression for this release, not that those projects |
| 39 | +are broken or that existing rule precision has been fully established. |
| 40 | + |
| 41 | +| Package | Source distribution | Files | Score | Findings | Baseline comparison | |
| 42 | +| --- | --- | ---: | ---: | ---: | --- | |
| 43 | +| requests | requests-2.34.2 | 35 | 68 | 169 | Identical | |
| 44 | +| flask | flask-3.1.3 | 65 | 74 | 61 | Identical | |
| 45 | +| click | click-8.5.1 | 76 | 72 | 102 | Identical | |
| 46 | +| rich | rich-15.0.0 | 100 | 58 | 273 | Identical | |
| 47 | +| httpx | httpx-0.28.1 | 60 | 74 | 110 | Identical | |
| 48 | +| sqlalchemy | sqlalchemy-2.1.8 | 603 | 22 | 2256 | Identical | |
| 49 | +| fastapi | fastapi-0.163.1 | 738 | 53 | 2383 | Identical | |
| 50 | +| starlette | starlette-1.10.0 | 84 | 71 | 162 | Identical | |
| 51 | +| pydantic | pydantic-2.14.3 | 324 | 35 | 720 | Identical | |
| 52 | +| jinja2 | jinja2-3.1.6 | 49 | 64 | 104 | Identical | |
| 53 | +| werkzeug | werkzeug-3.1.9 | 84 | 59 | 156 | Identical | |
| 54 | +| urllib3 | urllib3-2.8.0 | 80 | 71 | 144 | Identical | |
| 55 | +| django | django-6.1.3 | 2592 | 33 | 969 | Identical | |
| 56 | +| celery | celery-5.7.0 | 406 | 37 | 472 | Identical | |
| 57 | +| black | black-26.10.1 | 366 | 35 | 392 | Identical | |
| 58 | +| isort | isort-9.0.2 | 110 | 70 | 144 | Identical | |
| 59 | +| pytest | pytest-9.2.0 | 253 | 35 | 1168 | Identical | |
| 60 | +| attrs | attrs-26.1.0 | 53 | 77 | 54 | Identical | |
| 61 | +| typer | typer-0.29.1 | 339 | 66 | 155 | Identical | |
| 62 | +| pyyaml | pyyaml-6.0.3 | 44 | 58 | 127 | Identical | |
| 63 | +| redis | redis-8.1.0 | 267 | 43 | 1143 | Identical | |
| 64 | +| scrapy | scrapy-2.20.0 | 538 | 45 | 417 | Identical | |
| 65 | +| beautifulsoup4 | beautifulsoup4-4.15.0 | 38 | 72 | 90 | Identical | |
| 66 | +| loguru | loguru-0.8.0 | 19 | 67 | 60 | Identical | |
| 67 | +| pandas | pandas-3.1.1 | 1448 | 20 | 3210 | Identical | |
| 68 | +| numpy | numpy-2.5.4 | 1046 | 22 | 2930 | Identical | |
| 69 | +| pillow | pillow-13.0.0 | 292 | 45 | 666 | Identical | |
| 70 | +| tornado | tornado-6.6.1 | 77 | 41 | 309 | Identical | |
| 71 | +| aiohttp | aiohttp-3.14.5 | 144 | 44 | 430 | Identical | |
| 72 | + |
| 73 | +Machine-readable evidence is in [0.5.0.json](0.5.0.json). |
| 74 | + |
| 75 | +## Version and publication |
| 76 | + |
| 77 | +PyPI and remote Git tags were checked: the latest published version was 0.3.0; |
| 78 | +0.5.0 was unused. The minor version reflects the new opt-in capability on top of |
| 79 | +the unreleased 0.4.1 checkout. `pyproject.toml`, `uv.lock`, installed metadata, |
| 80 | +CLI JSON, and distribution names agree on 0.5.0. |
| 81 | + |
| 82 | +The existing release workflow publishes to PyPI through trusted publishing when |
| 83 | +a GitHub release is published. Local validation does not establish a merged PR, |
| 84 | +passing hosted CI, a published GitHub release, or successful PyPI publication. |
0 commit comments