pyahead 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyahead-0.2.1/.gitignore +18 -0
- pyahead-0.2.1/AGENTS.md +38 -0
- pyahead-0.2.1/CHANGELOG.md +137 -0
- pyahead-0.2.1/LICENSE +201 -0
- pyahead-0.2.1/PKG-INFO +219 -0
- pyahead-0.2.1/README.md +193 -0
- pyahead-0.2.1/SECURITY.md +13 -0
- pyahead-0.2.1/docs/contributing.md +51 -0
- pyahead-0.2.1/docs/corpus-review.md +156 -0
- pyahead-0.2.1/docs/design.md +2659 -0
- pyahead-0.2.1/docs/evidence/binding-not-visible-baseline.md +257 -0
- pyahead-0.2.1/docs/evidence/binding-not-visible-static.md +598 -0
- pyahead-0.2.1/docs/evidence/binding-not-visible-targeted.md +356 -0
- pyahead-0.2.1/docs/evidence/binding-not-visible.md +344 -0
- pyahead-0.2.1/docs/evidence/gate-c.md +89 -0
- pyahead-0.2.1/docs/evidence/gate-d.md +153 -0
- pyahead-0.2.1/docs/evidence/pypi-top-1000.md +645 -0
- pyahead-0.2.1/docs/evidence/release-0.2.0.md +219 -0
- pyahead-0.2.1/docs/false-positive-review.csv +1 -0
- pyahead-0.2.1/docs/plans/20260901-pyahead-0-1-0a2-release-readiness.md +153 -0
- pyahead-0.2.1/docs/plans/completed/20260903-validate-pyahead-against-pypi-top-1000.md +194 -0
- pyahead-0.2.1/docs/plans/completed/20260910-run-pypi-top-1000-validation.md +1523 -0
- pyahead-0.2.1/docs/plans/completed/20260913-investigate-binding-not-visible.md +237 -0
- pyahead-0.2.1/docs/pypi-validation.md +473 -0
- pyahead-0.2.1/docs/registry-authoring.md +311 -0
- pyahead-0.2.1/docs/releasing.md +103 -0
- pyahead-0.2.1/docs/schema/dependency-report-v1.json +2243 -0
- pyahead-0.2.1/docs/schema/evidence-v1.json +214 -0
- pyahead-0.2.1/docs/schema/registry-coverage-v1.json +185 -0
- pyahead-0.2.1/docs/schema/registry-index-v1.json +54 -0
- pyahead-0.2.1/docs/schema/registry-rule-v1.json +629 -0
- pyahead-0.2.1/docs/schema/report-v1.json +1089 -0
- pyahead-0.2.1/docs/security-and-privacy.md +350 -0
- pyahead-0.2.1/docs/usage.md +638 -0
- pyahead-0.2.1/pyproject.toml +117 -0
- pyahead-0.2.1/scripts/__init__.py +1 -0
- pyahead-0.2.1/scripts/benchmark.py +388 -0
- pyahead-0.2.1/scripts/corpus.py +729 -0
- pyahead-0.2.1/scripts/install_smoke.py +1140 -0
- pyahead-0.2.1/scripts/performance-budgets.json +24 -0
- pyahead-0.2.1/scripts/pypi_corpus.py +750 -0
- pyahead-0.2.1/scripts/pypi_probe.py +1154 -0
- pyahead-0.2.1/scripts/pypi_report.py +510 -0
- pyahead-0.2.1/scripts/pypi_validate.py +2140 -0
- pyahead-0.2.1/src/pyahead/__init__.py +5 -0
- pyahead-0.2.1/src/pyahead/__main__.py +5 -0
- pyahead-0.2.1/src/pyahead/_human_text.py +95 -0
- pyahead-0.2.1/src/pyahead/_rooted_reader.py +259 -0
- pyahead-0.2.1/src/pyahead/_windows_output.py +680 -0
- pyahead-0.2.1/src/pyahead/analysis/__init__.py +6 -0
- pyahead-0.2.1/src/pyahead/analysis/discovery.py +798 -0
- pyahead-0.2.1/src/pyahead/analysis/engine.py +1896 -0
- pyahead-0.2.1/src/pyahead/analysis/matchers/__init__.py +5 -0
- pyahead-0.2.1/src/pyahead/analysis/matchers/base.py +96 -0
- pyahead-0.2.1/src/pyahead/analysis/matchers/builtins.py +29 -0
- pyahead-0.2.1/src/pyahead/analysis/matchers/calls.py +248 -0
- pyahead-0.2.1/src/pyahead/analysis/matchers/imports.py +84 -0
- pyahead-0.2.1/src/pyahead/analysis/matchers/qualified.py +110 -0
- pyahead-0.2.1/src/pyahead/analysis/reachability.py +370 -0
- pyahead-0.2.1/src/pyahead/analysis/suppressions.py +418 -0
- pyahead-0.2.1/src/pyahead/baseline.py +203 -0
- pyahead-0.2.1/src/pyahead/cli.py +680 -0
- pyahead-0.2.1/src/pyahead/config.py +765 -0
- pyahead-0.2.1/src/pyahead/data/__init__.py +1 -0
- pyahead-0.2.1/src/pyahead/data/registry/__init__.py +1 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-101773.yaml +15 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-84131.yaml +16 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-94101.yaml +15 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-94352.yaml +15 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-97670.yaml +16 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/pep-0594.yaml +101 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.12-deprecated.yaml +198 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.12-removed.yaml +248 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.13-deprecated.yaml +129 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.13-removed.yaml +305 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.14-deprecated.yaml +121 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.14-removed.yaml +175 -0
- pyahead-0.2.1/src/pyahead/data/registry/coverage/python-deprecations.yaml +448 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0001.yaml +52 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0002.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0003.yaml +52 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0004.yaml +52 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0005.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0006.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0007.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0008.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0009.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0010.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0011.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0012.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0013.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0014.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0015.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0016.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0017.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0018.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0019.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0020.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0021.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0022.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0023.yaml +47 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0024.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0025.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0026.yaml +42 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0027.yaml +49 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0028.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0029.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0030.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0031.yaml +50 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0032.yaml +45 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0033.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0034.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0035.yaml +47 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0036.yaml +52 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0037.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0038.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0039.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0040.yaml +52 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0041.yaml +50 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0042.yaml +56 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0043.yaml +75 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0044.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0045.yaml +55 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0046.yaml +50 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0047.yaml +82 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0049.yaml +50 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0050.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0051.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0052.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0053.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0054.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0055.yaml +60 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0056.yaml +56 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0057.yaml +52 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0058.yaml +52 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0059.yaml +61 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0060.yaml +74 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0061.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0062.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0063.yaml +45 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0064.yaml +58 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0065.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0066.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0067.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0068.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0069.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0070.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0071.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0072.yaml +57 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0073.yaml +142 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0074.yaml +60 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0075.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0076.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0077.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0078.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0079.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0080.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0082.yaml +113 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0083.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0084.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0085.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0086.yaml +108 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0087.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0088.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0089.yaml +47 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0090.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0091.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0092.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0093.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0094.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0095.yaml +45 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0096.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0097.yaml +51 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0098.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0099.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0100.yaml +47 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0101.yaml +79 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0102.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0103.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0104.yaml +41 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0105.yaml +45 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0106.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0107.yaml +53 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0108.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0109.yaml +56 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0110.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0111.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0112.yaml +48 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0113.yaml +69 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0114.yaml +49 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0115.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0116.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0117.yaml +61 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0118.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0119.yaml +45 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0120.yaml +42 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0121.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0122.yaml +46 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0123.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0124.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0125.yaml +62 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0126.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0127.yaml +60 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0128.yaml +40 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0129.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0131.yaml +43 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0132.yaml +45 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0133.yaml +57 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0135.yaml +44 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0136.yaml +56 -0
- pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0137.yaml +70 -0
- pyahead-0.2.1/src/pyahead/data/registry/index.yaml +152 -0
- pyahead-0.2.1/src/pyahead/data/registry/releases.yaml +25 -0
- pyahead-0.2.1/src/pyahead/data/schema/__init__.py +1 -0
- pyahead-0.2.1/src/pyahead/data/schema/report-v1.json +1089 -0
- pyahead-0.2.1/src/pyahead/dependencies.py +6949 -0
- pyahead-0.2.1/src/pyahead/evidence.py +1120 -0
- pyahead-0.2.1/src/pyahead/model.py +779 -0
- pyahead-0.2.1/src/pyahead/output.py +324 -0
- pyahead-0.2.1/src/pyahead/py.typed +1 -0
- pyahead-0.2.1/src/pyahead/pytest_plugin.py +469 -0
- pyahead-0.2.1/src/pyahead/registry/__init__.py +7 -0
- pyahead-0.2.1/src/pyahead/registry/loader.py +537 -0
- pyahead-0.2.1/src/pyahead/registry/presentation.py +264 -0
- pyahead-0.2.1/src/pyahead/registry/schema.py +1684 -0
- pyahead-0.2.1/src/pyahead/reporting/__init__.py +7 -0
- pyahead-0.2.1/src/pyahead/reporting/console.py +413 -0
- pyahead-0.2.1/src/pyahead/reporting/json.py +344 -0
- pyahead-0.2.1/src/pyahead/reporting/sarif.py +287 -0
- pyahead-0.2.1/src/pyahead/reporting/schema.py +466 -0
- pyahead-0.2.1/src/pyahead/timeline.py +43 -0
- pyahead-0.2.1/src/pyahead/versions.py +59 -0
- pyahead-0.2.1/tests/__init__.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/alias/source.py +2 -0
- pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/ambiguous/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/negative/source.py +2 -0
- pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/shadowing/source.py +9 -0
- pyahead-0.2.1/tests/fixtures/matchers/call_shape/alias/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/call_shape/ambiguous/source.py +8 -0
- pyahead-0.2.1/tests/fixtures/matchers/call_shape/namespace_package/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/call_shape/namespace_package/targetpkg/old.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/call_shape/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/call_shape/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/call_shape/shadowing/source.py +5 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/alias/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/ambiguous/source.py +8 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_alias/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_ambiguous/source.py +8 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_negative/source.py +5 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_shadowing/source.py +6 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/explicit_level_zero/source.py +2 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/local_target/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/local_target/targetpkg.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/namespace_package/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/namespace_package/targetpkg/old.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/negative/source.py +4 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/relative_level/source.py +2 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/shadowing/source.py +2 -0
- pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/unknown_level/source.py +5 -0
- pyahead-0.2.1/tests/fixtures/matchers/module_import/alias/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/module_import/ambiguous/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/module_import/ambiguous/targetpkg.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/module_import/namespace_package/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/module_import/namespace_package/targetpkg/old.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/module_import/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/module_import/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/module_import/shadowing/source.py +5 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_call/alias/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_call/ambiguous/source.py +8 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_call/namespace_package/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_call/namespace_package/targetpkg/old.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_call/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_call/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_call/shadowing/source.py +5 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/alias/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/ambiguous/source.py +8 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/namespace_package/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/namespace_package/targetpkg/old.py +1 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/shadowing/source.py +5 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/expected.json +106 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/negative/local_module/cgi.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/negative/local_module/consumer.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/negative/string_only.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/negative/unrelated_call.py +5 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/positive/from_import.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/positive/import_alias.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/positive/import_direct.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/positive/literal_dynamic_import.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/resolution/stub_only/cgi.pyi +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0001/resolution/stub_only/consumer.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0002/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0002/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0002/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0003/compat/asynchat.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0003/compatibility/helpers.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0003/compatibility/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0003/expected.json +73 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0003/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0003/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0004/compat/asyncore.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0004/compatibility/helpers.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0004/compatibility/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0004/expected.json +73 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0004/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0004/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0005/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0005/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0005/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0006/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0006/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0006/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0007/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0007/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0007/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0008/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0008/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0008/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0009/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0009/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0009/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0010/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0010/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0010/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0011/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0011/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0011/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0012/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0012/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0012/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0013/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0013/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0013/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0014/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0014/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0014/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0015/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0015/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0015/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0016/expected.json +42 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0016/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0016/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0017/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0017/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0017/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0018/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0018/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0018/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0019/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0019/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0019/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0020/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0020/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0020/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0021/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0021/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0021/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0022/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0022/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0022/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0023/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0023/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0023/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0024/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0024/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0024/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0025/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0025/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0025/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0026/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0026/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0026/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0027/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0027/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0027/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0028/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0028/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0028/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0029/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0029/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0029/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0030/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0030/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0030/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0031/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0031/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0031/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0032/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0032/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0032/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0033/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0033/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0033/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0034/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0034/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0034/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0035/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0035/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0035/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0036/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0036/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0036/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0037/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0037/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0037/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0038/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0038/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0038/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0039/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0039/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0039/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0040/expected.json +44 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0040/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0040/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0041/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0041/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0041/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0042/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0042/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0042/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0043/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0043/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0043/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0044/expected.json +47 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0044/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0044/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0045/expected.json +75 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0045/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0045/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0045/positive_positional/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0046/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0046/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0046/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0047/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0047/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0047/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0049/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0049/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0049/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0050/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0050/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0050/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0051/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0051/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0051/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0052/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0052/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0052/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0053/expected.json +49 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0053/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0053/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0054/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0054/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0054/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0055/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0055/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0055/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0056/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0056/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0056/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0057/expected.json +75 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0057/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0057/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0057/positive_keyword/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0058/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0058/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0058/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0059/expected.json +115 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0059/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0059/negative_shapes/source.py +6 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0059/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0059/positive_keywords/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0059/positive_none/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0060/expected.json +76 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0060/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0060/negative_shapes/source.py +7 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0060/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0060/positive_none/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0060/positive_none_total/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0060/positive_total/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0061/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0061/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0061/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0062/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0062/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0062/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0063/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0063/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0063/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0064/expected.json +72 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0064/guarded/source.py +4 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0064/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0064/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0065/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0065/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0065/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0066/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0066/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0066/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0067/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0067/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0067/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0068/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0068/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0068/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0069/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0069/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0069/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0070/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0070/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0070/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0071/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0071/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0071/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0072/expected.json +61 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0072/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0072/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0072/positive_parsingerror_keyword/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0072/positive_parsingerror_positional/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0073/expected.json +61 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0073/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0073/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0073/positive_loader_keyword/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0073/positive_loader_positional/source.py +4 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0074/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0074/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0074/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0075/expected.json +54 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0075/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0075/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0075/positive_keyword/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0076/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0076/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0076/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0077/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0077/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0077/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0078/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0078/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0078/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0079/expected.json +49 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0079/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0079/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0080/expected.json +48 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0080/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0080/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0082/expected.json +54 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0082/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0082/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0082/positive_positional/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0083/expected.json +47 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0083/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0083/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0084/expected.json +47 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0084/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0084/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0085/expected.json +47 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0085/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0085/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0086/expected.json +54 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0086/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0086/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0086/positive_keyword/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0087/expected.json +47 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0087/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0087/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0088/expected.json +34 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0088/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0088/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0089/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0089/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0089/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0090/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0090/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0090/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0091/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0091/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0091/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0092/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0092/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0092/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0093/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0093/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0093/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0094/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0094/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0094/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0095/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0095/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0095/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0096/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0096/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0096/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0097/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0097/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0097/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0098/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0098/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0098/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0099/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0099/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0099/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0100/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0100/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0100/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0101/expected.json +65 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0101/negative/source.py +11 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0101/positive/source.py +17 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0102/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0102/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0102/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0103/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0103/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0103/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0104/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0104/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0104/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0105/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0105/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0105/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0106/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0106/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0106/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0107/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0107/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0107/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0108/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0108/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0108/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0109/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0109/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0109/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0110/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0110/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0110/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0111/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0111/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0111/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0112/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0112/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0112/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0113/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0113/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0113/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0114/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0114/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0114/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0115/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0115/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0115/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0116/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0116/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0116/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0117/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0117/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0117/positive/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0118/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0118/negative/source.py +7 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0118/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0119/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0119/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0119/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0120/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0120/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0120/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0121/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0121/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0121/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0122/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0122/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0122/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0123/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0123/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0123/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0124/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0124/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0124/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0125/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0125/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0125/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0126/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0126/negative/source.py +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0126/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0127/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0127/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0127/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0128/expected.json +1 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0128/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0128/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0129/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0129/negative/source.py +10 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0129/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0131/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0131/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0131/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0132/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0132/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0132/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0133/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0133/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0133/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0135/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0135/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0135/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0136/expected.json +21 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0136/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0136/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0137/expected.json +31 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0137/negative/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/rules/CPY0137/positive/source.py +3 -0
- pyahead-0.2.1/tests/fixtures/schemas/sarif-schema-2.1.0.json +3097 -0
- pyahead-0.2.1/tests/golden/__init__.py +1 -0
- pyahead-0.2.1/tests/golden/dependency-status-matrix.json +173 -0
- pyahead-0.2.1/tests/golden/project/legacy.py +1 -0
- pyahead-0.2.1/tests/golden/report.json +156 -0
- pyahead-0.2.1/tests/golden/report.txt +17 -0
- pyahead-0.2.1/tests/golden/test_dependency_status_matrix.py +280 -0
- pyahead-0.2.1/tests/golden/test_reports.py +37 -0
- pyahead-0.2.1/tests/integration/__init__.py +1 -0
- pyahead-0.2.1/tests/integration/test_cli_m1.py +263 -0
- pyahead-0.2.1/tests/integration/test_cli_m2.py +405 -0
- pyahead-0.2.1/tests/integration/test_cli_m3.py +359 -0
- pyahead-0.2.1/tests/integration/test_cli_m4.py +908 -0
- pyahead-0.2.1/tests/integration/test_cli_m7.py +129 -0
- pyahead-0.2.1/tests/integration/test_cli_m8.py +787 -0
- pyahead-0.2.1/tests/integration/test_public_surface.py +155 -0
- pyahead-0.2.1/tests/integration/test_pypi_validation.py +312 -0
- pyahead-0.2.1/tests/integration/test_pytest_plugin.py +690 -0
- pyahead-0.2.1/tests/test_cli.py +38 -0
- pyahead-0.2.1/tests/unit/__init__.py +1 -0
- pyahead-0.2.1/tests/unit/test_analysis.py +721 -0
- pyahead-0.2.1/tests/unit/test_annotation_introspection.py +77 -0
- pyahead-0.2.1/tests/unit/test_baseline.py +385 -0
- pyahead-0.2.1/tests/unit/test_cli_human_output.py +287 -0
- pyahead-0.2.1/tests/unit/test_config.py +496 -0
- pyahead-0.2.1/tests/unit/test_dependencies.py +8277 -0
- pyahead-0.2.1/tests/unit/test_dependency_report_schema.py +1543 -0
- pyahead-0.2.1/tests/unit/test_discovery.py +729 -0
- pyahead-0.2.1/tests/unit/test_evidence.py +781 -0
- pyahead-0.2.1/tests/unit/test_gates.py +122 -0
- pyahead-0.2.1/tests/unit/test_human_text.py +56 -0
- pyahead-0.2.1/tests/unit/test_install_smoke.py +1293 -0
- pyahead-0.2.1/tests/unit/test_m6_hardening.py +576 -0
- pyahead-0.2.1/tests/unit/test_matcher_helpers.py +270 -0
- pyahead-0.2.1/tests/unit/test_matchers.py +872 -0
- pyahead-0.2.1/tests/unit/test_output.py +1744 -0
- pyahead-0.2.1/tests/unit/test_precision_regressions.py +379 -0
- pyahead-0.2.1/tests/unit/test_pypi_corpus.py +990 -0
- pyahead-0.2.1/tests/unit/test_pypi_probe.py +1788 -0
- pyahead-0.2.1/tests/unit/test_pypi_report.py +827 -0
- pyahead-0.2.1/tests/unit/test_pypi_validate.py +2313 -0
- pyahead-0.2.1/tests/unit/test_pytest_plugin.py +92 -0
- pyahead-0.2.1/tests/unit/test_reachability.py +317 -0
- pyahead-0.2.1/tests/unit/test_registry.py +720 -0
- pyahead-0.2.1/tests/unit/test_registry_coverage.py +897 -0
- pyahead-0.2.1/tests/unit/test_registry_coverage_schema.py +208 -0
- pyahead-0.2.1/tests/unit/test_registry_schema.py +770 -0
- pyahead-0.2.1/tests/unit/test_report_schema.py +240 -0
- pyahead-0.2.1/tests/unit/test_reporting.py +433 -0
- pyahead-0.2.1/tests/unit/test_rooted_consumers.py +230 -0
- pyahead-0.2.1/tests/unit/test_rooted_reader.py +336 -0
- pyahead-0.2.1/tests/unit/test_sarif.py +357 -0
- pyahead-0.2.1/tests/unit/test_script_human_output.py +179 -0
- pyahead-0.2.1/tests/unit/test_suppressions.py +547 -0
- pyahead-0.2.1/tests/unit/test_timeline.py +80 -0
- pyahead-0.2.1/tests/unit/test_typing_alias_contexts.py +98 -0
- pyahead-0.2.1/tests/unit/test_versions.py +63 -0
- pyahead-0.2.1/uv.lock +748 -0
pyahead-0.2.1/.gitignore
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.coverage
|
|
2
|
+
.mypy_cache/
|
|
3
|
+
.pytest_cache/
|
|
4
|
+
.ruff_cache/
|
|
5
|
+
.venv/
|
|
6
|
+
__pycache__/
|
|
7
|
+
build/
|
|
8
|
+
dist/
|
|
9
|
+
*.egg-info/
|
|
10
|
+
benchmark-results.json
|
|
11
|
+
|
|
12
|
+
# PyPI validation harness (docs/pypi-validation.md): acquired manifest,
|
|
13
|
+
# wheelhouse, and work directory are local acquisition metadata, never committed.
|
|
14
|
+
/work/pypi-manifest.json
|
|
15
|
+
/work/pypi-wheelhouse/
|
|
16
|
+
/work/pypi-validate/
|
|
17
|
+
/work/pypi-report.json
|
|
18
|
+
/work/pypi-disagreements.csv
|
pyahead-0.2.1/AGENTS.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Codex working agreement
|
|
2
|
+
|
|
3
|
+
`docs/design.md` is the implementation contract. Read it completely with
|
|
4
|
+
`README.md`, `pyproject.toml`, and current repository instructions before work.
|
|
5
|
+
|
|
6
|
+
- Implement only the requested milestone. Never add later-milestone analyser,
|
|
7
|
+
registry, Django, hosted-service, or other features opportunistically.
|
|
8
|
+
- Preserve public contracts and unrelated work. Record a justified design
|
|
9
|
+
difference in `docs/design.md` in the same change.
|
|
10
|
+
- Keep Python in `src/pyahead`, require Python 3.11+, and add only dependencies
|
|
11
|
+
used by the current milestone.
|
|
12
|
+
- One passing milestone gets one intentional commit; never combine milestones.
|
|
13
|
+
|
|
14
|
+
Treat `docs/design.md`, `AGENTS.md`, and `.github/workflows` as protected: change
|
|
15
|
+
them only when the requested milestone explicitly requires it. The `tool.ruff`,
|
|
16
|
+
`tool.mypy`, `tool.pytest.ini_options`, `tool.coverage.run`, and
|
|
17
|
+
`tool.coverage.report` tables in `pyproject.toml` are quality policy; never
|
|
18
|
+
weaken a threshold to make a change pass.
|
|
19
|
+
|
|
20
|
+
Stop at Gate C before M7-M8; Gate C needs recorded corpus-precision evidence and
|
|
21
|
+
accountable human approval, and no agent may approve its own precision evidence.
|
|
22
|
+
Refuse M9 here — the hosted service belongs in a separate private repository —
|
|
23
|
+
and refuse M10 until `docs/c-api-design.md` exists.
|
|
24
|
+
|
|
25
|
+
```console
|
|
26
|
+
uv sync --frozen
|
|
27
|
+
uv run ruff check .
|
|
28
|
+
uv run ruff format --check .
|
|
29
|
+
uv run mypy src scripts
|
|
30
|
+
uv run pytest
|
|
31
|
+
uv build
|
|
32
|
+
uv run pyahead --version
|
|
33
|
+
git diff --check
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Run milestone-specific checks too. Inspect the final diff for generated files,
|
|
37
|
+
secrets, absolute paths, weakened policy, unsafe subprocess/Git behaviour, and
|
|
38
|
+
unrelated changes.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable user-visible changes are recorded here. PyAhead follows Semantic
|
|
4
|
+
Versioning, including prerelease identifiers while public contracts are still
|
|
5
|
+
stabilizing.
|
|
6
|
+
|
|
7
|
+
## Unreleased
|
|
8
|
+
|
|
9
|
+
## 0.2.1 - 2026-09-13
|
|
10
|
+
|
|
11
|
+
Precision fixes found by adjudicating the PyPI top-1000 against real
|
|
12
|
+
interpreters. No public contract changes.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- `sys.version_info[0]` compared against an integer, the Python 2/3 split
|
|
17
|
+
such as `if sys.version_info[0] < 3:`, is now evaluated as a version guard,
|
|
18
|
+
so a Python-2-only branch no longer produces findings for Python 3 targets.
|
|
19
|
+
- The annotation of a local variable inside a function body, which Python
|
|
20
|
+
never evaluates or stores, is now a typing-only reference, so runtime-only
|
|
21
|
+
rules no longer report it. Parameter, return, class-body and module-level
|
|
22
|
+
annotations are unchanged, including under
|
|
23
|
+
`from __future__ import annotations`, because runtime introspection such
|
|
24
|
+
as `typing.get_type_hints` still evaluates them. Both fixes come from the
|
|
25
|
+
runtime adjudication of the PyPI top-1000 recorded in
|
|
26
|
+
`docs/evidence/pypi-top-1000.md`.
|
|
27
|
+
|
|
28
|
+
## 0.2.0 - 2026-09-01
|
|
29
|
+
|
|
30
|
+
First public-alpha release. It carries the evidence providers that
|
|
31
|
+
`docs/design.md` §4.3 assigns to `0.2`: opt-in pytest deprecation-warning
|
|
32
|
+
evidence and opt-in dependency metadata and resolver evidence. No `0.1.0`
|
|
33
|
+
release was published; the `0.1.0a2` candidate is superseded by this version.
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- A closed static-report JSON Schema, packaged schema resource, `py.typed`
|
|
38
|
+
marker, and documented narrow public Python API with installed-wheel strict
|
|
39
|
+
mypy verification.
|
|
40
|
+
- Opt-in dependency compatibility reports with declared environment targets,
|
|
41
|
+
separate application and library semantics, direct build-free wheel/sdist
|
|
42
|
+
metadata inspection, target marker evaluation, `Requires-Python` and wheel
|
|
43
|
+
availability distinctions, and an isolated `uv` adapter with explicit
|
|
44
|
+
offline, network, index, and timeout controls. Wheel structure, direct URL,
|
|
45
|
+
coherent-target, and complete transitive-dependency evidence fail closed;
|
|
46
|
+
closed-wheelhouse artifact absence remains distinct from proven constraint
|
|
47
|
+
conflicts and operational index failures. Direct application and library
|
|
48
|
+
samples retain precise artifact availability but remain incomplete
|
|
49
|
+
compatibility evidence until resolution closes the inventory, except that an
|
|
50
|
+
exact, final `Requires-Python` exclusion remains declared incompatible;
|
|
51
|
+
resolver-selected extras require exact `Provides-Extra` provenance. Nested
|
|
52
|
+
dependency extras reach a fixed point, and
|
|
53
|
+
archive member, shared expanded-data, and decoder limits are enforced before
|
|
54
|
+
unbounded object creation, decompression, or LZMA dictionary allocation.
|
|
55
|
+
Dependency evaluation and correlation share a bounded work budget, and public
|
|
56
|
+
metadata records must preserve exact container identity. Target-selected
|
|
57
|
+
metadata now exclusively supplies extras and dependency edges; conflicting
|
|
58
|
+
artifact declarations, ambiguous local-version pins, unreachable resolver
|
|
59
|
+
packages, legacy source-metadata dynamism, malformed markers, impossible
|
|
60
|
+
target versions, resolver output, aggregate metadata, and sdist identity
|
|
61
|
+
boundaries fail closed as invalid input or explicit incomplete evidence, as
|
|
62
|
+
appropriate.
|
|
63
|
+
- Versioned pytest deprecation-warning evidence, explicit user-CI collection,
|
|
64
|
+
commit-aware ingestion, subject/timeline-aware static/observed relationships,
|
|
65
|
+
explicit per-artifact and aggregate resource limits, indexed relationship
|
|
66
|
+
processing, bounded collection-time warning retention, incremental artifact
|
|
67
|
+
sizing, and visible unmatched, conflicting, or stale observations in text and
|
|
68
|
+
JSON reports.
|
|
69
|
+
- Deterministic repository discovery, Python-version reachability, strict
|
|
70
|
+
configuration, baselines, rule-specific suppressions, JSON, and SARIF 2.1.0.
|
|
71
|
+
- A source-linked CPython registry with explicit coverage manifests and
|
|
72
|
+
positive and negative fixtures for implemented rules.
|
|
73
|
+
- A Linux, macOS, and Windows CI matrix for Python 3.11 through 3.14, plus an
|
|
74
|
+
advisory Python 3.15 prerelease job.
|
|
75
|
+
- Isolated wheel and sdist install-and-scan smoke tests.
|
|
76
|
+
- Checked performance budgets and a synthetic benchmark command.
|
|
77
|
+
- A privacy-minimal 100-repository corpus runner and deterministic
|
|
78
|
+
high-confidence false-positive review worksheet.
|
|
79
|
+
- Complete user, release, security, privacy, and corpus-review documentation.
|
|
80
|
+
- The first end-to-end static-analysis slice, including exact module imports,
|
|
81
|
+
deterministic text and JSON findings, bounded discovery, and stable exits.
|
|
82
|
+
- Initial package, command-line entry point, locked development environment,
|
|
83
|
+
quality policy, build configuration, and CI.
|
|
84
|
+
|
|
85
|
+
### Changed
|
|
86
|
+
|
|
87
|
+
- The package maturity classifier is now Alpha.
|
|
88
|
+
- Gate C now uses accountable review of reproducible public-corpus precision
|
|
89
|
+
evidence; continuous-use adoption is measured after public distribution.
|
|
90
|
+
- Exact `sys.path` mutation ambiguity and removal-safe `hasattr` short circuits
|
|
91
|
+
no longer produce high-confidence post-removal blockers.
|
|
92
|
+
- Corpus scan and read-only Git verification subprocesses have separate,
|
|
93
|
+
configurable finite timeouts.
|
|
94
|
+
- Release install smoke tests now use one explicit run-local child environment,
|
|
95
|
+
resolve online only from public PyPI, and exercise wheel and sdist installation
|
|
96
|
+
from an explicit operator-selected uv cache on every supported hosted
|
|
97
|
+
operating system. CI creates a fresh cache, populates it through the online
|
|
98
|
+
public-PyPI smokes, and then reuses it for offline evidence.
|
|
99
|
+
|
|
100
|
+
### Removed
|
|
101
|
+
|
|
102
|
+
- The milestone controller and its development automation: `scripts/autopilot.py`,
|
|
103
|
+
`automation/`, `docs/autopilot.md`, and the offline controller test suite. The
|
|
104
|
+
source distribution no longer ships the `automation/` tree. Milestone rules,
|
|
105
|
+
protected paths, quality-policy tables, and the Gate C approval requirement are
|
|
106
|
+
retained as prose in `AGENTS.md` and `docs/design.md`.
|
|
107
|
+
|
|
108
|
+
### Fixed
|
|
109
|
+
|
|
110
|
+
- Root-bounded Windows input now reports absent, access-denied, and
|
|
111
|
+
non-directory paths as the corresponding standard `FileNotFoundError`,
|
|
112
|
+
`PermissionError`, and `NotADirectoryError`, instead of a generic NTSTATUS
|
|
113
|
+
`OSError`. Optional configuration, baselines, and evidence are no longer
|
|
114
|
+
misreported as unreadable when they are simply absent.
|
|
115
|
+
|
|
116
|
+
### Security
|
|
117
|
+
|
|
118
|
+
- Documented offline scan, no-telemetry, no-target-execution, filesystem, and
|
|
119
|
+
corpus-data boundaries.
|
|
120
|
+
- Human-readable reports, CLI diagnostics, registry and dependency presentation,
|
|
121
|
+
and project maintenance logs now escape untrusted terminal controls, embedded
|
|
122
|
+
line breaks, and dangerous Unicode separators while preserving printable
|
|
123
|
+
Unicode and deterministic machine formats.
|
|
124
|
+
- Root-bounded Windows output creation and replacement stays anchored to opened
|
|
125
|
+
non-reparse directory handles and fails closed if those APIs are unavailable.
|
|
126
|
+
- Corpus review worksheets carry and verify the exact result digest so a
|
|
127
|
+
partially published pair cannot be mistaken for matching Gate C evidence.
|
|
128
|
+
- Corpus review worksheets quote repository-derived `path`, `subject`, and
|
|
129
|
+
`match_kind` values so a scanned file name cannot become a live formula in a
|
|
130
|
+
reviewer's spreadsheet, and reject an unescaped one when a reviewed worksheet
|
|
131
|
+
is read back. Reviewer prose columns stay free text.
|
|
132
|
+
- Release smoke children no longer inherit ambient installer configuration,
|
|
133
|
+
caches, proxies, Python environments, or credentials, and retained failure
|
|
134
|
+
diagnostics redact common credential forms before truncation.
|
|
135
|
+
|
|
136
|
+
Release headings, dates, and comparison links are added only after their
|
|
137
|
+
immutable tags exist.
|
pyahead-0.2.1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
pyahead-0.2.1/PKG-INFO
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pyahead
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Evidence-backed Python compatibility forecasting
|
|
5
|
+
Project-URL: Documentation, https://github.com/diegorusso/pyahead/blob/main/docs/usage.md
|
|
6
|
+
Project-URL: Issues, https://github.com/diegorusso/pyahead/issues
|
|
7
|
+
Project-URL: Repository, https://github.com/diegorusso/pyahead
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: libcst<2,>=1.8
|
|
22
|
+
Requires-Dist: packaging<27,>=26.2
|
|
23
|
+
Requires-Dist: pathspec<2,>=1.1
|
|
24
|
+
Requires-Dist: pyyaml<7,>=6.0.2
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# PyAhead
|
|
28
|
+
|
|
29
|
+
PyAhead is an evidence-backed Python compatibility forecaster. It scans a
|
|
30
|
+
repository without importing or executing its code, then presents one timeline
|
|
31
|
+
for each known CPython deprecation, removal, call change, or behavior change that
|
|
32
|
+
matches the source.
|
|
33
|
+
|
|
34
|
+
## Limitations — read before use
|
|
35
|
+
|
|
36
|
+
PyAhead is a public alpha. A clean scan is **not proof of compatibility**. The
|
|
37
|
+
bundled registry covers reviewed, statically representable Python-level entries
|
|
38
|
+
from selected CPython sources; it does not cover arbitrary runtime behavior,
|
|
39
|
+
dependencies, C extensions, reflection, generated code, or every Python API.
|
|
40
|
+
Run the repository's tests on every supported target interpreter as well.
|
|
41
|
+
|
|
42
|
+
The default static command does not execute target code, install target
|
|
43
|
+
dependencies, infer general receiver types, resolve arbitrary dynamic imports,
|
|
44
|
+
access the network, or send telemetry. Dependency evidence is a separate opt-in
|
|
45
|
+
command with explicit targets, network policy, and deadlines. Version helpers,
|
|
46
|
+
user-defined constants, patch-level guards, and general control flow outside
|
|
47
|
+
the documented lexical grammar remain unknown.
|
|
48
|
+
Skipped, unreadable, oversized, unparseable, or over-limit source entries make
|
|
49
|
+
analysis incomplete rather than silently clean. See
|
|
50
|
+
[all documented limitations](docs/usage.md#limitations).
|
|
51
|
+
|
|
52
|
+
## Status
|
|
53
|
+
|
|
54
|
+
Version `0.2.1` is the first published public-alpha release. It provides deterministic
|
|
55
|
+
text, JSON, and SARIF 2.1.0 reports; strict project configuration; baselines and
|
|
56
|
+
rule-specific suppressions; version-guard and typing-context reachability; a
|
|
57
|
+
source-linked, coverage-audited CPython registry; opt-in pytest warning
|
|
58
|
+
evidence; and opt-in dependency metadata and isolated-resolution evidence.
|
|
59
|
+
|
|
60
|
+
PyAhead supports host Python 3.11 through 3.14 on Linux, macOS, and Windows.
|
|
61
|
+
The host interpreter is independent of the baseline and horizon Python versions
|
|
62
|
+
being assessed. Python 3.15 prerelease CI is advisory until support is claimed.
|
|
63
|
+
|
|
64
|
+
The first opt-in dynamic provider collects deprecation warnings with an explicit
|
|
65
|
+
pytest plugin in the repository owner's CI, then merges its versioned artifact
|
|
66
|
+
with `pyahead check --evidence`. Observed warnings stay separate from static
|
|
67
|
+
inference; unmatched and different-commit evidence remains visible. PyAhead
|
|
68
|
+
does not run those tests in a hosted scanner.
|
|
69
|
+
|
|
70
|
+
`pyahead dependencies` separately inspects supplied wheel, source-distribution,
|
|
71
|
+
or Core Metadata files without executing build backends. An optional isolated
|
|
72
|
+
`uv` adapter has explicit offline/online and timeout controls. Dependency
|
|
73
|
+
results distinguish exact declared incompatibility, independently corroborated
|
|
74
|
+
constraint failures, closed-wheelhouse target-artifact absence, sample-level
|
|
75
|
+
artifact availability, and incomplete evidence. Direct artifact samples remain
|
|
76
|
+
compatibility unverified until a complete resolution closes the relevant
|
|
77
|
+
inventory, except that an exact, final `Requires-Python` exclusion remains
|
|
78
|
+
declared incompatible.
|
|
79
|
+
|
|
80
|
+
Gate B is exercised by repository tests and clean wheel/sdist installation.
|
|
81
|
+
Gate C requires evidence from 100 active public repositories, at least 95%
|
|
82
|
+
sampled precision for high-confidence findings, false-positive regressions,
|
|
83
|
+
retained limitations, and accountable product-owner approval. Continuous-use
|
|
84
|
+
adoption is measured after the alpha is publicly available; it is not a
|
|
85
|
+
prerequisite for the M7–M8 dynamic-evidence work.
|
|
86
|
+
|
|
87
|
+
## Install
|
|
88
|
+
|
|
89
|
+
After the alpha is published, install it in an isolated tool environment:
|
|
90
|
+
|
|
91
|
+
```console
|
|
92
|
+
pipx install pyahead==0.2.1
|
|
93
|
+
# or run without a persistent tool environment
|
|
94
|
+
uvx pyahead==0.2.1 --version
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Before publication, build and install the candidate from this repository:
|
|
98
|
+
|
|
99
|
+
```console
|
|
100
|
+
uv build
|
|
101
|
+
pipx install dist/pyahead-0.2.1-py3-none-any.whl
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Installing PyAhead may contact the configured package index to obtain PyAhead
|
|
105
|
+
and its dependencies. Running `pyahead check` itself is offline.
|
|
106
|
+
|
|
107
|
+
## Quick start
|
|
108
|
+
|
|
109
|
+
Scan a repository with an explicit inclusive policy:
|
|
110
|
+
|
|
111
|
+
```console
|
|
112
|
+
pyahead check . --baseline-python 3.11 --horizon-python 3.14
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Or declare strict configuration in `pyproject.toml`:
|
|
116
|
+
|
|
117
|
+
```toml
|
|
118
|
+
[tool.pyahead]
|
|
119
|
+
baseline-python = "3.11"
|
|
120
|
+
horizon-python = "3.14"
|
|
121
|
+
include = ["src/**/*.py", "tests/**/*.py"]
|
|
122
|
+
exclude = ["src/generated/**"]
|
|
123
|
+
source-roots = ["src"]
|
|
124
|
+
minimum-confidence = "high"
|
|
125
|
+
fail-on = "breaking"
|
|
126
|
+
respect-gitignore = true
|
|
127
|
+
show-unscheduled = true
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Then run:
|
|
131
|
+
|
|
132
|
+
```console
|
|
133
|
+
pyahead check
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
When the baseline is omitted, PyAhead can infer the lowest supported registry
|
|
137
|
+
minor from `[project].requires-python` and records that provenance in the
|
|
138
|
+
report. It never infers the baseline from the host interpreter.
|
|
139
|
+
|
|
140
|
+
Exit code 1 means an unsuppressed finding met the selected `fail-on` gate; 2
|
|
141
|
+
means invalid command, configuration, or registry input; 3 means analysis was
|
|
142
|
+
incomplete; and 4 means an unexpected internal failure. Exit 0 means only that
|
|
143
|
+
the configured static scan completed without a gated finding.
|
|
144
|
+
|
|
145
|
+
## CI and review workflows
|
|
146
|
+
|
|
147
|
+
Write SARIF or deterministic JSON atomically:
|
|
148
|
+
|
|
149
|
+
```console
|
|
150
|
+
pyahead check --format sarif --output pyahead.sarif
|
|
151
|
+
pyahead check --format json --output pyahead.json --fail-on never
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Adopt existing findings without hiding them from reports:
|
|
155
|
+
|
|
156
|
+
```console
|
|
157
|
+
pyahead baseline create --output .pyahead-baseline.json
|
|
158
|
+
pyahead check --baseline-file .pyahead-baseline.json --fail-new-only
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Inline suppressions are rule-specific and stay auditable:
|
|
162
|
+
|
|
163
|
+
```python
|
|
164
|
+
import cgi # pyahead: ignore[CPY0001] -- migration tracked in issue 42
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Unknown rule IDs remain visible diagnostics. Report, baseline, and output paths
|
|
168
|
+
must remain beneath the selected project root, including through symlinks.
|
|
169
|
+
|
|
170
|
+
Inspect the bundled registry without scanning a repository:
|
|
171
|
+
|
|
172
|
+
```console
|
|
173
|
+
pyahead registry validate
|
|
174
|
+
pyahead registry coverage
|
|
175
|
+
pyahead registry list
|
|
176
|
+
pyahead explain CPY0001
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Documentation
|
|
180
|
+
|
|
181
|
+
- [User guide](docs/usage.md)
|
|
182
|
+
- [Static report JSON Schema](docs/schema/report-v1.json)
|
|
183
|
+
- [Registry authoring](docs/registry-authoring.md)
|
|
184
|
+
- [Security and privacy](docs/security-and-privacy.md)
|
|
185
|
+
- [Performance budgets](docs/usage.md#performance)
|
|
186
|
+
- [100-repository corpus and false-positive review](docs/corpus-review.md)
|
|
187
|
+
- [PyPI top-1000 precision validation](docs/pypi-validation.md)
|
|
188
|
+
- [Release process](docs/releasing.md)
|
|
189
|
+
- [Changelog](CHANGELOG.md)
|
|
190
|
+
- [Product and technical design](docs/design.md)
|
|
191
|
+
|
|
192
|
+
## Development
|
|
193
|
+
|
|
194
|
+
PyAhead requires Python 3.11 or newer. The locked development environment uses
|
|
195
|
+
[uv](https://docs.astral.sh/uv/):
|
|
196
|
+
|
|
197
|
+
```console
|
|
198
|
+
uv sync --frozen
|
|
199
|
+
uv run ruff check .
|
|
200
|
+
uv run ruff format --check .
|
|
201
|
+
uv run mypy src scripts
|
|
202
|
+
uv run pytest
|
|
203
|
+
uv build
|
|
204
|
+
uv run pyahead --version
|
|
205
|
+
uv run python scripts/install_smoke.py --dist-dir dist --kind wheel
|
|
206
|
+
uv run python scripts/install_smoke.py --dist-dir dist --kind sdist
|
|
207
|
+
uv run python scripts/benchmark.py --repeat 1 --output -
|
|
208
|
+
git diff --check
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Project-wide branch coverage is enforced at 90%. A focused pytest invocation
|
|
212
|
+
may therefore fail only because it did not cover the whole package; use
|
|
213
|
+
`--no-cov` for isolated iteration, then run the complete suite.
|
|
214
|
+
|
|
215
|
+
Read [the contribution guide](docs/contributing.md) before proposing a change.
|
|
216
|
+
|
|
217
|
+
## License
|
|
218
|
+
|
|
219
|
+
PyAhead is licensed under the Apache License 2.0. See [LICENSE](LICENSE).
|