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.
Files changed (772) hide show
  1. pyahead-0.2.1/.gitignore +18 -0
  2. pyahead-0.2.1/AGENTS.md +38 -0
  3. pyahead-0.2.1/CHANGELOG.md +137 -0
  4. pyahead-0.2.1/LICENSE +201 -0
  5. pyahead-0.2.1/PKG-INFO +219 -0
  6. pyahead-0.2.1/README.md +193 -0
  7. pyahead-0.2.1/SECURITY.md +13 -0
  8. pyahead-0.2.1/docs/contributing.md +51 -0
  9. pyahead-0.2.1/docs/corpus-review.md +156 -0
  10. pyahead-0.2.1/docs/design.md +2659 -0
  11. pyahead-0.2.1/docs/evidence/binding-not-visible-baseline.md +257 -0
  12. pyahead-0.2.1/docs/evidence/binding-not-visible-static.md +598 -0
  13. pyahead-0.2.1/docs/evidence/binding-not-visible-targeted.md +356 -0
  14. pyahead-0.2.1/docs/evidence/binding-not-visible.md +344 -0
  15. pyahead-0.2.1/docs/evidence/gate-c.md +89 -0
  16. pyahead-0.2.1/docs/evidence/gate-d.md +153 -0
  17. pyahead-0.2.1/docs/evidence/pypi-top-1000.md +645 -0
  18. pyahead-0.2.1/docs/evidence/release-0.2.0.md +219 -0
  19. pyahead-0.2.1/docs/false-positive-review.csv +1 -0
  20. pyahead-0.2.1/docs/plans/20260901-pyahead-0-1-0a2-release-readiness.md +153 -0
  21. pyahead-0.2.1/docs/plans/completed/20260903-validate-pyahead-against-pypi-top-1000.md +194 -0
  22. pyahead-0.2.1/docs/plans/completed/20260910-run-pypi-top-1000-validation.md +1523 -0
  23. pyahead-0.2.1/docs/plans/completed/20260913-investigate-binding-not-visible.md +237 -0
  24. pyahead-0.2.1/docs/pypi-validation.md +473 -0
  25. pyahead-0.2.1/docs/registry-authoring.md +311 -0
  26. pyahead-0.2.1/docs/releasing.md +103 -0
  27. pyahead-0.2.1/docs/schema/dependency-report-v1.json +2243 -0
  28. pyahead-0.2.1/docs/schema/evidence-v1.json +214 -0
  29. pyahead-0.2.1/docs/schema/registry-coverage-v1.json +185 -0
  30. pyahead-0.2.1/docs/schema/registry-index-v1.json +54 -0
  31. pyahead-0.2.1/docs/schema/registry-rule-v1.json +629 -0
  32. pyahead-0.2.1/docs/schema/report-v1.json +1089 -0
  33. pyahead-0.2.1/docs/security-and-privacy.md +350 -0
  34. pyahead-0.2.1/docs/usage.md +638 -0
  35. pyahead-0.2.1/pyproject.toml +117 -0
  36. pyahead-0.2.1/scripts/__init__.py +1 -0
  37. pyahead-0.2.1/scripts/benchmark.py +388 -0
  38. pyahead-0.2.1/scripts/corpus.py +729 -0
  39. pyahead-0.2.1/scripts/install_smoke.py +1140 -0
  40. pyahead-0.2.1/scripts/performance-budgets.json +24 -0
  41. pyahead-0.2.1/scripts/pypi_corpus.py +750 -0
  42. pyahead-0.2.1/scripts/pypi_probe.py +1154 -0
  43. pyahead-0.2.1/scripts/pypi_report.py +510 -0
  44. pyahead-0.2.1/scripts/pypi_validate.py +2140 -0
  45. pyahead-0.2.1/src/pyahead/__init__.py +5 -0
  46. pyahead-0.2.1/src/pyahead/__main__.py +5 -0
  47. pyahead-0.2.1/src/pyahead/_human_text.py +95 -0
  48. pyahead-0.2.1/src/pyahead/_rooted_reader.py +259 -0
  49. pyahead-0.2.1/src/pyahead/_windows_output.py +680 -0
  50. pyahead-0.2.1/src/pyahead/analysis/__init__.py +6 -0
  51. pyahead-0.2.1/src/pyahead/analysis/discovery.py +798 -0
  52. pyahead-0.2.1/src/pyahead/analysis/engine.py +1896 -0
  53. pyahead-0.2.1/src/pyahead/analysis/matchers/__init__.py +5 -0
  54. pyahead-0.2.1/src/pyahead/analysis/matchers/base.py +96 -0
  55. pyahead-0.2.1/src/pyahead/analysis/matchers/builtins.py +29 -0
  56. pyahead-0.2.1/src/pyahead/analysis/matchers/calls.py +248 -0
  57. pyahead-0.2.1/src/pyahead/analysis/matchers/imports.py +84 -0
  58. pyahead-0.2.1/src/pyahead/analysis/matchers/qualified.py +110 -0
  59. pyahead-0.2.1/src/pyahead/analysis/reachability.py +370 -0
  60. pyahead-0.2.1/src/pyahead/analysis/suppressions.py +418 -0
  61. pyahead-0.2.1/src/pyahead/baseline.py +203 -0
  62. pyahead-0.2.1/src/pyahead/cli.py +680 -0
  63. pyahead-0.2.1/src/pyahead/config.py +765 -0
  64. pyahead-0.2.1/src/pyahead/data/__init__.py +1 -0
  65. pyahead-0.2.1/src/pyahead/data/registry/__init__.py +1 -0
  66. pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-101773.yaml +15 -0
  67. pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-84131.yaml +16 -0
  68. pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-94101.yaml +15 -0
  69. pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-94352.yaml +15 -0
  70. pyahead-0.2.1/src/pyahead/data/registry/coverage/cpython-97670.yaml +16 -0
  71. pyahead-0.2.1/src/pyahead/data/registry/coverage/pep-0594.yaml +101 -0
  72. pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.12-deprecated.yaml +198 -0
  73. pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.12-removed.yaml +248 -0
  74. pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.13-deprecated.yaml +129 -0
  75. pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.13-removed.yaml +305 -0
  76. pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.14-deprecated.yaml +121 -0
  77. pyahead-0.2.1/src/pyahead/data/registry/coverage/python-3.14-removed.yaml +175 -0
  78. pyahead-0.2.1/src/pyahead/data/registry/coverage/python-deprecations.yaml +448 -0
  79. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0001.yaml +52 -0
  80. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0002.yaml +53 -0
  81. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0003.yaml +52 -0
  82. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0004.yaml +52 -0
  83. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0005.yaml +53 -0
  84. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0006.yaml +53 -0
  85. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0007.yaml +53 -0
  86. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0008.yaml +53 -0
  87. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0009.yaml +53 -0
  88. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0010.yaml +53 -0
  89. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0011.yaml +53 -0
  90. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0012.yaml +53 -0
  91. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0013.yaml +53 -0
  92. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0014.yaml +53 -0
  93. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0015.yaml +53 -0
  94. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0016.yaml +53 -0
  95. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0017.yaml +53 -0
  96. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0018.yaml +53 -0
  97. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0019.yaml +53 -0
  98. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0020.yaml +53 -0
  99. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0021.yaml +53 -0
  100. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0022.yaml +53 -0
  101. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0023.yaml +47 -0
  102. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0024.yaml +44 -0
  103. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0025.yaml +43 -0
  104. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0026.yaml +42 -0
  105. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0027.yaml +49 -0
  106. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0028.yaml +44 -0
  107. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0029.yaml +46 -0
  108. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0030.yaml +46 -0
  109. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0031.yaml +50 -0
  110. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0032.yaml +45 -0
  111. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0033.yaml +48 -0
  112. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0034.yaml +46 -0
  113. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0035.yaml +47 -0
  114. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0036.yaml +52 -0
  115. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0037.yaml +46 -0
  116. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0038.yaml +48 -0
  117. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0039.yaml +48 -0
  118. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0040.yaml +52 -0
  119. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0041.yaml +50 -0
  120. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0042.yaml +56 -0
  121. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0043.yaml +75 -0
  122. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0044.yaml +44 -0
  123. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0045.yaml +55 -0
  124. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0046.yaml +50 -0
  125. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0047.yaml +82 -0
  126. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0049.yaml +50 -0
  127. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0050.yaml +48 -0
  128. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0051.yaml +41 -0
  129. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0052.yaml +48 -0
  130. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0053.yaml +48 -0
  131. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0054.yaml +48 -0
  132. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0055.yaml +60 -0
  133. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0056.yaml +56 -0
  134. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0057.yaml +52 -0
  135. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0058.yaml +52 -0
  136. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0059.yaml +61 -0
  137. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0060.yaml +74 -0
  138. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0061.yaml +46 -0
  139. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0062.yaml +46 -0
  140. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0063.yaml +45 -0
  141. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0064.yaml +58 -0
  142. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0065.yaml +43 -0
  143. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0066.yaml +41 -0
  144. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0067.yaml +41 -0
  145. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0068.yaml +41 -0
  146. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0069.yaml +43 -0
  147. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0070.yaml +43 -0
  148. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0071.yaml +44 -0
  149. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0072.yaml +57 -0
  150. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0073.yaml +142 -0
  151. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0074.yaml +60 -0
  152. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0075.yaml +48 -0
  153. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0076.yaml +40 -0
  154. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0077.yaml +43 -0
  155. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0078.yaml +41 -0
  156. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0079.yaml +43 -0
  157. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0080.yaml +41 -0
  158. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0082.yaml +113 -0
  159. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0083.yaml +41 -0
  160. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0084.yaml +48 -0
  161. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0085.yaml +41 -0
  162. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0086.yaml +108 -0
  163. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0087.yaml +40 -0
  164. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0088.yaml +48 -0
  165. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0089.yaml +47 -0
  166. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0090.yaml +46 -0
  167. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0091.yaml +41 -0
  168. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0092.yaml +43 -0
  169. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0093.yaml +44 -0
  170. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0094.yaml +46 -0
  171. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0095.yaml +45 -0
  172. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0096.yaml +43 -0
  173. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0097.yaml +51 -0
  174. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0098.yaml +40 -0
  175. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0099.yaml +40 -0
  176. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0100.yaml +47 -0
  177. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0101.yaml +79 -0
  178. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0102.yaml +48 -0
  179. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0103.yaml +40 -0
  180. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0104.yaml +41 -0
  181. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0105.yaml +45 -0
  182. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0106.yaml +40 -0
  183. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0107.yaml +53 -0
  184. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0108.yaml +43 -0
  185. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0109.yaml +56 -0
  186. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0110.yaml +44 -0
  187. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0111.yaml +40 -0
  188. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0112.yaml +48 -0
  189. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0113.yaml +69 -0
  190. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0114.yaml +49 -0
  191. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0115.yaml +44 -0
  192. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0116.yaml +44 -0
  193. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0117.yaml +61 -0
  194. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0118.yaml +43 -0
  195. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0119.yaml +45 -0
  196. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0120.yaml +42 -0
  197. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0121.yaml +46 -0
  198. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0122.yaml +46 -0
  199. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0123.yaml +40 -0
  200. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0124.yaml +44 -0
  201. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0125.yaml +62 -0
  202. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0126.yaml +40 -0
  203. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0127.yaml +60 -0
  204. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0128.yaml +40 -0
  205. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0129.yaml +44 -0
  206. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0131.yaml +43 -0
  207. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0132.yaml +45 -0
  208. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0133.yaml +57 -0
  209. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0135.yaml +44 -0
  210. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0136.yaml +56 -0
  211. pyahead-0.2.1/src/pyahead/data/registry/cpython/CPY0137.yaml +70 -0
  212. pyahead-0.2.1/src/pyahead/data/registry/index.yaml +152 -0
  213. pyahead-0.2.1/src/pyahead/data/registry/releases.yaml +25 -0
  214. pyahead-0.2.1/src/pyahead/data/schema/__init__.py +1 -0
  215. pyahead-0.2.1/src/pyahead/data/schema/report-v1.json +1089 -0
  216. pyahead-0.2.1/src/pyahead/dependencies.py +6949 -0
  217. pyahead-0.2.1/src/pyahead/evidence.py +1120 -0
  218. pyahead-0.2.1/src/pyahead/model.py +779 -0
  219. pyahead-0.2.1/src/pyahead/output.py +324 -0
  220. pyahead-0.2.1/src/pyahead/py.typed +1 -0
  221. pyahead-0.2.1/src/pyahead/pytest_plugin.py +469 -0
  222. pyahead-0.2.1/src/pyahead/registry/__init__.py +7 -0
  223. pyahead-0.2.1/src/pyahead/registry/loader.py +537 -0
  224. pyahead-0.2.1/src/pyahead/registry/presentation.py +264 -0
  225. pyahead-0.2.1/src/pyahead/registry/schema.py +1684 -0
  226. pyahead-0.2.1/src/pyahead/reporting/__init__.py +7 -0
  227. pyahead-0.2.1/src/pyahead/reporting/console.py +413 -0
  228. pyahead-0.2.1/src/pyahead/reporting/json.py +344 -0
  229. pyahead-0.2.1/src/pyahead/reporting/sarif.py +287 -0
  230. pyahead-0.2.1/src/pyahead/reporting/schema.py +466 -0
  231. pyahead-0.2.1/src/pyahead/timeline.py +43 -0
  232. pyahead-0.2.1/src/pyahead/versions.py +59 -0
  233. pyahead-0.2.1/tests/__init__.py +1 -0
  234. pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/alias/source.py +2 -0
  235. pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/ambiguous/source.py +3 -0
  236. pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/negative/source.py +2 -0
  237. pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/positive/source.py +1 -0
  238. pyahead-0.2.1/tests/fixtures/matchers/builtin_pattern/shadowing/source.py +9 -0
  239. pyahead-0.2.1/tests/fixtures/matchers/call_shape/alias/source.py +3 -0
  240. pyahead-0.2.1/tests/fixtures/matchers/call_shape/ambiguous/source.py +8 -0
  241. pyahead-0.2.1/tests/fixtures/matchers/call_shape/namespace_package/source.py +3 -0
  242. pyahead-0.2.1/tests/fixtures/matchers/call_shape/namespace_package/targetpkg/old.py +1 -0
  243. pyahead-0.2.1/tests/fixtures/matchers/call_shape/negative/source.py +3 -0
  244. pyahead-0.2.1/tests/fixtures/matchers/call_shape/positive/source.py +3 -0
  245. pyahead-0.2.1/tests/fixtures/matchers/call_shape/shadowing/source.py +5 -0
  246. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/alias/source.py +3 -0
  247. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/ambiguous/source.py +8 -0
  248. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_alias/source.py +3 -0
  249. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_ambiguous/source.py +8 -0
  250. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_negative/source.py +5 -0
  251. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_positive/source.py +3 -0
  252. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/builtin_shadowing/source.py +6 -0
  253. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/explicit_level_zero/source.py +2 -0
  254. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/local_target/source.py +3 -0
  255. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/local_target/targetpkg.py +1 -0
  256. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/namespace_package/source.py +3 -0
  257. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/namespace_package/targetpkg/old.py +1 -0
  258. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/negative/source.py +4 -0
  259. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/positive/source.py +3 -0
  260. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/relative_level/source.py +2 -0
  261. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/shadowing/source.py +2 -0
  262. pyahead-0.2.1/tests/fixtures/matchers/literal_dynamic_import/unknown_level/source.py +5 -0
  263. pyahead-0.2.1/tests/fixtures/matchers/module_import/alias/source.py +1 -0
  264. pyahead-0.2.1/tests/fixtures/matchers/module_import/ambiguous/source.py +1 -0
  265. pyahead-0.2.1/tests/fixtures/matchers/module_import/ambiguous/targetpkg.py +1 -0
  266. pyahead-0.2.1/tests/fixtures/matchers/module_import/namespace_package/source.py +1 -0
  267. pyahead-0.2.1/tests/fixtures/matchers/module_import/namespace_package/targetpkg/old.py +1 -0
  268. pyahead-0.2.1/tests/fixtures/matchers/module_import/negative/source.py +1 -0
  269. pyahead-0.2.1/tests/fixtures/matchers/module_import/positive/source.py +1 -0
  270. pyahead-0.2.1/tests/fixtures/matchers/module_import/shadowing/source.py +5 -0
  271. pyahead-0.2.1/tests/fixtures/matchers/qualified_call/alias/source.py +3 -0
  272. pyahead-0.2.1/tests/fixtures/matchers/qualified_call/ambiguous/source.py +8 -0
  273. pyahead-0.2.1/tests/fixtures/matchers/qualified_call/namespace_package/source.py +3 -0
  274. pyahead-0.2.1/tests/fixtures/matchers/qualified_call/namespace_package/targetpkg/old.py +1 -0
  275. pyahead-0.2.1/tests/fixtures/matchers/qualified_call/negative/source.py +3 -0
  276. pyahead-0.2.1/tests/fixtures/matchers/qualified_call/positive/source.py +3 -0
  277. pyahead-0.2.1/tests/fixtures/matchers/qualified_call/shadowing/source.py +5 -0
  278. pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/alias/source.py +3 -0
  279. pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/ambiguous/source.py +8 -0
  280. pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/namespace_package/source.py +3 -0
  281. pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/namespace_package/targetpkg/old.py +1 -0
  282. pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/negative/source.py +3 -0
  283. pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/positive/source.py +3 -0
  284. pyahead-0.2.1/tests/fixtures/matchers/qualified_reference/shadowing/source.py +5 -0
  285. pyahead-0.2.1/tests/fixtures/rules/CPY0001/expected.json +106 -0
  286. pyahead-0.2.1/tests/fixtures/rules/CPY0001/negative/local_module/cgi.py +3 -0
  287. pyahead-0.2.1/tests/fixtures/rules/CPY0001/negative/local_module/consumer.py +1 -0
  288. pyahead-0.2.1/tests/fixtures/rules/CPY0001/negative/string_only.py +1 -0
  289. pyahead-0.2.1/tests/fixtures/rules/CPY0001/negative/unrelated_call.py +5 -0
  290. pyahead-0.2.1/tests/fixtures/rules/CPY0001/positive/from_import.py +1 -0
  291. pyahead-0.2.1/tests/fixtures/rules/CPY0001/positive/import_alias.py +1 -0
  292. pyahead-0.2.1/tests/fixtures/rules/CPY0001/positive/import_direct.py +1 -0
  293. pyahead-0.2.1/tests/fixtures/rules/CPY0001/positive/literal_dynamic_import.py +3 -0
  294. pyahead-0.2.1/tests/fixtures/rules/CPY0001/resolution/stub_only/cgi.pyi +1 -0
  295. pyahead-0.2.1/tests/fixtures/rules/CPY0001/resolution/stub_only/consumer.py +1 -0
  296. pyahead-0.2.1/tests/fixtures/rules/CPY0002/expected.json +48 -0
  297. pyahead-0.2.1/tests/fixtures/rules/CPY0002/negative/source.py +1 -0
  298. pyahead-0.2.1/tests/fixtures/rules/CPY0002/positive/source.py +1 -0
  299. pyahead-0.2.1/tests/fixtures/rules/CPY0003/compat/asynchat.py +1 -0
  300. pyahead-0.2.1/tests/fixtures/rules/CPY0003/compatibility/helpers.py +3 -0
  301. pyahead-0.2.1/tests/fixtures/rules/CPY0003/compatibility/source.py +1 -0
  302. pyahead-0.2.1/tests/fixtures/rules/CPY0003/expected.json +73 -0
  303. pyahead-0.2.1/tests/fixtures/rules/CPY0003/negative/source.py +1 -0
  304. pyahead-0.2.1/tests/fixtures/rules/CPY0003/positive/source.py +1 -0
  305. pyahead-0.2.1/tests/fixtures/rules/CPY0004/compat/asyncore.py +1 -0
  306. pyahead-0.2.1/tests/fixtures/rules/CPY0004/compatibility/helpers.py +3 -0
  307. pyahead-0.2.1/tests/fixtures/rules/CPY0004/compatibility/source.py +1 -0
  308. pyahead-0.2.1/tests/fixtures/rules/CPY0004/expected.json +73 -0
  309. pyahead-0.2.1/tests/fixtures/rules/CPY0004/negative/source.py +1 -0
  310. pyahead-0.2.1/tests/fixtures/rules/CPY0004/positive/source.py +1 -0
  311. pyahead-0.2.1/tests/fixtures/rules/CPY0005/expected.json +48 -0
  312. pyahead-0.2.1/tests/fixtures/rules/CPY0005/negative/source.py +1 -0
  313. pyahead-0.2.1/tests/fixtures/rules/CPY0005/positive/source.py +1 -0
  314. pyahead-0.2.1/tests/fixtures/rules/CPY0006/expected.json +48 -0
  315. pyahead-0.2.1/tests/fixtures/rules/CPY0006/negative/source.py +1 -0
  316. pyahead-0.2.1/tests/fixtures/rules/CPY0006/positive/source.py +1 -0
  317. pyahead-0.2.1/tests/fixtures/rules/CPY0007/expected.json +48 -0
  318. pyahead-0.2.1/tests/fixtures/rules/CPY0007/negative/source.py +1 -0
  319. pyahead-0.2.1/tests/fixtures/rules/CPY0007/positive/source.py +1 -0
  320. pyahead-0.2.1/tests/fixtures/rules/CPY0008/expected.json +48 -0
  321. pyahead-0.2.1/tests/fixtures/rules/CPY0008/negative/source.py +1 -0
  322. pyahead-0.2.1/tests/fixtures/rules/CPY0008/positive/source.py +1 -0
  323. pyahead-0.2.1/tests/fixtures/rules/CPY0009/expected.json +48 -0
  324. pyahead-0.2.1/tests/fixtures/rules/CPY0009/negative/source.py +1 -0
  325. pyahead-0.2.1/tests/fixtures/rules/CPY0009/positive/source.py +1 -0
  326. pyahead-0.2.1/tests/fixtures/rules/CPY0010/expected.json +48 -0
  327. pyahead-0.2.1/tests/fixtures/rules/CPY0010/negative/source.py +1 -0
  328. pyahead-0.2.1/tests/fixtures/rules/CPY0010/positive/source.py +1 -0
  329. pyahead-0.2.1/tests/fixtures/rules/CPY0011/expected.json +48 -0
  330. pyahead-0.2.1/tests/fixtures/rules/CPY0011/negative/source.py +1 -0
  331. pyahead-0.2.1/tests/fixtures/rules/CPY0011/positive/source.py +1 -0
  332. pyahead-0.2.1/tests/fixtures/rules/CPY0012/expected.json +48 -0
  333. pyahead-0.2.1/tests/fixtures/rules/CPY0012/negative/source.py +1 -0
  334. pyahead-0.2.1/tests/fixtures/rules/CPY0012/positive/source.py +1 -0
  335. pyahead-0.2.1/tests/fixtures/rules/CPY0013/expected.json +48 -0
  336. pyahead-0.2.1/tests/fixtures/rules/CPY0013/negative/source.py +1 -0
  337. pyahead-0.2.1/tests/fixtures/rules/CPY0013/positive/source.py +1 -0
  338. pyahead-0.2.1/tests/fixtures/rules/CPY0014/expected.json +48 -0
  339. pyahead-0.2.1/tests/fixtures/rules/CPY0014/negative/source.py +1 -0
  340. pyahead-0.2.1/tests/fixtures/rules/CPY0014/positive/source.py +1 -0
  341. pyahead-0.2.1/tests/fixtures/rules/CPY0015/expected.json +48 -0
  342. pyahead-0.2.1/tests/fixtures/rules/CPY0015/negative/source.py +1 -0
  343. pyahead-0.2.1/tests/fixtures/rules/CPY0015/positive/source.py +1 -0
  344. pyahead-0.2.1/tests/fixtures/rules/CPY0016/expected.json +42 -0
  345. pyahead-0.2.1/tests/fixtures/rules/CPY0016/negative/source.py +1 -0
  346. pyahead-0.2.1/tests/fixtures/rules/CPY0016/positive/source.py +1 -0
  347. pyahead-0.2.1/tests/fixtures/rules/CPY0017/expected.json +48 -0
  348. pyahead-0.2.1/tests/fixtures/rules/CPY0017/negative/source.py +1 -0
  349. pyahead-0.2.1/tests/fixtures/rules/CPY0017/positive/source.py +1 -0
  350. pyahead-0.2.1/tests/fixtures/rules/CPY0018/expected.json +48 -0
  351. pyahead-0.2.1/tests/fixtures/rules/CPY0018/negative/source.py +1 -0
  352. pyahead-0.2.1/tests/fixtures/rules/CPY0018/positive/source.py +1 -0
  353. pyahead-0.2.1/tests/fixtures/rules/CPY0019/expected.json +48 -0
  354. pyahead-0.2.1/tests/fixtures/rules/CPY0019/negative/source.py +1 -0
  355. pyahead-0.2.1/tests/fixtures/rules/CPY0019/positive/source.py +1 -0
  356. pyahead-0.2.1/tests/fixtures/rules/CPY0020/expected.json +48 -0
  357. pyahead-0.2.1/tests/fixtures/rules/CPY0020/negative/source.py +1 -0
  358. pyahead-0.2.1/tests/fixtures/rules/CPY0020/positive/source.py +1 -0
  359. pyahead-0.2.1/tests/fixtures/rules/CPY0021/expected.json +48 -0
  360. pyahead-0.2.1/tests/fixtures/rules/CPY0021/negative/source.py +1 -0
  361. pyahead-0.2.1/tests/fixtures/rules/CPY0021/positive/source.py +1 -0
  362. pyahead-0.2.1/tests/fixtures/rules/CPY0022/expected.json +48 -0
  363. pyahead-0.2.1/tests/fixtures/rules/CPY0022/negative/source.py +1 -0
  364. pyahead-0.2.1/tests/fixtures/rules/CPY0022/positive/source.py +1 -0
  365. pyahead-0.2.1/tests/fixtures/rules/CPY0023/expected.json +48 -0
  366. pyahead-0.2.1/tests/fixtures/rules/CPY0023/negative/source.py +1 -0
  367. pyahead-0.2.1/tests/fixtures/rules/CPY0023/positive/source.py +1 -0
  368. pyahead-0.2.1/tests/fixtures/rules/CPY0024/expected.json +48 -0
  369. pyahead-0.2.1/tests/fixtures/rules/CPY0024/negative/source.py +1 -0
  370. pyahead-0.2.1/tests/fixtures/rules/CPY0024/positive/source.py +1 -0
  371. pyahead-0.2.1/tests/fixtures/rules/CPY0025/expected.json +48 -0
  372. pyahead-0.2.1/tests/fixtures/rules/CPY0025/negative/source.py +1 -0
  373. pyahead-0.2.1/tests/fixtures/rules/CPY0025/positive/source.py +3 -0
  374. pyahead-0.2.1/tests/fixtures/rules/CPY0026/expected.json +48 -0
  375. pyahead-0.2.1/tests/fixtures/rules/CPY0026/negative/source.py +1 -0
  376. pyahead-0.2.1/tests/fixtures/rules/CPY0026/positive/source.py +3 -0
  377. pyahead-0.2.1/tests/fixtures/rules/CPY0027/expected.json +48 -0
  378. pyahead-0.2.1/tests/fixtures/rules/CPY0027/negative/source.py +1 -0
  379. pyahead-0.2.1/tests/fixtures/rules/CPY0027/positive/source.py +1 -0
  380. pyahead-0.2.1/tests/fixtures/rules/CPY0028/expected.json +48 -0
  381. pyahead-0.2.1/tests/fixtures/rules/CPY0028/negative/source.py +1 -0
  382. pyahead-0.2.1/tests/fixtures/rules/CPY0028/positive/source.py +1 -0
  383. pyahead-0.2.1/tests/fixtures/rules/CPY0029/expected.json +48 -0
  384. pyahead-0.2.1/tests/fixtures/rules/CPY0029/negative/source.py +1 -0
  385. pyahead-0.2.1/tests/fixtures/rules/CPY0029/positive/source.py +3 -0
  386. pyahead-0.2.1/tests/fixtures/rules/CPY0030/expected.json +48 -0
  387. pyahead-0.2.1/tests/fixtures/rules/CPY0030/negative/source.py +1 -0
  388. pyahead-0.2.1/tests/fixtures/rules/CPY0030/positive/source.py +3 -0
  389. pyahead-0.2.1/tests/fixtures/rules/CPY0031/expected.json +48 -0
  390. pyahead-0.2.1/tests/fixtures/rules/CPY0031/negative/source.py +1 -0
  391. pyahead-0.2.1/tests/fixtures/rules/CPY0031/positive/source.py +3 -0
  392. pyahead-0.2.1/tests/fixtures/rules/CPY0032/expected.json +48 -0
  393. pyahead-0.2.1/tests/fixtures/rules/CPY0032/negative/source.py +1 -0
  394. pyahead-0.2.1/tests/fixtures/rules/CPY0032/positive/source.py +3 -0
  395. pyahead-0.2.1/tests/fixtures/rules/CPY0033/expected.json +48 -0
  396. pyahead-0.2.1/tests/fixtures/rules/CPY0033/negative/source.py +3 -0
  397. pyahead-0.2.1/tests/fixtures/rules/CPY0033/positive/source.py +3 -0
  398. pyahead-0.2.1/tests/fixtures/rules/CPY0034/expected.json +48 -0
  399. pyahead-0.2.1/tests/fixtures/rules/CPY0034/negative/source.py +1 -0
  400. pyahead-0.2.1/tests/fixtures/rules/CPY0034/positive/source.py +3 -0
  401. pyahead-0.2.1/tests/fixtures/rules/CPY0035/expected.json +48 -0
  402. pyahead-0.2.1/tests/fixtures/rules/CPY0035/negative/source.py +1 -0
  403. pyahead-0.2.1/tests/fixtures/rules/CPY0035/positive/source.py +3 -0
  404. pyahead-0.2.1/tests/fixtures/rules/CPY0036/expected.json +48 -0
  405. pyahead-0.2.1/tests/fixtures/rules/CPY0036/negative/source.py +1 -0
  406. pyahead-0.2.1/tests/fixtures/rules/CPY0036/positive/source.py +3 -0
  407. pyahead-0.2.1/tests/fixtures/rules/CPY0037/expected.json +48 -0
  408. pyahead-0.2.1/tests/fixtures/rules/CPY0037/negative/source.py +1 -0
  409. pyahead-0.2.1/tests/fixtures/rules/CPY0037/positive/source.py +3 -0
  410. pyahead-0.2.1/tests/fixtures/rules/CPY0038/expected.json +48 -0
  411. pyahead-0.2.1/tests/fixtures/rules/CPY0038/negative/source.py +1 -0
  412. pyahead-0.2.1/tests/fixtures/rules/CPY0038/positive/source.py +3 -0
  413. pyahead-0.2.1/tests/fixtures/rules/CPY0039/expected.json +48 -0
  414. pyahead-0.2.1/tests/fixtures/rules/CPY0039/negative/source.py +1 -0
  415. pyahead-0.2.1/tests/fixtures/rules/CPY0039/positive/source.py +3 -0
  416. pyahead-0.2.1/tests/fixtures/rules/CPY0040/expected.json +44 -0
  417. pyahead-0.2.1/tests/fixtures/rules/CPY0040/negative/source.py +1 -0
  418. pyahead-0.2.1/tests/fixtures/rules/CPY0040/positive/source.py +3 -0
  419. pyahead-0.2.1/tests/fixtures/rules/CPY0041/expected.json +48 -0
  420. pyahead-0.2.1/tests/fixtures/rules/CPY0041/negative/source.py +1 -0
  421. pyahead-0.2.1/tests/fixtures/rules/CPY0041/positive/source.py +3 -0
  422. pyahead-0.2.1/tests/fixtures/rules/CPY0042/expected.json +48 -0
  423. pyahead-0.2.1/tests/fixtures/rules/CPY0042/negative/source.py +1 -0
  424. pyahead-0.2.1/tests/fixtures/rules/CPY0042/positive/source.py +3 -0
  425. pyahead-0.2.1/tests/fixtures/rules/CPY0043/expected.json +48 -0
  426. pyahead-0.2.1/tests/fixtures/rules/CPY0043/negative/source.py +1 -0
  427. pyahead-0.2.1/tests/fixtures/rules/CPY0043/positive/source.py +3 -0
  428. pyahead-0.2.1/tests/fixtures/rules/CPY0044/expected.json +47 -0
  429. pyahead-0.2.1/tests/fixtures/rules/CPY0044/negative/source.py +1 -0
  430. pyahead-0.2.1/tests/fixtures/rules/CPY0044/positive/source.py +3 -0
  431. pyahead-0.2.1/tests/fixtures/rules/CPY0045/expected.json +75 -0
  432. pyahead-0.2.1/tests/fixtures/rules/CPY0045/negative/source.py +3 -0
  433. pyahead-0.2.1/tests/fixtures/rules/CPY0045/positive/source.py +3 -0
  434. pyahead-0.2.1/tests/fixtures/rules/CPY0045/positive_positional/source.py +3 -0
  435. pyahead-0.2.1/tests/fixtures/rules/CPY0046/expected.json +48 -0
  436. pyahead-0.2.1/tests/fixtures/rules/CPY0046/negative/source.py +3 -0
  437. pyahead-0.2.1/tests/fixtures/rules/CPY0046/positive/source.py +3 -0
  438. pyahead-0.2.1/tests/fixtures/rules/CPY0047/expected.json +48 -0
  439. pyahead-0.2.1/tests/fixtures/rules/CPY0047/negative/source.py +3 -0
  440. pyahead-0.2.1/tests/fixtures/rules/CPY0047/positive/source.py +3 -0
  441. pyahead-0.2.1/tests/fixtures/rules/CPY0049/expected.json +48 -0
  442. pyahead-0.2.1/tests/fixtures/rules/CPY0049/negative/source.py +1 -0
  443. pyahead-0.2.1/tests/fixtures/rules/CPY0049/positive/source.py +3 -0
  444. pyahead-0.2.1/tests/fixtures/rules/CPY0050/expected.json +48 -0
  445. pyahead-0.2.1/tests/fixtures/rules/CPY0050/negative/source.py +1 -0
  446. pyahead-0.2.1/tests/fixtures/rules/CPY0050/positive/source.py +3 -0
  447. pyahead-0.2.1/tests/fixtures/rules/CPY0051/expected.json +48 -0
  448. pyahead-0.2.1/tests/fixtures/rules/CPY0051/negative/source.py +1 -0
  449. pyahead-0.2.1/tests/fixtures/rules/CPY0051/positive/source.py +3 -0
  450. pyahead-0.2.1/tests/fixtures/rules/CPY0052/expected.json +48 -0
  451. pyahead-0.2.1/tests/fixtures/rules/CPY0052/negative/source.py +1 -0
  452. pyahead-0.2.1/tests/fixtures/rules/CPY0052/positive/source.py +3 -0
  453. pyahead-0.2.1/tests/fixtures/rules/CPY0053/expected.json +49 -0
  454. pyahead-0.2.1/tests/fixtures/rules/CPY0053/negative/source.py +1 -0
  455. pyahead-0.2.1/tests/fixtures/rules/CPY0053/positive/source.py +3 -0
  456. pyahead-0.2.1/tests/fixtures/rules/CPY0054/expected.json +48 -0
  457. pyahead-0.2.1/tests/fixtures/rules/CPY0054/negative/source.py +1 -0
  458. pyahead-0.2.1/tests/fixtures/rules/CPY0054/positive/source.py +3 -0
  459. pyahead-0.2.1/tests/fixtures/rules/CPY0055/expected.json +48 -0
  460. pyahead-0.2.1/tests/fixtures/rules/CPY0055/negative/source.py +1 -0
  461. pyahead-0.2.1/tests/fixtures/rules/CPY0055/positive/source.py +3 -0
  462. pyahead-0.2.1/tests/fixtures/rules/CPY0056/expected.json +48 -0
  463. pyahead-0.2.1/tests/fixtures/rules/CPY0056/negative/source.py +1 -0
  464. pyahead-0.2.1/tests/fixtures/rules/CPY0056/positive/source.py +3 -0
  465. pyahead-0.2.1/tests/fixtures/rules/CPY0057/expected.json +75 -0
  466. pyahead-0.2.1/tests/fixtures/rules/CPY0057/negative/source.py +3 -0
  467. pyahead-0.2.1/tests/fixtures/rules/CPY0057/positive/source.py +3 -0
  468. pyahead-0.2.1/tests/fixtures/rules/CPY0057/positive_keyword/source.py +3 -0
  469. pyahead-0.2.1/tests/fixtures/rules/CPY0058/expected.json +48 -0
  470. pyahead-0.2.1/tests/fixtures/rules/CPY0058/negative/source.py +3 -0
  471. pyahead-0.2.1/tests/fixtures/rules/CPY0058/positive/source.py +3 -0
  472. pyahead-0.2.1/tests/fixtures/rules/CPY0059/expected.json +115 -0
  473. pyahead-0.2.1/tests/fixtures/rules/CPY0059/negative/source.py +3 -0
  474. pyahead-0.2.1/tests/fixtures/rules/CPY0059/negative_shapes/source.py +6 -0
  475. pyahead-0.2.1/tests/fixtures/rules/CPY0059/positive/source.py +3 -0
  476. pyahead-0.2.1/tests/fixtures/rules/CPY0059/positive_keywords/source.py +3 -0
  477. pyahead-0.2.1/tests/fixtures/rules/CPY0059/positive_none/source.py +3 -0
  478. pyahead-0.2.1/tests/fixtures/rules/CPY0060/expected.json +76 -0
  479. pyahead-0.2.1/tests/fixtures/rules/CPY0060/negative/source.py +3 -0
  480. pyahead-0.2.1/tests/fixtures/rules/CPY0060/negative_shapes/source.py +7 -0
  481. pyahead-0.2.1/tests/fixtures/rules/CPY0060/positive/source.py +3 -0
  482. pyahead-0.2.1/tests/fixtures/rules/CPY0060/positive_none/source.py +3 -0
  483. pyahead-0.2.1/tests/fixtures/rules/CPY0060/positive_none_total/source.py +3 -0
  484. pyahead-0.2.1/tests/fixtures/rules/CPY0060/positive_total/source.py +3 -0
  485. pyahead-0.2.1/tests/fixtures/rules/CPY0061/expected.json +48 -0
  486. pyahead-0.2.1/tests/fixtures/rules/CPY0061/negative/source.py +1 -0
  487. pyahead-0.2.1/tests/fixtures/rules/CPY0061/positive/source.py +1 -0
  488. pyahead-0.2.1/tests/fixtures/rules/CPY0062/expected.json +48 -0
  489. pyahead-0.2.1/tests/fixtures/rules/CPY0062/negative/source.py +1 -0
  490. pyahead-0.2.1/tests/fixtures/rules/CPY0062/positive/source.py +3 -0
  491. pyahead-0.2.1/tests/fixtures/rules/CPY0063/expected.json +48 -0
  492. pyahead-0.2.1/tests/fixtures/rules/CPY0063/negative/source.py +3 -0
  493. pyahead-0.2.1/tests/fixtures/rules/CPY0063/positive/source.py +3 -0
  494. pyahead-0.2.1/tests/fixtures/rules/CPY0064/expected.json +72 -0
  495. pyahead-0.2.1/tests/fixtures/rules/CPY0064/guarded/source.py +4 -0
  496. pyahead-0.2.1/tests/fixtures/rules/CPY0064/negative/source.py +1 -0
  497. pyahead-0.2.1/tests/fixtures/rules/CPY0064/positive/source.py +3 -0
  498. pyahead-0.2.1/tests/fixtures/rules/CPY0065/expected.json +48 -0
  499. pyahead-0.2.1/tests/fixtures/rules/CPY0065/negative/source.py +1 -0
  500. pyahead-0.2.1/tests/fixtures/rules/CPY0065/positive/source.py +3 -0
  501. pyahead-0.2.1/tests/fixtures/rules/CPY0066/expected.json +48 -0
  502. pyahead-0.2.1/tests/fixtures/rules/CPY0066/negative/source.py +1 -0
  503. pyahead-0.2.1/tests/fixtures/rules/CPY0066/positive/source.py +3 -0
  504. pyahead-0.2.1/tests/fixtures/rules/CPY0067/expected.json +48 -0
  505. pyahead-0.2.1/tests/fixtures/rules/CPY0067/negative/source.py +1 -0
  506. pyahead-0.2.1/tests/fixtures/rules/CPY0067/positive/source.py +3 -0
  507. pyahead-0.2.1/tests/fixtures/rules/CPY0068/expected.json +48 -0
  508. pyahead-0.2.1/tests/fixtures/rules/CPY0068/negative/source.py +1 -0
  509. pyahead-0.2.1/tests/fixtures/rules/CPY0068/positive/source.py +3 -0
  510. pyahead-0.2.1/tests/fixtures/rules/CPY0069/expected.json +48 -0
  511. pyahead-0.2.1/tests/fixtures/rules/CPY0069/negative/source.py +1 -0
  512. pyahead-0.2.1/tests/fixtures/rules/CPY0069/positive/source.py +3 -0
  513. pyahead-0.2.1/tests/fixtures/rules/CPY0070/expected.json +48 -0
  514. pyahead-0.2.1/tests/fixtures/rules/CPY0070/negative/source.py +1 -0
  515. pyahead-0.2.1/tests/fixtures/rules/CPY0070/positive/source.py +3 -0
  516. pyahead-0.2.1/tests/fixtures/rules/CPY0071/expected.json +48 -0
  517. pyahead-0.2.1/tests/fixtures/rules/CPY0071/negative/source.py +1 -0
  518. pyahead-0.2.1/tests/fixtures/rules/CPY0071/positive/source.py +3 -0
  519. pyahead-0.2.1/tests/fixtures/rules/CPY0072/expected.json +61 -0
  520. pyahead-0.2.1/tests/fixtures/rules/CPY0072/negative/source.py +1 -0
  521. pyahead-0.2.1/tests/fixtures/rules/CPY0072/positive/source.py +3 -0
  522. pyahead-0.2.1/tests/fixtures/rules/CPY0072/positive_parsingerror_keyword/source.py +3 -0
  523. pyahead-0.2.1/tests/fixtures/rules/CPY0072/positive_parsingerror_positional/source.py +3 -0
  524. pyahead-0.2.1/tests/fixtures/rules/CPY0073/expected.json +61 -0
  525. pyahead-0.2.1/tests/fixtures/rules/CPY0073/negative/source.py +1 -0
  526. pyahead-0.2.1/tests/fixtures/rules/CPY0073/positive/source.py +3 -0
  527. pyahead-0.2.1/tests/fixtures/rules/CPY0073/positive_loader_keyword/source.py +3 -0
  528. pyahead-0.2.1/tests/fixtures/rules/CPY0073/positive_loader_positional/source.py +4 -0
  529. pyahead-0.2.1/tests/fixtures/rules/CPY0074/expected.json +48 -0
  530. pyahead-0.2.1/tests/fixtures/rules/CPY0074/negative/source.py +1 -0
  531. pyahead-0.2.1/tests/fixtures/rules/CPY0074/positive/source.py +3 -0
  532. pyahead-0.2.1/tests/fixtures/rules/CPY0075/expected.json +54 -0
  533. pyahead-0.2.1/tests/fixtures/rules/CPY0075/negative/source.py +3 -0
  534. pyahead-0.2.1/tests/fixtures/rules/CPY0075/positive/source.py +3 -0
  535. pyahead-0.2.1/tests/fixtures/rules/CPY0075/positive_keyword/source.py +3 -0
  536. pyahead-0.2.1/tests/fixtures/rules/CPY0076/expected.json +48 -0
  537. pyahead-0.2.1/tests/fixtures/rules/CPY0076/negative/source.py +3 -0
  538. pyahead-0.2.1/tests/fixtures/rules/CPY0076/positive/source.py +3 -0
  539. pyahead-0.2.1/tests/fixtures/rules/CPY0077/expected.json +48 -0
  540. pyahead-0.2.1/tests/fixtures/rules/CPY0077/negative/source.py +1 -0
  541. pyahead-0.2.1/tests/fixtures/rules/CPY0077/positive/source.py +3 -0
  542. pyahead-0.2.1/tests/fixtures/rules/CPY0078/expected.json +48 -0
  543. pyahead-0.2.1/tests/fixtures/rules/CPY0078/negative/source.py +1 -0
  544. pyahead-0.2.1/tests/fixtures/rules/CPY0078/positive/source.py +3 -0
  545. pyahead-0.2.1/tests/fixtures/rules/CPY0079/expected.json +49 -0
  546. pyahead-0.2.1/tests/fixtures/rules/CPY0079/negative/source.py +1 -0
  547. pyahead-0.2.1/tests/fixtures/rules/CPY0079/positive/source.py +3 -0
  548. pyahead-0.2.1/tests/fixtures/rules/CPY0080/expected.json +48 -0
  549. pyahead-0.2.1/tests/fixtures/rules/CPY0080/negative/source.py +1 -0
  550. pyahead-0.2.1/tests/fixtures/rules/CPY0080/positive/source.py +3 -0
  551. pyahead-0.2.1/tests/fixtures/rules/CPY0082/expected.json +54 -0
  552. pyahead-0.2.1/tests/fixtures/rules/CPY0082/negative/source.py +3 -0
  553. pyahead-0.2.1/tests/fixtures/rules/CPY0082/positive/source.py +3 -0
  554. pyahead-0.2.1/tests/fixtures/rules/CPY0082/positive_positional/source.py +3 -0
  555. pyahead-0.2.1/tests/fixtures/rules/CPY0083/expected.json +47 -0
  556. pyahead-0.2.1/tests/fixtures/rules/CPY0083/negative/source.py +3 -0
  557. pyahead-0.2.1/tests/fixtures/rules/CPY0083/positive/source.py +3 -0
  558. pyahead-0.2.1/tests/fixtures/rules/CPY0084/expected.json +47 -0
  559. pyahead-0.2.1/tests/fixtures/rules/CPY0084/negative/source.py +3 -0
  560. pyahead-0.2.1/tests/fixtures/rules/CPY0084/positive/source.py +3 -0
  561. pyahead-0.2.1/tests/fixtures/rules/CPY0085/expected.json +47 -0
  562. pyahead-0.2.1/tests/fixtures/rules/CPY0085/negative/source.py +3 -0
  563. pyahead-0.2.1/tests/fixtures/rules/CPY0085/positive/source.py +3 -0
  564. pyahead-0.2.1/tests/fixtures/rules/CPY0086/expected.json +54 -0
  565. pyahead-0.2.1/tests/fixtures/rules/CPY0086/negative/source.py +3 -0
  566. pyahead-0.2.1/tests/fixtures/rules/CPY0086/positive/source.py +3 -0
  567. pyahead-0.2.1/tests/fixtures/rules/CPY0086/positive_keyword/source.py +3 -0
  568. pyahead-0.2.1/tests/fixtures/rules/CPY0087/expected.json +47 -0
  569. pyahead-0.2.1/tests/fixtures/rules/CPY0087/negative/source.py +3 -0
  570. pyahead-0.2.1/tests/fixtures/rules/CPY0087/positive/source.py +3 -0
  571. pyahead-0.2.1/tests/fixtures/rules/CPY0088/expected.json +34 -0
  572. pyahead-0.2.1/tests/fixtures/rules/CPY0088/negative/source.py +3 -0
  573. pyahead-0.2.1/tests/fixtures/rules/CPY0088/positive/source.py +3 -0
  574. pyahead-0.2.1/tests/fixtures/rules/CPY0089/expected.json +21 -0
  575. pyahead-0.2.1/tests/fixtures/rules/CPY0089/negative/source.py +3 -0
  576. pyahead-0.2.1/tests/fixtures/rules/CPY0089/positive/source.py +3 -0
  577. pyahead-0.2.1/tests/fixtures/rules/CPY0090/expected.json +21 -0
  578. pyahead-0.2.1/tests/fixtures/rules/CPY0090/negative/source.py +3 -0
  579. pyahead-0.2.1/tests/fixtures/rules/CPY0090/positive/source.py +3 -0
  580. pyahead-0.2.1/tests/fixtures/rules/CPY0091/expected.json +21 -0
  581. pyahead-0.2.1/tests/fixtures/rules/CPY0091/negative/source.py +3 -0
  582. pyahead-0.2.1/tests/fixtures/rules/CPY0091/positive/source.py +3 -0
  583. pyahead-0.2.1/tests/fixtures/rules/CPY0092/expected.json +1 -0
  584. pyahead-0.2.1/tests/fixtures/rules/CPY0092/negative/source.py +3 -0
  585. pyahead-0.2.1/tests/fixtures/rules/CPY0092/positive/source.py +3 -0
  586. pyahead-0.2.1/tests/fixtures/rules/CPY0093/expected.json +1 -0
  587. pyahead-0.2.1/tests/fixtures/rules/CPY0093/negative/source.py +3 -0
  588. pyahead-0.2.1/tests/fixtures/rules/CPY0093/positive/source.py +3 -0
  589. pyahead-0.2.1/tests/fixtures/rules/CPY0094/expected.json +1 -0
  590. pyahead-0.2.1/tests/fixtures/rules/CPY0094/negative/source.py +3 -0
  591. pyahead-0.2.1/tests/fixtures/rules/CPY0094/positive/source.py +3 -0
  592. pyahead-0.2.1/tests/fixtures/rules/CPY0095/expected.json +1 -0
  593. pyahead-0.2.1/tests/fixtures/rules/CPY0095/negative/source.py +3 -0
  594. pyahead-0.2.1/tests/fixtures/rules/CPY0095/positive/source.py +3 -0
  595. pyahead-0.2.1/tests/fixtures/rules/CPY0096/expected.json +1 -0
  596. pyahead-0.2.1/tests/fixtures/rules/CPY0096/negative/source.py +3 -0
  597. pyahead-0.2.1/tests/fixtures/rules/CPY0096/positive/source.py +3 -0
  598. pyahead-0.2.1/tests/fixtures/rules/CPY0097/expected.json +1 -0
  599. pyahead-0.2.1/tests/fixtures/rules/CPY0097/negative/source.py +3 -0
  600. pyahead-0.2.1/tests/fixtures/rules/CPY0097/positive/source.py +3 -0
  601. pyahead-0.2.1/tests/fixtures/rules/CPY0098/expected.json +1 -0
  602. pyahead-0.2.1/tests/fixtures/rules/CPY0098/negative/source.py +3 -0
  603. pyahead-0.2.1/tests/fixtures/rules/CPY0098/positive/source.py +3 -0
  604. pyahead-0.2.1/tests/fixtures/rules/CPY0099/expected.json +1 -0
  605. pyahead-0.2.1/tests/fixtures/rules/CPY0099/negative/source.py +3 -0
  606. pyahead-0.2.1/tests/fixtures/rules/CPY0099/positive/source.py +3 -0
  607. pyahead-0.2.1/tests/fixtures/rules/CPY0100/expected.json +1 -0
  608. pyahead-0.2.1/tests/fixtures/rules/CPY0100/negative/source.py +3 -0
  609. pyahead-0.2.1/tests/fixtures/rules/CPY0100/positive/source.py +3 -0
  610. pyahead-0.2.1/tests/fixtures/rules/CPY0101/expected.json +65 -0
  611. pyahead-0.2.1/tests/fixtures/rules/CPY0101/negative/source.py +11 -0
  612. pyahead-0.2.1/tests/fixtures/rules/CPY0101/positive/source.py +17 -0
  613. pyahead-0.2.1/tests/fixtures/rules/CPY0102/expected.json +1 -0
  614. pyahead-0.2.1/tests/fixtures/rules/CPY0102/negative/source.py +3 -0
  615. pyahead-0.2.1/tests/fixtures/rules/CPY0102/positive/source.py +3 -0
  616. pyahead-0.2.1/tests/fixtures/rules/CPY0103/expected.json +1 -0
  617. pyahead-0.2.1/tests/fixtures/rules/CPY0103/negative/source.py +3 -0
  618. pyahead-0.2.1/tests/fixtures/rules/CPY0103/positive/source.py +3 -0
  619. pyahead-0.2.1/tests/fixtures/rules/CPY0104/expected.json +1 -0
  620. pyahead-0.2.1/tests/fixtures/rules/CPY0104/negative/source.py +3 -0
  621. pyahead-0.2.1/tests/fixtures/rules/CPY0104/positive/source.py +3 -0
  622. pyahead-0.2.1/tests/fixtures/rules/CPY0105/expected.json +1 -0
  623. pyahead-0.2.1/tests/fixtures/rules/CPY0105/negative/source.py +3 -0
  624. pyahead-0.2.1/tests/fixtures/rules/CPY0105/positive/source.py +3 -0
  625. pyahead-0.2.1/tests/fixtures/rules/CPY0106/expected.json +1 -0
  626. pyahead-0.2.1/tests/fixtures/rules/CPY0106/negative/source.py +1 -0
  627. pyahead-0.2.1/tests/fixtures/rules/CPY0106/positive/source.py +3 -0
  628. pyahead-0.2.1/tests/fixtures/rules/CPY0107/expected.json +1 -0
  629. pyahead-0.2.1/tests/fixtures/rules/CPY0107/negative/source.py +3 -0
  630. pyahead-0.2.1/tests/fixtures/rules/CPY0107/positive/source.py +3 -0
  631. pyahead-0.2.1/tests/fixtures/rules/CPY0108/expected.json +1 -0
  632. pyahead-0.2.1/tests/fixtures/rules/CPY0108/negative/source.py +1 -0
  633. pyahead-0.2.1/tests/fixtures/rules/CPY0108/positive/source.py +1 -0
  634. pyahead-0.2.1/tests/fixtures/rules/CPY0109/expected.json +1 -0
  635. pyahead-0.2.1/tests/fixtures/rules/CPY0109/negative/source.py +3 -0
  636. pyahead-0.2.1/tests/fixtures/rules/CPY0109/positive/source.py +3 -0
  637. pyahead-0.2.1/tests/fixtures/rules/CPY0110/expected.json +1 -0
  638. pyahead-0.2.1/tests/fixtures/rules/CPY0110/negative/source.py +3 -0
  639. pyahead-0.2.1/tests/fixtures/rules/CPY0110/positive/source.py +3 -0
  640. pyahead-0.2.1/tests/fixtures/rules/CPY0111/expected.json +1 -0
  641. pyahead-0.2.1/tests/fixtures/rules/CPY0111/negative/source.py +3 -0
  642. pyahead-0.2.1/tests/fixtures/rules/CPY0111/positive/source.py +3 -0
  643. pyahead-0.2.1/tests/fixtures/rules/CPY0112/expected.json +1 -0
  644. pyahead-0.2.1/tests/fixtures/rules/CPY0112/negative/source.py +3 -0
  645. pyahead-0.2.1/tests/fixtures/rules/CPY0112/positive/source.py +3 -0
  646. pyahead-0.2.1/tests/fixtures/rules/CPY0113/expected.json +1 -0
  647. pyahead-0.2.1/tests/fixtures/rules/CPY0113/negative/source.py +3 -0
  648. pyahead-0.2.1/tests/fixtures/rules/CPY0113/positive/source.py +3 -0
  649. pyahead-0.2.1/tests/fixtures/rules/CPY0114/expected.json +1 -0
  650. pyahead-0.2.1/tests/fixtures/rules/CPY0114/negative/source.py +3 -0
  651. pyahead-0.2.1/tests/fixtures/rules/CPY0114/positive/source.py +3 -0
  652. pyahead-0.2.1/tests/fixtures/rules/CPY0115/expected.json +1 -0
  653. pyahead-0.2.1/tests/fixtures/rules/CPY0115/negative/source.py +3 -0
  654. pyahead-0.2.1/tests/fixtures/rules/CPY0115/positive/source.py +3 -0
  655. pyahead-0.2.1/tests/fixtures/rules/CPY0116/expected.json +1 -0
  656. pyahead-0.2.1/tests/fixtures/rules/CPY0116/negative/source.py +3 -0
  657. pyahead-0.2.1/tests/fixtures/rules/CPY0116/positive/source.py +3 -0
  658. pyahead-0.2.1/tests/fixtures/rules/CPY0117/expected.json +1 -0
  659. pyahead-0.2.1/tests/fixtures/rules/CPY0117/negative/source.py +1 -0
  660. pyahead-0.2.1/tests/fixtures/rules/CPY0117/positive/source.py +1 -0
  661. pyahead-0.2.1/tests/fixtures/rules/CPY0118/expected.json +1 -0
  662. pyahead-0.2.1/tests/fixtures/rules/CPY0118/negative/source.py +7 -0
  663. pyahead-0.2.1/tests/fixtures/rules/CPY0118/positive/source.py +3 -0
  664. pyahead-0.2.1/tests/fixtures/rules/CPY0119/expected.json +1 -0
  665. pyahead-0.2.1/tests/fixtures/rules/CPY0119/negative/source.py +3 -0
  666. pyahead-0.2.1/tests/fixtures/rules/CPY0119/positive/source.py +3 -0
  667. pyahead-0.2.1/tests/fixtures/rules/CPY0120/expected.json +1 -0
  668. pyahead-0.2.1/tests/fixtures/rules/CPY0120/negative/source.py +3 -0
  669. pyahead-0.2.1/tests/fixtures/rules/CPY0120/positive/source.py +3 -0
  670. pyahead-0.2.1/tests/fixtures/rules/CPY0121/expected.json +1 -0
  671. pyahead-0.2.1/tests/fixtures/rules/CPY0121/negative/source.py +3 -0
  672. pyahead-0.2.1/tests/fixtures/rules/CPY0121/positive/source.py +3 -0
  673. pyahead-0.2.1/tests/fixtures/rules/CPY0122/expected.json +1 -0
  674. pyahead-0.2.1/tests/fixtures/rules/CPY0122/negative/source.py +3 -0
  675. pyahead-0.2.1/tests/fixtures/rules/CPY0122/positive/source.py +3 -0
  676. pyahead-0.2.1/tests/fixtures/rules/CPY0123/expected.json +1 -0
  677. pyahead-0.2.1/tests/fixtures/rules/CPY0123/negative/source.py +3 -0
  678. pyahead-0.2.1/tests/fixtures/rules/CPY0123/positive/source.py +3 -0
  679. pyahead-0.2.1/tests/fixtures/rules/CPY0124/expected.json +1 -0
  680. pyahead-0.2.1/tests/fixtures/rules/CPY0124/negative/source.py +3 -0
  681. pyahead-0.2.1/tests/fixtures/rules/CPY0124/positive/source.py +3 -0
  682. pyahead-0.2.1/tests/fixtures/rules/CPY0125/expected.json +1 -0
  683. pyahead-0.2.1/tests/fixtures/rules/CPY0125/negative/source.py +3 -0
  684. pyahead-0.2.1/tests/fixtures/rules/CPY0125/positive/source.py +3 -0
  685. pyahead-0.2.1/tests/fixtures/rules/CPY0126/expected.json +1 -0
  686. pyahead-0.2.1/tests/fixtures/rules/CPY0126/negative/source.py +1 -0
  687. pyahead-0.2.1/tests/fixtures/rules/CPY0126/positive/source.py +3 -0
  688. pyahead-0.2.1/tests/fixtures/rules/CPY0127/expected.json +1 -0
  689. pyahead-0.2.1/tests/fixtures/rules/CPY0127/negative/source.py +3 -0
  690. pyahead-0.2.1/tests/fixtures/rules/CPY0127/positive/source.py +3 -0
  691. pyahead-0.2.1/tests/fixtures/rules/CPY0128/expected.json +1 -0
  692. pyahead-0.2.1/tests/fixtures/rules/CPY0128/negative/source.py +3 -0
  693. pyahead-0.2.1/tests/fixtures/rules/CPY0128/positive/source.py +3 -0
  694. pyahead-0.2.1/tests/fixtures/rules/CPY0129/expected.json +21 -0
  695. pyahead-0.2.1/tests/fixtures/rules/CPY0129/negative/source.py +10 -0
  696. pyahead-0.2.1/tests/fixtures/rules/CPY0129/positive/source.py +3 -0
  697. pyahead-0.2.1/tests/fixtures/rules/CPY0131/expected.json +21 -0
  698. pyahead-0.2.1/tests/fixtures/rules/CPY0131/negative/source.py +3 -0
  699. pyahead-0.2.1/tests/fixtures/rules/CPY0131/positive/source.py +3 -0
  700. pyahead-0.2.1/tests/fixtures/rules/CPY0132/expected.json +21 -0
  701. pyahead-0.2.1/tests/fixtures/rules/CPY0132/negative/source.py +3 -0
  702. pyahead-0.2.1/tests/fixtures/rules/CPY0132/positive/source.py +3 -0
  703. pyahead-0.2.1/tests/fixtures/rules/CPY0133/expected.json +21 -0
  704. pyahead-0.2.1/tests/fixtures/rules/CPY0133/negative/source.py +3 -0
  705. pyahead-0.2.1/tests/fixtures/rules/CPY0133/positive/source.py +3 -0
  706. pyahead-0.2.1/tests/fixtures/rules/CPY0135/expected.json +21 -0
  707. pyahead-0.2.1/tests/fixtures/rules/CPY0135/negative/source.py +3 -0
  708. pyahead-0.2.1/tests/fixtures/rules/CPY0135/positive/source.py +3 -0
  709. pyahead-0.2.1/tests/fixtures/rules/CPY0136/expected.json +21 -0
  710. pyahead-0.2.1/tests/fixtures/rules/CPY0136/negative/source.py +3 -0
  711. pyahead-0.2.1/tests/fixtures/rules/CPY0136/positive/source.py +3 -0
  712. pyahead-0.2.1/tests/fixtures/rules/CPY0137/expected.json +31 -0
  713. pyahead-0.2.1/tests/fixtures/rules/CPY0137/negative/source.py +3 -0
  714. pyahead-0.2.1/tests/fixtures/rules/CPY0137/positive/source.py +3 -0
  715. pyahead-0.2.1/tests/fixtures/schemas/sarif-schema-2.1.0.json +3097 -0
  716. pyahead-0.2.1/tests/golden/__init__.py +1 -0
  717. pyahead-0.2.1/tests/golden/dependency-status-matrix.json +173 -0
  718. pyahead-0.2.1/tests/golden/project/legacy.py +1 -0
  719. pyahead-0.2.1/tests/golden/report.json +156 -0
  720. pyahead-0.2.1/tests/golden/report.txt +17 -0
  721. pyahead-0.2.1/tests/golden/test_dependency_status_matrix.py +280 -0
  722. pyahead-0.2.1/tests/golden/test_reports.py +37 -0
  723. pyahead-0.2.1/tests/integration/__init__.py +1 -0
  724. pyahead-0.2.1/tests/integration/test_cli_m1.py +263 -0
  725. pyahead-0.2.1/tests/integration/test_cli_m2.py +405 -0
  726. pyahead-0.2.1/tests/integration/test_cli_m3.py +359 -0
  727. pyahead-0.2.1/tests/integration/test_cli_m4.py +908 -0
  728. pyahead-0.2.1/tests/integration/test_cli_m7.py +129 -0
  729. pyahead-0.2.1/tests/integration/test_cli_m8.py +787 -0
  730. pyahead-0.2.1/tests/integration/test_public_surface.py +155 -0
  731. pyahead-0.2.1/tests/integration/test_pypi_validation.py +312 -0
  732. pyahead-0.2.1/tests/integration/test_pytest_plugin.py +690 -0
  733. pyahead-0.2.1/tests/test_cli.py +38 -0
  734. pyahead-0.2.1/tests/unit/__init__.py +1 -0
  735. pyahead-0.2.1/tests/unit/test_analysis.py +721 -0
  736. pyahead-0.2.1/tests/unit/test_annotation_introspection.py +77 -0
  737. pyahead-0.2.1/tests/unit/test_baseline.py +385 -0
  738. pyahead-0.2.1/tests/unit/test_cli_human_output.py +287 -0
  739. pyahead-0.2.1/tests/unit/test_config.py +496 -0
  740. pyahead-0.2.1/tests/unit/test_dependencies.py +8277 -0
  741. pyahead-0.2.1/tests/unit/test_dependency_report_schema.py +1543 -0
  742. pyahead-0.2.1/tests/unit/test_discovery.py +729 -0
  743. pyahead-0.2.1/tests/unit/test_evidence.py +781 -0
  744. pyahead-0.2.1/tests/unit/test_gates.py +122 -0
  745. pyahead-0.2.1/tests/unit/test_human_text.py +56 -0
  746. pyahead-0.2.1/tests/unit/test_install_smoke.py +1293 -0
  747. pyahead-0.2.1/tests/unit/test_m6_hardening.py +576 -0
  748. pyahead-0.2.1/tests/unit/test_matcher_helpers.py +270 -0
  749. pyahead-0.2.1/tests/unit/test_matchers.py +872 -0
  750. pyahead-0.2.1/tests/unit/test_output.py +1744 -0
  751. pyahead-0.2.1/tests/unit/test_precision_regressions.py +379 -0
  752. pyahead-0.2.1/tests/unit/test_pypi_corpus.py +990 -0
  753. pyahead-0.2.1/tests/unit/test_pypi_probe.py +1788 -0
  754. pyahead-0.2.1/tests/unit/test_pypi_report.py +827 -0
  755. pyahead-0.2.1/tests/unit/test_pypi_validate.py +2313 -0
  756. pyahead-0.2.1/tests/unit/test_pytest_plugin.py +92 -0
  757. pyahead-0.2.1/tests/unit/test_reachability.py +317 -0
  758. pyahead-0.2.1/tests/unit/test_registry.py +720 -0
  759. pyahead-0.2.1/tests/unit/test_registry_coverage.py +897 -0
  760. pyahead-0.2.1/tests/unit/test_registry_coverage_schema.py +208 -0
  761. pyahead-0.2.1/tests/unit/test_registry_schema.py +770 -0
  762. pyahead-0.2.1/tests/unit/test_report_schema.py +240 -0
  763. pyahead-0.2.1/tests/unit/test_reporting.py +433 -0
  764. pyahead-0.2.1/tests/unit/test_rooted_consumers.py +230 -0
  765. pyahead-0.2.1/tests/unit/test_rooted_reader.py +336 -0
  766. pyahead-0.2.1/tests/unit/test_sarif.py +357 -0
  767. pyahead-0.2.1/tests/unit/test_script_human_output.py +179 -0
  768. pyahead-0.2.1/tests/unit/test_suppressions.py +547 -0
  769. pyahead-0.2.1/tests/unit/test_timeline.py +80 -0
  770. pyahead-0.2.1/tests/unit/test_typing_alias_contexts.py +98 -0
  771. pyahead-0.2.1/tests/unit/test_versions.py +63 -0
  772. pyahead-0.2.1/uv.lock +748 -0
@@ -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
@@ -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).