policyengine-core 3.34.5__tar.gz → 3.34.7__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 (505) hide show
  1. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/CHANGELOG.md +14 -0
  2. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/PKG-INFO +1 -1
  3. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/pyproject.toml +1 -1
  4. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_release_tagging.py +524 -20
  5. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/ISSUE_TEMPLATE.md +0 -0
  6. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  7. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/actionlint.yaml +0 -0
  8. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/bump_version.py +0 -0
  9. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/changelog_template.md +0 -0
  10. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/get-changelog-diff.sh +0 -0
  11. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/has-functional-changes.sh +0 -0
  12. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/is-version-number-acceptable.sh +0 -0
  13. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/publish-git-tag.sh +0 -0
  14. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/requirements/legacy-country-smoke.txt +0 -0
  15. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/workflows/pr.yaml +0 -0
  16. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.github/workflows/push.yaml +0 -0
  17. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.gitignore +0 -0
  18. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/.python-version +0 -0
  19. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/AGENTS.md +0 -0
  20. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/CLAUDE.md +0 -0
  21. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/CONTRIBUTING.md +0 -0
  22. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/LICENSE +0 -0
  23. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/MANIFEST.in +0 -0
  24. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/Makefile +0 -0
  25. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/README.md +0 -0
  26. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/_build/logs/myst.build.json +0 -0
  27. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/changelog.d/.gitkeep +0 -0
  28. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/_config.yml +0 -0
  29. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/_static/style.css +0 -0
  30. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/_toc.yml +0 -0
  31. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/add_plotly_to_book.py +0 -0
  32. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/contributing/intro.md +0 -0
  33. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/engineering/skills/README.md +0 -0
  34. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/engineering/skills/documentation_review.md +0 -0
  35. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/engineering/skills/github-prs.md +0 -0
  36. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/engineering/skills/testing.md +0 -0
  37. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/intro.md +0 -0
  38. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/logo.png +0 -0
  39. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/commons.md +0 -0
  40. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/country_template.md +0 -0
  41. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/data.md +0 -0
  42. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/data_storage.md +0 -0
  43. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/entities.md +0 -0
  44. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/enums.md +0 -0
  45. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/errors.md +0 -0
  46. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/experimental.md +0 -0
  47. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/extension_template.md +0 -0
  48. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/holders.md +0 -0
  49. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/parameters.md +0 -0
  50. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/periods.md +0 -0
  51. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/populations.md +0 -0
  52. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/projectors.md +0 -0
  53. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/reforms.md +0 -0
  54. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/scripts.md +0 -0
  55. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/simulations.md +0 -0
  56. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/taxbenefitsystems.md +0 -0
  57. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/taxscales.md +0 -0
  58. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/tools.md +0 -0
  59. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/tracers.md +0 -0
  60. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/types.md +0 -0
  61. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/variables.md +0 -0
  62. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/python_api/warnings.md +0 -0
  63. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/usage/branches.md +0 -0
  64. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/usage/country.ipynb +0 -0
  65. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/usage/datasets.ipynb +0 -0
  66. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/usage/parameters.md +0 -0
  67. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/usage/reforms.ipynb +0 -0
  68. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/docs/usage/simulation.ipynb +0 -0
  69. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/mypy.ini +0 -0
  70. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/__init__.py +0 -0
  71. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/build_metadata.py +0 -0
  72. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/charts/__init__.py +0 -0
  73. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/charts/bar.py +0 -0
  74. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/charts/formatting.py +0 -0
  75. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/commons/__init__.py +0 -0
  76. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/commons/formulas.py +0 -0
  77. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/commons/misc.py +0 -0
  78. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/commons/rates.py +0 -0
  79. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/__init__.py +0 -0
  80. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/constants.py +0 -0
  81. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/data/__init__.py +0 -0
  82. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/data/datasets/__init__.py +0 -0
  83. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/data/datasets/country_template_dataset.py +0 -0
  84. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/entities.py +0 -0
  85. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/modelled_policies.yaml +0 -0
  86. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/benefits/basic_income.yaml +0 -0
  87. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/benefits/housing_allowance.yaml +0 -0
  88. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/benefits/index.yaml +0 -0
  89. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/benefits/parenting_allowance/amount.yaml +0 -0
  90. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/benefits/parenting_allowance/income_threshold.yaml +0 -0
  91. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/general/age_of_majority.yaml +0 -0
  92. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/general/age_of_retirement.yaml +0 -0
  93. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/taxes/housing_tax.yaml +0 -0
  94. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/taxes/income_tax_rate.yaml +0 -0
  95. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/parameters/taxes/social_security_contribution.yaml +0 -0
  96. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/reforms/__init__.py +0 -0
  97. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/reforms/add_dynamic_variable.py +0 -0
  98. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/reforms/add_new_tax.py +0 -0
  99. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/reforms/flat_social_security_contribution.py +0 -0
  100. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/reforms/modify_social_security_taxation.py +0 -0
  101. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/reforms/removal_basic_income.py +0 -0
  102. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/situation_examples/__init__.py +0 -0
  103. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/situation_examples/couple.json +0 -0
  104. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/situation_examples/housing.json +0 -0
  105. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/situation_examples/single.json +0 -0
  106. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/age.yaml +0 -0
  107. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/basic_income.yaml +0 -0
  108. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/disposable_income.yaml +0 -0
  109. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/housing_allowance.yaml +0 -0
  110. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/housing_tax.yaml +0 -0
  111. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/income_tax.yaml +0 -0
  112. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/reforms/add_dynamic_variable.yaml +0 -0
  113. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/reforms/add_new_tax.yaml +0 -0
  114. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/reforms/modify_social_security_taxation.yaml +0 -0
  115. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/situations/income_tax.yaml +0 -0
  116. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/situations/parenting_allowance.yaml +0 -0
  117. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/social_security_contribution.yaml +0 -0
  118. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/tests/test_microsimulation.py +0 -0
  119. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/variables/__init__.py +0 -0
  120. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/variables/benefits.py +0 -0
  121. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/variables/demographics.py +0 -0
  122. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/variables/housing.py +0 -0
  123. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/variables/ids.py +0 -0
  124. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/variables/income.py +0 -0
  125. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/variables/stats.py +0 -0
  126. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/country_template/variables/taxes.py +0 -0
  127. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data/__init__.py +0 -0
  128. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data/dataset.py +0 -0
  129. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_storage/__init__.py +0 -0
  130. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_storage/in_memory_storage.py +0 -0
  131. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_storage/on_disk_storage.py +0 -0
  132. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_storage/storage_directory.py +0 -0
  133. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_storage/store_history.py +0 -0
  134. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_structures/__init__.py +0 -0
  135. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_structures/parameter_metadata.py +0 -0
  136. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_structures/parameter_node_metadata.py +0 -0
  137. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_structures/reference.py +0 -0
  138. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/data_structures/unit.py +0 -0
  139. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/entities/__init__.py +0 -0
  140. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/entities/entity.py +0 -0
  141. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/entities/group_entity.py +0 -0
  142. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/entities/helpers.py +0 -0
  143. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/entities/role.py +0 -0
  144. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/enums/__init__.py +0 -0
  145. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/enums/config.py +0 -0
  146. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/enums/enum.py +0 -0
  147. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/enums/enum_array.py +0 -0
  148. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/__init__.py +0 -0
  149. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/cycle_error.py +0 -0
  150. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/empty_argument_error.py +0 -0
  151. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/nan_creation_error.py +0 -0
  152. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/non_deterministic_formula_error.py +0 -0
  153. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/parameter_not_found_error.py +0 -0
  154. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/parameter_parsing_error.py +0 -0
  155. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/period_mismatch_error.py +0 -0
  156. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/situation_parsing_error.py +0 -0
  157. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/spiral_error.py +0 -0
  158. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/variable_name_conflict_error.py +0 -0
  159. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/errors/variable_not_found_error.py +0 -0
  160. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/experimental/__init__.py +0 -0
  161. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/experimental/memory_config.py +0 -0
  162. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/extension_template/__init__.py +0 -0
  163. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/extension_template/local_benefit.py +0 -0
  164. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/extension_template/parameters/local_town/child_allowance/amount.yaml +0 -0
  165. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/extension_template/parameters/local_town/child_allowance/index.yaml +0 -0
  166. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/extension_template/parameters/local_town/index.yaml +0 -0
  167. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/extension_template/tests/local_benefit.yaml +0 -0
  168. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/holders/__init__.py +0 -0
  169. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/holders/helpers.py +0 -0
  170. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/holders/holder.py +0 -0
  171. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/model_api.py +0 -0
  172. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/__init__.py +0 -0
  173. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/at_instant_like.py +0 -0
  174. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/config.py +0 -0
  175. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/helpers.py +0 -0
  176. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/operations/__init__.py +0 -0
  177. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/operations/get_parameter.py +0 -0
  178. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/operations/homogenize_parameters.py +0 -0
  179. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/operations/interpolate_parameters.py +0 -0
  180. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/operations/propagate_parameter_metadata.py +0 -0
  181. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/operations/uprate_parameters.py +0 -0
  182. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/parameter.py +0 -0
  183. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/parameter_at_instant.py +0 -0
  184. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/parameter_node.py +0 -0
  185. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/parameter_node_at_instant.py +0 -0
  186. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/parameter_scale.py +0 -0
  187. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/parameter_scale_bracket.py +0 -0
  188. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/parameters/vectorial_parameter_node_at_instant.py +0 -0
  189. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/periods/__init__.py +0 -0
  190. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/periods/config.py +0 -0
  191. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/periods/helpers.py +0 -0
  192. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/periods/instant_.py +0 -0
  193. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/periods/period_.py +0 -0
  194. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/populations/__init__.py +0 -0
  195. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/populations/config.py +0 -0
  196. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/populations/group_population.py +0 -0
  197. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/populations/population.py +0 -0
  198. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/projectors/__init__.py +0 -0
  199. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/projectors/entity_to_person_projector.py +0 -0
  200. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/projectors/first_person_to_entity_projector.py +0 -0
  201. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/projectors/helpers.py +0 -0
  202. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/projectors/projector.py +0 -0
  203. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/projectors/unique_role_to_entity_projector.py +0 -0
  204. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/reforms/__init__.py +0 -0
  205. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/reforms/reform.py +0 -0
  206. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/scripts/__init__.py +0 -0
  207. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/scripts/assets/__init__.py +0 -0
  208. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/scripts/assets/index.html +0 -0
  209. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/scripts/policyengine_command.py +0 -0
  210. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/scripts/run_data.py +0 -0
  211. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/scripts/run_test.py +0 -0
  212. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/scripts/simulation_generator.py +0 -0
  213. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/simulations/__init__.py +0 -0
  214. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/simulations/helpers.py +0 -0
  215. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/simulations/individual_sim.py +0 -0
  216. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/simulations/microsimulation.py +0 -0
  217. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/simulations/simulation.py +0 -0
  218. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/simulations/simulation_builder.py +0 -0
  219. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/simulations/simulation_macro_cache.py +0 -0
  220. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxbenefitsystems/__init__.py +0 -0
  221. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxbenefitsystems/tax_benefit_system.py +0 -0
  222. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/__init__.py +0 -0
  223. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/abstract_rate_tax_scale.py +0 -0
  224. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/abstract_tax_scale.py +0 -0
  225. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/amount_tax_scale_like.py +0 -0
  226. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/helpers.py +0 -0
  227. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/linear_average_rate_tax_scale.py +0 -0
  228. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/marginal_amount_tax_scale.py +0 -0
  229. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/marginal_rate_tax_scale.py +0 -0
  230. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/rate_tax_scale_like.py +0 -0
  231. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/single_amount_tax_scale.py +0 -0
  232. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/taxscales/tax_scale_like.py +0 -0
  233. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tools/__init__.py +0 -0
  234. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tools/google_cloud.py +0 -0
  235. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tools/hugging_face.py +0 -0
  236. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tools/simulation_dumper.py +0 -0
  237. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tools/test_from_situation.py +0 -0
  238. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tools/test_runner.py +0 -0
  239. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tools/win_file_manager.py +0 -0
  240. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/__init__.py +0 -0
  241. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/computation_log.py +0 -0
  242. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/flat_trace.py +0 -0
  243. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/full_tracer.py +0 -0
  244. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/performance_log.py +0 -0
  245. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/simple_tracer.py +0 -0
  246. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/trace_node.py +0 -0
  247. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/tracing_parameter_node_at_instant.py +0 -0
  248. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/tracers/variable_graph.py +0 -0
  249. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/types/__init__.py +0 -0
  250. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/types/data_types/__init__.py +0 -0
  251. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/types/data_types/arrays.py +0 -0
  252. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/variables/__init__.py +0 -0
  253. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/variables/config.py +0 -0
  254. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/variables/defined_for.py +0 -0
  255. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/variables/formula_randomness.py +0 -0
  256. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/variables/helpers.py +0 -0
  257. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/variables/typing.py +0 -0
  258. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/variables/variable.py +0 -0
  259. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/warnings/__init__.py +0 -0
  260. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/warnings/libyaml_warning.py +0 -0
  261. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/warnings/memory_config_warning.py +0 -0
  262. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/warnings/parameter_key_warning.py +0 -0
  263. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/policyengine_core/warnings/tempfile_warning.py +0 -0
  264. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/pytest.ini +0 -0
  265. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/__init__.py +0 -0
  266. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/conftest.py +0 -0
  267. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/__init__.py +0 -0
  268. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/commons/__init__.py +0 -0
  269. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/commons/test_between_function.py +0 -0
  270. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/commons/test_formulas.py +0 -0
  271. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/commons/test_is_in_function.py +0 -0
  272. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/commons/test_random_seed.py +0 -0
  273. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/commons/test_rates.py +0 -0
  274. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/data/test_dataset.py +0 -0
  275. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/enums/test_enum.py +0 -0
  276. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/model_api/test_index_.py +0 -0
  277. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/__init__.py +0 -0
  278. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/array_type.yaml +0 -0
  279. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/duplicate_key.yaml +0 -0
  280. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/filesystem_hierarchy/empty_index_file/index.yaml +0 -0
  281. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/filesystem_hierarchy/node1/param.yaml +0 -0
  282. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/indentation.yaml +0 -0
  283. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/missing_value.yaml +0 -0
  284. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/parameter_for_unit_propagation.yaml +0 -0
  285. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/test_parameter_clone.py +0 -0
  286. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/test_parameter_validation.py +0 -0
  287. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/test_propagate_units.py +0 -0
  288. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/test_unknown_keys.py +0 -0
  289. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/unexpected_key_in_parameter.yaml +0 -0
  290. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/unexpected_key_in_scale.yaml +0 -0
  291. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/unexpected_key_in_value_at_instant.yaml +0 -0
  292. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/unexpected_key_in_value_history.yaml +0 -0
  293. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/unknown_key_beside_values.yaml +0 -0
  294. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/uprating_under_metadata.yaml +0 -0
  295. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/wrong_date.yaml +0 -0
  296. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/wrong_scale.yaml +0 -0
  297. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/wrong_type_in_bracket.yaml +0 -0
  298. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/wrong_type_in_brackets.yaml +0 -0
  299. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/wrong_type_in_parameter.yaml +0 -0
  300. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/wrong_type_in_scale.yaml +0 -0
  301. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/wrong_type_in_value_history.yaml +0 -0
  302. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/wrong_value.yaml +0 -0
  303. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameter_validation/yaml_hierarchy/node1.yaml +0 -0
  304. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/operations/test_interpolation.py +0 -0
  305. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/operations/test_nesting.py +0 -0
  306. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/operations/test_propagation.py +0 -0
  307. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/operations/test_scale_threshold_uprating.py +0 -0
  308. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/operations/test_uprating.py +0 -0
  309. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/test_numpy2_structured_arrays.py +0 -0
  310. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/test_parameter_metadata_clone.py +0 -0
  311. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/test_parameter_metadata_clone_property.py +0 -0
  312. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/test_vectorial_parameter_node_copy.py +0 -0
  313. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters/test_vectorial_parameter_node_copy_property.py +0 -0
  314. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters_fancy_indexing/__init__.py +0 -0
  315. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters_fancy_indexing/bareme.yaml +0 -0
  316. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters_fancy_indexing/local_tax.yaml +0 -0
  317. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters_fancy_indexing/rate.yaml +0 -0
  318. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters_fancy_indexing/test_fancy_indexing.py +0 -0
  319. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/parameters_fancy_indexing/test_fancy_indexing_property.py +0 -0
  320. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/simulations/test_formula_randomness_concurrency.py +0 -0
  321. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/__init__.py +0 -0
  322. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_abstract_rate_tax_scale.py +0 -0
  323. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_abstract_tax_scale.py +0 -0
  324. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_linear_average_rate_tax_scale.py +0 -0
  325. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_linear_average_rate_tax_scale_property.py +0 -0
  326. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_marginal_amount_tax_scale.py +0 -0
  327. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_marginal_rate_tax_scale.py +0 -0
  328. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_rate_scale_conversion_property.py +0 -0
  329. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_rate_tax_scale_like.py +0 -0
  330. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_single_amount_tax_scale.py +0 -0
  331. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tax_scales/test_tax_scales_commons.py +0 -0
  332. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_apply_reform_invalidates_cache.py +0 -0
  333. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_apply_reform_preserves_user_inputs.py +0 -0
  334. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_assert_near_precision.py +0 -0
  335. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_axes.py +0 -0
  336. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_bincount_minlength.py +0 -0
  337. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_branch_helper_invalidation.py +0 -0
  338. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_branch_input_fixed_point.py +0 -0
  339. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_branch_input_fixed_point_property.py +0 -0
  340. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_branch_input_invalidation.py +0 -0
  341. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_branch_input_invalidation_property.py +0 -0
  342. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_branch_scoped_delete_arrays.py +0 -0
  343. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_branch_shared_arrays.py +0 -0
  344. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_branch_shared_arrays_differential.py +0 -0
  345. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_build_metadata.py +0 -0
  346. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_calculate_output.py +0 -0
  347. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_carry_over_order.py +0 -0
  348. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_carry_over_order_property.py +0 -0
  349. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_clone_invalidated_caches.py +0 -0
  350. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_clone_rebinding.py +0 -0
  351. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_clone_rebinding_property.py +0 -0
  352. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_clone_reform_baseline.py +0 -0
  353. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_clone_reform_baseline_property.py +0 -0
  354. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_countries.py +0 -0
  355. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_cycles.py +0 -0
  356. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_data_storage_dir.py +0 -0
  357. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_data_storage_dir_property.py +0 -0
  358. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_dataset_default_role.py +0 -0
  359. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_dataset_default_role_property.py +0 -0
  360. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_dataset_getattr.py +0 -0
  361. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_dataset_unknown_column_warning.py +0 -0
  362. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_default_simulation_count_property.py +0 -0
  363. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_disk_period_filenames.py +0 -0
  364. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_disk_storage_differential.py +0 -0
  365. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_disk_storage_ownership.py +0 -0
  366. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_docs_deployment.py +0 -0
  367. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_dump_restore.py +0 -0
  368. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_dump_restore_property.py +0 -0
  369. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_entities.py +0 -0
  370. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_eternity_subperiods.py +0 -0
  371. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_extensions.py +0 -0
  372. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_fast_cache.py +0 -0
  373. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_fast_cache_contained_periods.py +0 -0
  374. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_fast_cache_contained_periods_property.py +0 -0
  375. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_fast_cache_guards.py +0 -0
  376. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_formulas.py +0 -0
  377. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_group_population_empty.py +0 -0
  378. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_group_population_reductions_property.py +0 -0
  379. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_holder_branch_fallback.py +0 -0
  380. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_holder_write_fast_cache.py +0 -0
  381. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_holder_write_fast_cache_property.py +0 -0
  382. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_holders.py +0 -0
  383. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_input_tier_invalidation.py +0 -0
  384. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_join_with_persons_identity.py +0 -0
  385. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_join_with_persons_identity_property.py +0 -0
  386. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_macro_cache_not_singleton.py +0 -0
  387. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_medium_fixes.py +0 -0
  388. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_microsimulation_person_accessor.py +0 -0
  389. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_microsimulation_weights.py +0 -0
  390. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_on_disk_storage_clones.py +0 -0
  391. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_opt_out_cache.py +0 -0
  392. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_option_result_cache.py +0 -0
  393. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_option_result_cache_property.py +0 -0
  394. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_option_result_input_provenance.py +0 -0
  395. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_own_period_input_overlapping_cache.py +0 -0
  396. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_pandas3_compatibility.py +0 -0
  397. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_parameter_security.py +0 -0
  398. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_parameters.py +0 -0
  399. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_periods.py +0 -0
  400. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_projectors.py +0 -0
  401. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_reform_baseline_system.py +0 -0
  402. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_reform_parameter_isolation.py +0 -0
  403. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_reform_period_keys.py +0 -0
  404. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_reforms.py +0 -0
  405. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_registered_input_deletion.py +0 -0
  406. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_rerun_fixture_isolation.py +0 -0
  407. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_restore_input_provenance.py +0 -0
  408. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_restore_input_registry.py +0 -0
  409. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_restore_input_registry_property.py +0 -0
  410. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_set_input_helper_order.py +0 -0
  411. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_set_input_helper_order_property.py +0 -0
  412. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_simulation_builder.py +0 -0
  413. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_simulation_copy_pickle.py +0 -0
  414. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_simulation_copy_pickle_property.py +0 -0
  415. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_simulations.py +0 -0
  416. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_stable_hash_seed.py +0 -0
  417. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_stale_frame_cache.py +0 -0
  418. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_storage_anchored_periods.py +0 -0
  419. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_storage_delete_branch.py +0 -0
  420. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_storage_input_index.py +0 -0
  421. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_storage_shared_index.py +0 -0
  422. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_storage_shared_index_differential.py +0 -0
  423. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_baseline_branch.py +0 -0
  424. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_computed_values.py +0 -0
  425. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_computed_values_property.py +0 -0
  426. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_deleted_inputs.py +0 -0
  427. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_entity_weight_totals.py +0 -0
  428. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_inputs_only.py +0 -0
  429. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_inputs_only_property.py +0 -0
  430. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_invalidates_cache.py +0 -0
  431. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_membership_ids.py +0 -0
  432. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_restore_inputs.py +0 -0
  433. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_sampling_period.py +0 -0
  434. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_sampling_period_property.py +0 -0
  435. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_structural_ids.py +0 -0
  436. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_subsample_weight_fallback.py +0 -0
  437. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_tax_benefit_system_cache_identity.py +0 -0
  438. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_tracers.py +0 -0
  439. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_tracing_parameter_isolation.py +0 -0
  440. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_tracing_parameter_isolation_properties.py +0 -0
  441. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_uprating_order.py +0 -0
  442. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_uprating_order_property.py +0 -0
  443. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_user_input_keys.py +0 -0
  444. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_user_input_keys_property.py +0 -0
  445. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_user_input_keys_soundness.py +0 -0
  446. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_variable_code_sharing.py +0 -0
  447. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_variable_code_sharing_property.py +0 -0
  448. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/test_yaml.py +0 -0
  449. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tools/__init__.py +0 -0
  450. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tools/test_assert_near.py +0 -0
  451. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tools/test_google_cloud.py +0 -0
  452. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tools/test_hugging_face.py +0 -0
  453. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tools/test_runner/test_gc_pause.py +0 -0
  454. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/tools/test_runner/test_yaml_runner.py +0 -0
  455. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_adds.py +0 -0
  456. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_annualize.py +0 -0
  457. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_bounds.py +0 -0
  458. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_defined_for.py +0 -0
  459. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_formula_randomness.py +0 -0
  460. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_non_numeric_uprating_and_defined_for.py +0 -0
  461. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_subtracts.py +0 -0
  462. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_subtracts_sign.py +0 -0
  463. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_variable_clone.py +0 -0
  464. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_variable_formula_determinism.py +0 -0
  465. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_variable_uprating.py +0 -0
  466. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/core/variables/test_variables.py +0 -0
  467. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/__init__.py +0 -0
  468. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/appclient.py +0 -0
  469. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/branch_input_invalidation.py +0 -0
  470. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/branch_shared_arrays.py +0 -0
  471. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/carry_over.py +0 -0
  472. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/data_storage_dir.py +0 -0
  473. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/disk_storage.py +0 -0
  474. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/entities.py +0 -0
  475. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/fast_cache_contained_periods.py +0 -0
  476. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/option_caches.py +0 -0
  477. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/parameter_metadata_clones.py +0 -0
  478. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/set_input_helper_order.py +0 -0
  479. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/simulation_copy.py +0 -0
  480. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/simulations.py +0 -0
  481. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/subsample_inputs.py +0 -0
  482. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/taxbenefitsystems.py +0 -0
  483. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/tracing.py +0 -0
  484. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/uprated_inputs.py +0 -0
  485. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/uprating_order.py +0 -0
  486. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/variables.py +0 -0
  487. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/vectorial_parameter_nodes.py +0 -0
  488. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/__init__.py +0 -0
  489. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/directory/subdirectory/test_4.yaml +0 -0
  490. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/directory/test_1.yaml +0 -0
  491. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/directory/test_2.yaml +0 -0
  492. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/failing_test_absolute_error_margin.yaml +0 -0
  493. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/failing_test_relative_error_margin.yaml +0 -0
  494. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_absolute_error_margin.yaml +0 -0
  495. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_failure.yaml +0 -0
  496. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_name_filter.yaml +0 -0
  497. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_relative_error_margin.yaml +0 -0
  498. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_success.yml +0 -0
  499. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_with_anchors.yaml +0 -0
  500. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_with_extension.yaml +0 -0
  501. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_with_reform.yaml +0 -0
  502. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/fixtures/yaml_tests/test_with_reform_2.yaml +0 -0
  503. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/smoke/test_country_init.py +0 -0
  504. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/tests/smoke/test_us.py +0 -0
  505. {policyengine_core-3.34.5 → policyengine_core-3.34.7}/uv.lock +0 -0
@@ -1,3 +1,17 @@
1
+ ## [3.34.7] - 2026-11-05
2
+
3
+ ### Changed
4
+
5
+ - The release tests now pin each line break their Makefile parser refuses (vertical tab, `\x1c` to `\x1e`, `\x85`, U+2028 and U+2029), and check that it reads a CRLF copy of the root `Makefile` the same as the LF one.
6
+
7
+
8
+ ## [3.34.6] - 2026-11-05
9
+
10
+ ### Changed
11
+
12
+ - The release tests now also fail if the root `Makefile` mentions `.IGNORE`, `.ONESHELL`, `MAKEFLAGS` (also inside a longer name such as `GNUMAKEFLAGS`) or `PYTEST_ADDOPTS`, or assigns `SHELL` or `.SHELLFLAGS` (with any assignment operator, also target-specific). They fail if it holds a conditional (`ifeq` … `endif`), a `define` block, `.RECIPEPREFIX`, a line that ends in `\` or a line break other than a newline (such as a form feed), which their recipe parser can't follow. They fail if a target on any of its rule lines, or a prerequisite that `make test` runs at any depth, lacks exactly one single-colon rule line that starts in the first column with no `;` recipe on it. They fail if a recipe line of `make test` or of a prerequisite it runs at any depth (order-only included) contains `||` or ends in `; true`, `; exit 0` or `; :`. The parser reads past comment-only lines inside a recipe, as make does. The tests also fail if the workflow, the Test job or the push workflow's test step sets `MAKEFLAGS` in `env`. They fail if any workflow job other than `push.yaml`'s Publish declares `environment: pypi` or gets `id-token: write` (from its own `permissions`, the workflow's, or `write-all`). A missing test step's failure message now says how to update the locator.
13
+
14
+
1
15
  ## [3.34.5] - 2026-11-03
2
16
 
3
17
  ### Changed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: policyengine-core
3
- Version: 3.34.5
3
+ Version: 3.34.7
4
4
  Summary: Core microsimulation engine enabling country-specific policy models.
5
5
  Project-URL: Homepage, https://github.com/policyengine/policyengine-core
6
6
  Author-email: PolicyEngine <hello@policyengine.org>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "policyengine-core"
3
- version = "3.34.5"
3
+ version = "3.34.7"
4
4
  description = "Core microsimulation engine enabling country-specific policy models."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -405,22 +405,59 @@ def pypi_publishing_actions(actions: Path) -> list[str]:
405
405
  ]
406
406
 
407
407
 
408
+ # Make syntax that make_rules does not follow, so recipe lines after it could
409
+ # run unread: a conditional or define block, a changed recipe prefix, or a
410
+ # backslash at the end of a line.
411
+ MAKE_SYNTAX_MAKE_RULES_SKIPS = re.compile(
412
+ r"^[ \t\f\v]*((override|export)\s+)*(ifn?eq|ifn?def|else|endif|define|endef)\b"
413
+ r"|\.RECIPEPREFIX|\\$",
414
+ re.MULTILINE,
415
+ )
416
+
417
+ # Python ends a line at \r, \v, \f, \x1c to \x1e, \x85, \u2028 and \u2029
418
+ # as well as at \n: read_text turns a lone \r into \n, and splitlines splits
419
+ # at the rest. make ends a line only at \n. So make_rules would read a recipe
420
+ # line such as `cmd $(if ,<form feed>)|| true` as two lines and miss its
421
+ # `|| true` or upload.
422
+ MAKE_LINE_BREAK_MAKE_IGNORES = re.compile(r"\r(?!\n)|[\v\f\x1c-\x1e\x85\u2028\u2029]")
423
+
424
+
408
425
  def make_rules(makefile: Path) -> dict[str, tuple[list[str], list[str]]]:
409
426
  """Each target's prerequisites and recipe lines (without the tab).
410
427
 
411
- Enough for this Makefile: it has no line continuations, includes or
412
- pattern rules.
428
+ Reads rule lines that start in the first column with a single colon, and
429
+ the tab-indented lines after each one as its recipe. Like make, it reads
430
+ past blank lines and lines of just a comment among recipe lines; any
431
+ other line ends the recipe. It fails on a conditional, a define block,
432
+ .RECIPEPREFIX, a line that ends in a backslash or a line break other than
433
+ a newline, since recipe lines after them could run unread. It also fails
434
+ on a recipe line that opens with a directive word, such as `else`, which
435
+ it can't tell from a directive. It misreads a double-colon, indented or
436
+ repeated rule line and a `;` recipe on the rule line, which
437
+ make_targets_make_rules_misreads reports, and it doesn't follow include
438
+ or pattern rules.
413
439
  """
440
+ assert not MAKE_LINE_BREAK_MAKE_IGNORES.search(makefile.read_bytes().decode()), (
441
+ "make_rules cannot read a line break other than \\n or \\r\\n in the Makefile"
442
+ )
443
+ text = makefile.read_text()
444
+ assert not MAKE_SYNTAX_MAKE_RULES_SKIPS.search(text), (
445
+ "make_rules cannot read a conditional, define block, .RECIPEPREFIX, "
446
+ "line continuation or recipe line that opens with a directive word in "
447
+ "the Makefile"
448
+ )
414
449
  rules = {}
415
450
  recipe = []
416
- for line in makefile.read_text().splitlines():
451
+ for line in text.splitlines():
417
452
  if line.startswith("\t"):
418
453
  recipe.append(line[1:])
419
454
  elif rule := MAKE_RULE.match(line):
420
455
  recipe = []
421
456
  for target in rule.group(1).split():
422
457
  rules[target] = (rule.group(2).split(), recipe)
423
- elif line.strip():
458
+ # make ignores blank lines and lines of just a comment among recipe
459
+ # lines, so neither ends a recipe.
460
+ elif line.strip() and not line.lstrip().startswith("#"):
424
461
  recipe = []
425
462
  return rules
426
463
 
@@ -437,21 +474,82 @@ def pypi_uploading_recipe_lines(makefile: Path) -> list[str]:
437
474
  def test_only_push_publish_job_uploads_to_pypi():
438
475
  # The checks above cover push.yaml's Publish job alone, so an upload in
439
476
  # any other job or workflow file would reach PyPI without them.
440
- # Recognises the pypa publish action, twine upload and
441
- # uv/poetry/flit/hatch/pdm/maturin publish in workflow steps, local
442
- # composite action steps and Makefile recipes, and rejects reusable
443
- # workflows from other repositories; not uploads inside scripts or remote
444
- # actions.
477
+ # Recognises the pypa publish action (lower-case owner), and twine upload
478
+ # and uv/poetry/flit/hatch/pdm/maturin publish written as adjacent words,
479
+ # in workflow steps, composite action steps under .github/actions and root
480
+ # Makefile recipes (each target must have one rule line that make_rules
481
+ # reads), and rejects reusable workflows from other repositories.
482
+ # It misses uploads inside scripts and remote, Docker or JavaScript
483
+ # actions; test_only_publish_job_gets_pypi_credentials limits those that
484
+ # rely on trusted publishing.
445
485
  assert pypi_publishing_jobs(WORKFLOWS) == [("push.yaml", "Publish")]
446
486
  assert remote_reusable_workflow_jobs(WORKFLOWS) == [], (
447
487
  "a job calls a reusable workflow from another repository"
448
488
  )
449
489
  assert pypi_publishing_actions(ACTIONS) == [], "a composite action uploads to PyPI"
490
+ assert make_targets_make_rules_misreads(MAKEFILE) == [], (
491
+ "a Makefile target needs exactly one single-colon rule line"
492
+ )
450
493
  assert pypi_uploading_recipe_lines(MAKEFILE) == [], (
451
494
  "a Makefile recipe uploads to PyPI"
452
495
  )
453
496
 
454
497
 
498
+ def pypi_environment(job: dict) -> bool:
499
+ # environment: is a name, or a mapping with a name and a url.
500
+ environment = job.get("environment")
501
+ if isinstance(environment, dict):
502
+ environment = environment.get("name")
503
+ return str(environment).lower() == "pypi"
504
+
505
+
506
+ def grants_id_token(permissions) -> bool:
507
+ return permissions == "write-all" or (
508
+ isinstance(permissions, dict) and permissions.get("id-token") == "write"
509
+ )
510
+
511
+
512
+ def pypi_credential_jobs(workflows: Path) -> list[tuple[str, str, list[str]]]:
513
+ """Each job that declares the pypi environment or an id-token: write grant.
514
+
515
+ A job without permissions of its own is checked against the workflow's.
516
+ The environment name is compared ignoring case.
517
+ """
518
+ return [
519
+ (file_name, name, grants)
520
+ for file_name, workflow in load_workflows(workflows)
521
+ for name, job in (workflow.get("jobs") or {}).items()
522
+ if (
523
+ grants := [
524
+ grant
525
+ for grant, declared in [
526
+ ("environment: pypi", pypi_environment(job)),
527
+ (
528
+ "id-token: write",
529
+ grants_id_token(
530
+ job.get("permissions", workflow.get("permissions"))
531
+ ),
532
+ ),
533
+ ]
534
+ if declared
535
+ ]
536
+ )
537
+ ]
538
+
539
+
540
+ def test_only_publish_job_gets_pypi_credentials():
541
+ # Per the comment on push.yaml's Publish job, PyPI trusted publishing
542
+ # accepts uploads only from push.yaml in the pypi environment, and Publish
543
+ # declares that environment and id-token: write for it. The scan above
544
+ # cannot read inside a remote, Docker or JavaScript action, so this keeps
545
+ # both declarations off every other job. It rests on PyPI's
546
+ # trusted-publisher settings, which these tests cannot read, and does not
547
+ # cover an upload that uses a stored API token.
548
+ assert pypi_credential_jobs(WORKFLOWS) == [
549
+ ("push.yaml", "Publish", ["environment: pypi", "id-token: write"])
550
+ ]
551
+
552
+
455
553
  def copy_workflows_with_pr_test_job_change(tmp_path: Path, change) -> None:
456
554
  shutil.copytree(WORKFLOWS, tmp_path, dirs_exist_ok=True)
457
555
  pr_workflow = tmp_path / "pr.yaml"
@@ -498,6 +596,62 @@ def test_reusable_workflow_check_finds_only_remote_workflows(tmp_path):
498
596
  assert remote_reusable_workflow_jobs(tmp_path) == [("pr.yaml", "Remote")]
499
597
 
500
598
 
599
+ @pytest.mark.parametrize(
600
+ ("change", "grants"),
601
+ [
602
+ ({"environment": "pypi"}, ["environment: pypi"]),
603
+ (
604
+ {"environment": {"name": "PyPI", "url": "https://pypi.org"}},
605
+ ["environment: pypi"],
606
+ ),
607
+ ({"permissions": {"id-token": "write"}}, ["id-token: write"]),
608
+ ({"permissions": "write-all"}, ["id-token: write"]),
609
+ (
610
+ {"environment": "pypi", "permissions": {"id-token": "write"}},
611
+ ["environment: pypi", "id-token: write"],
612
+ ),
613
+ ],
614
+ ids=[
615
+ "environment",
616
+ "environment-mapping",
617
+ "id-token",
618
+ "write-all",
619
+ "both",
620
+ ],
621
+ )
622
+ def test_pypi_credential_check_finds_another_job(tmp_path, change, grants):
623
+ copy_workflows_with_pr_test_job_change(
624
+ tmp_path, lambda jobs: jobs["Test"].update(change)
625
+ )
626
+
627
+ assert pypi_credential_jobs(tmp_path) == [
628
+ ("pr.yaml", "Test", grants),
629
+ ("push.yaml", "Publish", ["environment: pypi", "id-token: write"]),
630
+ ]
631
+
632
+
633
+ def test_pypi_credential_check_applies_workflow_permissions(tmp_path):
634
+ shutil.copytree(WORKFLOWS, tmp_path, dirs_exist_ok=True)
635
+ workflow = {
636
+ "on": "push",
637
+ "permissions": {"id-token": "write"},
638
+ "jobs": {
639
+ "Inherits": {"runs-on": "ubuntu-latest", "steps": [{"run": "true"}]},
640
+ "Overrides": {
641
+ "runs-on": "ubuntu-latest",
642
+ "permissions": {"contents": "read"},
643
+ "steps": [{"run": "true"}],
644
+ },
645
+ },
646
+ }
647
+ (tmp_path / "other.yaml").write_text(yaml.safe_dump(workflow))
648
+
649
+ assert pypi_credential_jobs(tmp_path) == [
650
+ ("other.yaml", "Inherits", ["id-token: write"]),
651
+ ("push.yaml", "Publish", ["environment: pypi", "id-token: write"]),
652
+ ]
653
+
654
+
501
655
  @pytest.mark.parametrize("file_name", ["action.yml", "action.yaml"])
502
656
  def test_pypi_upload_check_finds_upload_in_composite_action(tmp_path, file_name):
503
657
  action = tmp_path / "publish" / file_name
@@ -544,7 +698,8 @@ def assert_test_job_fails_when_tests_fail(workflow: dict) -> None:
544
698
  only_step(
545
699
  steps,
546
700
  lambda step: step.get("run", "").split()[:2] == ["make", "test"],
547
- "test",
701
+ "test (a step whose run starts with the words `make test`; if the "
702
+ "command moved, update this locator and the exact match below)",
548
703
  )
549
704
  ]
550
705
  # A skipped step does not fail the job, so a condition on the step that
@@ -573,25 +728,93 @@ def assert_test_job_fails_when_tests_fail(workflow: dict) -> None:
573
728
  "PYTEST_ADDOPTS" in (item.get("env") or {})
574
729
  for item in [workflow, test_job, test_step]
575
730
  ), "Test sets PYTEST_ADDOPTS"
731
+ # make takes options from MAKEFLAGS, so MAKEFLAGS=-i lets make test pass
732
+ # after a recipe line fails, as `make -i test` would.
733
+ assert not any(
734
+ "MAKEFLAGS" in (item.get("env") or {})
735
+ for item in [workflow, test_job, test_step]
736
+ ), "Test sets MAKEFLAGS"
737
+
738
+
739
+ # A setting that lets make test pass after a recipe line fails: any mention of
740
+ # .IGNORE or .ONESHELL (with .ONESHELL only the last line's status counts), any
741
+ # mention of MAKEFLAGS, including GNUMAKEFLAGS (=, +=, override, export,
742
+ # $(eval ...)), or a SHELL or .SHELLFLAGS of its own, also target-specific
743
+ # (`test: SHELL = /bin/true`).
744
+ # Any mention of PYTEST_ADDOPTS fails it too. make passes a variable named
745
+ # in an `export` line to the commands it runs, and pytest adds the options
746
+ # in PYTEST_ADDOPTS to its command line, so `export PYTEST_ADDOPTS =
747
+ # --collect-only` lets make test pass without running tests.
748
+ # Reading MAKEFLAGS, as `$(MAKEFLAGS)` does, also fails this check: a loud
749
+ # false positive, and the Makefile has no such line.
750
+ MAKE_SETTING_THAT_MASKS = re.compile(
751
+ r"\.(IGNORE|ONESHELL)\b|MAKEFLAGS|PYTEST_ADDOPTS|(?<![\w.])(SHELL|\.SHELLFLAGS)\s*[:+?!]*="
752
+ )
753
+ # A recipe line that ends its own failure: `cmd || ...`, or one that ends in
754
+ # `; true`, `; exit 0` or `; :`. It also fails, loudly, on text that masks
755
+ # nothing, such as a recipe comment `# a || b` or `echo 'a || b'`.
756
+ MASKED_RECIPE_LINE = re.compile(r"\|\||;\s*(true|exit\s+0|:)\s*$")
757
+ # Any rule line, including a double-colon one and one indented with spaces,
758
+ # which make reads as a rule line too.
759
+ ANY_MAKE_RULE = re.compile(r"^ *([^\s:=#][^:=#]*?)\s*(::?)(?![:=])(.*)$")
760
+
761
+
762
+ def make_targets_make_rules_misreads(makefile: Path) -> list[str]:
763
+ """Targets whose recipe make_rules may not read as make does.
764
+
765
+ make_rules keeps only a target's last rule line, skips double-colon rules
766
+ and rule lines indented with spaces, and reads a recipe written after `;`
767
+ on the rule line as prerequisites. So each target needs exactly one rule
768
+ line, single-colon, starting in the first column, with no `;`.
769
+ """
770
+ lines = {}
771
+ for line in makefile.read_text().splitlines():
772
+ if rule := ANY_MAKE_RULE.match(line):
773
+ for target in rule.group(1).split():
774
+ lines.setdefault(target, []).append(line)
775
+ return sorted(
776
+ target
777
+ for target, rule_lines in lines.items()
778
+ if len(rule_lines) != 1
779
+ or not (rule := MAKE_RULE.match(rule_lines[0]))
780
+ or ";" in rule.group(2)
781
+ )
576
782
 
577
783
 
578
- def assert_make_test_fails_when_tests_fail(
579
- rules: dict[str, tuple[list[str], list[str]]],
580
- ) -> None:
581
- prerequisites, _ = rules["test"]
582
- # make ignores a failing recipe line whose prefix (any mix of @, + and -
583
- # after the tab) includes -, so make test could pass after tests fail.
584
- for target in ["test", *prerequisites]:
585
- for line in rules.get(target, ([], []))[1]:
784
+ def assert_make_test_fails_when_tests_fail(makefile: Path) -> None:
785
+ assert not MAKE_SETTING_THAT_MASKS.search(makefile.read_text()), (
786
+ "the Makefile can ignore recipe failures"
787
+ )
788
+ rules = make_rules(makefile)
789
+ misread = make_targets_make_rules_misreads(makefile)
790
+ # make runs test's prerequisites at every depth, and their recipes.
791
+ checked, queue = [], ["test"]
792
+ while queue:
793
+ target = queue.pop()
794
+ if target in checked:
795
+ continue
796
+ checked.append(target)
797
+ assert target in rules and target not in misread, (
798
+ f"make {target} needs exactly one single-colon rule line"
799
+ )
800
+ prerequisites, recipe = rules[target]
801
+ # `|` separates order-only prerequisites, which make also runs.
802
+ queue += [name for name in prerequisites if name != "|"]
803
+ for line in recipe:
804
+ # make ignores a failing recipe line whose prefix (any mix of @, +
805
+ # and - after the tab) includes -.
586
806
  prefix = line[: len(line) - len(line.lstrip("@+- \t"))]
587
807
  assert "-" not in prefix, f"make {target} ignores a failing recipe line"
808
+ assert not MASKED_RECIPE_LINE.search(line), (
809
+ f"make {target} masks a failing command: {line}"
810
+ )
588
811
 
589
812
 
590
813
  def test_test_job_cannot_pass_with_failing_tests():
591
814
  workflow = yaml.safe_load(PUSH_WORKFLOW.read_text())
592
815
 
593
816
  assert_test_job_fails_when_tests_fail(workflow)
594
- assert_make_test_fails_when_tests_fail(make_rules(MAKEFILE))
817
+ assert_make_test_fails_when_tests_fail(MAKEFILE)
595
818
 
596
819
 
597
820
  def find_test_step(workflow: dict) -> dict:
@@ -642,6 +865,18 @@ def collect_tests_only_in_workflow(workflow: dict) -> None:
642
865
  workflow["env"] = {"PYTEST_ADDOPTS": "--collect-only"}
643
866
 
644
867
 
868
+ def ignore_make_errors_in_test_step(workflow: dict) -> None:
869
+ find_test_step(workflow)["env"] = {"MAKEFLAGS": "-i"}
870
+
871
+
872
+ def ignore_make_errors_in_test_job(workflow: dict) -> None:
873
+ workflow["jobs"]["Test"]["env"] = {"MAKEFLAGS": "-i"}
874
+
875
+
876
+ def ignore_make_errors_in_workflow(workflow: dict) -> None:
877
+ workflow["env"] = {"MAKEFLAGS": "-i"}
878
+
879
+
645
880
  @pytest.mark.parametrize(
646
881
  ("mutate", "violation"),
647
882
  [
@@ -657,6 +892,9 @@ def collect_tests_only_in_workflow(workflow: dict) -> None:
657
892
  (collect_tests_only_in_test_step, "Test sets PYTEST_ADDOPTS"),
658
893
  (collect_tests_only_in_test_job, "Test sets PYTEST_ADDOPTS"),
659
894
  (collect_tests_only_in_workflow, "Test sets PYTEST_ADDOPTS"),
895
+ (ignore_make_errors_in_test_step, "Test sets MAKEFLAGS"),
896
+ (ignore_make_errors_in_test_job, "Test sets MAKEFLAGS"),
897
+ (ignore_make_errors_in_workflow, "Test sets MAKEFLAGS"),
660
898
  ]
661
899
  ],
662
900
  )
@@ -695,4 +933,270 @@ def test_make_test_check_rejects_ignored_recipe_failure(tmp_path, target, prefix
695
933
  with pytest.raises(
696
934
  AssertionError, match=f"make {target} ignores a failing recipe line"
697
935
  ):
698
- assert_make_test_fails_when_tests_fail(make_rules(makefile))
936
+ assert_make_test_fails_when_tests_fail(makefile)
937
+
938
+
939
+ @pytest.mark.parametrize(
940
+ "run",
941
+ ["make -C . test", "uv run make test"],
942
+ )
943
+ def test_test_job_check_explains_missing_test_step(run):
944
+ workflow = yaml.safe_load(PUSH_WORKFLOW.read_text())
945
+ find_test_step(workflow)["run"] = run
946
+
947
+ with pytest.raises(AssertionError) as failure:
948
+ assert_test_job_fails_when_tests_fail(workflow)
949
+
950
+ message = str(failure.value).splitlines()[0]
951
+ assert message.startswith("expected one test (a step whose run starts with")
952
+ assert "update this locator and the exact match below" in message
953
+ assert message.endswith("found []")
954
+
955
+
956
+ def write_makefile(tmp_path: Path, text: str) -> Path:
957
+ makefile = tmp_path / "Makefile"
958
+ makefile.write_text(text)
959
+ return makefile
960
+
961
+
962
+ @pytest.mark.parametrize(
963
+ "setting",
964
+ [
965
+ ".IGNORE: test",
966
+ ".IGNORE:",
967
+ " .IGNORE:",
968
+ ".IGNORE: # c",
969
+ ".IGNORE:test",
970
+ "foo .IGNORE:",
971
+ "$(eval .IGNORE:)",
972
+ ".ONESHELL:",
973
+ "MAKEFLAGS += -i",
974
+ "export MAKEFLAGS = -i",
975
+ " MAKEFLAGS := i",
976
+ "override MAKEFLAGS += -i",
977
+ "$(eval MAKEFLAGS += -i)",
978
+ "GNUMAKEFLAGS += -i",
979
+ "SHELL := /bin/true",
980
+ "override SHELL = /bin/true",
981
+ ".SHELLFLAGS := -c true",
982
+ "test: SHELL = /bin/true",
983
+ "export PYTEST_ADDOPTS = --collect-only",
984
+ "test: export PYTEST_ADDOPTS = --collect-only",
985
+ ],
986
+ )
987
+ def test_make_test_check_rejects_setting_that_masks(tmp_path, setting):
988
+ makefile = write_makefile(tmp_path, f"{setting}\n" + MAKEFILE.read_text())
989
+
990
+ with pytest.raises(AssertionError, match="the Makefile can ignore recipe failures"):
991
+ assert_make_test_fails_when_tests_fail(makefile)
992
+
993
+
994
+ def edit_makefile(tmp_path: Path, old: str, new: str) -> Path:
995
+ text = MAKEFILE.read_text()
996
+ assert text.count(old) == 1
997
+ return write_makefile(tmp_path, text.replace(old, new))
998
+
999
+
1000
+ TEMPLATE_RULE = "test-country-template:\n"
1001
+
1002
+
1003
+ @pytest.mark.parametrize(
1004
+ ("old", "new", "violation"),
1005
+ [
1006
+ pytest.param(
1007
+ TEMPLATE_RULE,
1008
+ "test-country-template: deeper\n",
1009
+ "make deeper needs exactly one single-colon rule line",
1010
+ id="prerequisite-without-rule",
1011
+ ),
1012
+ pytest.param(
1013
+ TEMPLATE_RULE,
1014
+ "deeper:\n\tfalse || true\n\ntest-country-template: deeper\n",
1015
+ "make deeper masks a failing command",
1016
+ id="prerequisite-of-prerequisite",
1017
+ ),
1018
+ pytest.param(
1019
+ "test: test-country-template\n",
1020
+ "test: test-country-template | deeper\n",
1021
+ "make deeper needs exactly one single-colon rule line",
1022
+ id="order-only-prerequisite",
1023
+ ),
1024
+ pytest.param(
1025
+ "build:\n",
1026
+ "test: format\n\nbuild:\n",
1027
+ "make test needs exactly one single-colon rule line",
1028
+ id="later-rule-line",
1029
+ ),
1030
+ pytest.param(
1031
+ "build:\n",
1032
+ "format test:\n\nbuild:\n",
1033
+ "make test needs exactly one single-colon rule line",
1034
+ id="later-rule-line-with-other-target",
1035
+ ),
1036
+ pytest.param(
1037
+ "build:\n",
1038
+ " test:\n\ttrue\n\nbuild:\n",
1039
+ "make test needs exactly one single-colon rule line",
1040
+ id="later-indented-rule-line",
1041
+ ),
1042
+ pytest.param(
1043
+ TEMPLATE_RULE,
1044
+ "test-country-template::\n",
1045
+ "make test-country-template needs exactly one single-colon rule line",
1046
+ id="double-colon-rule",
1047
+ ),
1048
+ pytest.param(
1049
+ TEMPLATE_RULE,
1050
+ "test-country-template: ; false || true\n",
1051
+ "make test-country-template needs exactly one single-colon rule line",
1052
+ id="recipe-on-rule-line",
1053
+ ),
1054
+ pytest.param(
1055
+ "\tcoverage xml -i\n",
1056
+ "# write the report\n\tcoverage xml -i || true\n",
1057
+ "make test masks a failing command",
1058
+ id="comment-line-before-masked-line",
1059
+ ),
1060
+ ],
1061
+ )
1062
+ def test_make_test_check_rejects_recipe_it_cannot_read(tmp_path, old, new, violation):
1063
+ makefile = edit_makefile(tmp_path, old, new)
1064
+
1065
+ with pytest.raises(AssertionError, match=violation):
1066
+ assert_make_test_fails_when_tests_fail(makefile)
1067
+
1068
+
1069
+ @pytest.mark.parametrize(
1070
+ ("old", "new"),
1071
+ [
1072
+ pytest.param(
1073
+ "\tcoverage xml -i\n",
1074
+ "ifeq (1,1)\n\tcoverage xml -i || true\nendif\n",
1075
+ id="conditional",
1076
+ ),
1077
+ pytest.param(
1078
+ "all: install", ".RECIPEPREFIX = >\nall: install", id="recipeprefix"
1079
+ ),
1080
+ pytest.param(
1081
+ "all: install",
1082
+ "define SHELL\n/bin/true\nendef\n\nall: install",
1083
+ id="define",
1084
+ ),
1085
+ pytest.param(
1086
+ "\tcoverage xml -i\n",
1087
+ "\tcoverage xml -i; \\\n\ttrue\n",
1088
+ id="line-continuation",
1089
+ ),
1090
+ pytest.param(
1091
+ "\tcoverage xml -i\n",
1092
+ " \tifeq (1,1)\n\tcoverage xml -i || true\n \tendif\n",
1093
+ id="conditional-after-space-and-tab",
1094
+ ),
1095
+ pytest.param(
1096
+ "all: install",
1097
+ "\fdefine SHELL\n/bin/true\n\fendef\n\nall: install",
1098
+ id="define-after-form-feed",
1099
+ ),
1100
+ pytest.param(
1101
+ "all: install",
1102
+ "X = 1\n\tifeq (1,0)\n\tendif\n\nall: install",
1103
+ id="tab-conditional-outside-rule",
1104
+ ),
1105
+ pytest.param(
1106
+ "\tcoverage xml -i\n",
1107
+ "\tcoverage xml -i $(if ,\f)|| true\n",
1108
+ id="form-feed-inside-recipe-line",
1109
+ ),
1110
+ pytest.param(
1111
+ "\tcoverage xml -i\n",
1112
+ "\tcoverage xml -i $(if ,\r)|| true\n",
1113
+ id="carriage-return-inside-recipe-line",
1114
+ ),
1115
+ ],
1116
+ )
1117
+ def test_make_rules_rejects_syntax_it_cannot_follow(tmp_path, old, new):
1118
+ makefile = edit_makefile(tmp_path, old, new)
1119
+
1120
+ with pytest.raises(AssertionError, match="make_rules cannot read"):
1121
+ make_rules(makefile)
1122
+
1123
+
1124
+ @pytest.mark.parametrize(
1125
+ "line_break", ["\v", "\x1c", "\x1d", "\x1e", "\x85", "\u2028", "\u2029"]
1126
+ )
1127
+ def test_make_rules_rejects_each_line_break_make_ignores(tmp_path, line_break):
1128
+ makefile = tmp_path / "Makefile"
1129
+ makefile.write_bytes(
1130
+ MAKEFILE.read_bytes().replace(
1131
+ b"\tcoverage xml -i",
1132
+ f"\tcoverage xml -i $(if ,{line_break})|| true".encode(),
1133
+ )
1134
+ )
1135
+
1136
+ with pytest.raises(AssertionError, match="make_rules cannot read a line break"):
1137
+ make_rules(makefile)
1138
+
1139
+
1140
+ def test_make_rules_reads_crlf_makefile_as_lf(tmp_path):
1141
+ # Normalize first, since a Windows checkout may already be CRLF.
1142
+ lf = MAKEFILE.read_bytes().replace(b"\r\n", b"\n")
1143
+ lf_makefile = tmp_path / "lf" / "Makefile"
1144
+ crlf_makefile = tmp_path / "crlf" / "Makefile"
1145
+ lf_makefile.parent.mkdir()
1146
+ crlf_makefile.parent.mkdir()
1147
+ lf_makefile.write_bytes(lf)
1148
+ crlf_makefile.write_bytes(lf.replace(b"\n", b"\r\n"))
1149
+
1150
+ lf_rules = make_rules(lf_makefile)
1151
+ assert "coverage xml -i" in lf_rules["test"][1]
1152
+ assert make_rules(crlf_makefile) == lf_rules
1153
+
1154
+
1155
+ def test_pypi_upload_check_reads_past_comment_line(tmp_path):
1156
+ makefile = edit_makefile(
1157
+ tmp_path,
1158
+ "build:\n\tpython -m build\n",
1159
+ "build:\n\tpython -m build\n# upload\n\ttwine upload dist/*\n",
1160
+ )
1161
+
1162
+ assert pypi_uploading_recipe_lines(makefile) == ["build: twine upload dist/*"]
1163
+
1164
+
1165
+ @pytest.mark.parametrize(
1166
+ "new",
1167
+ [
1168
+ pytest.param("build::\n\ttwine upload dist/*\n", id="double-colon-rule"),
1169
+ pytest.param(
1170
+ "build:\n\ttwine upload dist/*\n\nbuild: install\n",
1171
+ id="later-rule-line",
1172
+ ),
1173
+ pytest.param("build: ; twine upload dist/*\n", id="recipe-on-rule-line"),
1174
+ ],
1175
+ )
1176
+ def test_pypi_upload_check_rejects_recipe_it_cannot_read(tmp_path, new):
1177
+ makefile = edit_makefile(tmp_path, "build:\n\tpython -m build\n", new)
1178
+
1179
+ assert make_targets_make_rules_misreads(makefile) == ["build"]
1180
+
1181
+
1182
+ @pytest.mark.parametrize(
1183
+ ("target", "suffix"),
1184
+ [
1185
+ ("test", " || true"),
1186
+ ("test", " || exit 0"),
1187
+ ("test", "; true"),
1188
+ ("test", "; exit 0"),
1189
+ ("test", " ; :"),
1190
+ ("test-country-template", " || true"),
1191
+ ],
1192
+ )
1193
+ def test_make_test_check_rejects_masked_recipe_line(tmp_path, target, suffix):
1194
+ lines = MAKEFILE.read_text().splitlines()
1195
+ recipe_start = next(
1196
+ index for index, line in enumerate(lines) if line.startswith(f"{target}:")
1197
+ )
1198
+ lines[recipe_start + 1] += suffix
1199
+ makefile = write_makefile(tmp_path, "\n".join(lines) + "\n")
1200
+
1201
+ with pytest.raises(AssertionError, match=f"make {target} masks a failing command"):
1202
+ assert_make_test_fails_when_tests_fail(makefile)