smelt-cli 0.2.0__tar.gz → 0.4.0__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 (366) hide show
  1. smelt_cli-0.4.0/.editorconfig +15 -0
  2. smelt_cli-0.4.0/.gitattributes +5 -0
  3. smelt_cli-0.4.0/.github/dependabot.yml +11 -0
  4. smelt_cli-0.4.0/.github/pull_request_template.md +22 -0
  5. smelt_cli-0.4.0/.github/workflows/ci.yml +83 -0
  6. smelt_cli-0.4.0/.github/workflows/release.yml +128 -0
  7. smelt_cli-0.4.0/.gitignore +35 -0
  8. smelt_cli-0.4.0/.pre-commit-config.yml +66 -0
  9. smelt_cli-0.4.0/.pre-commit-hooks.yaml +16 -0
  10. smelt_cli-0.4.0/.python-version +1 -0
  11. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/CHANGELOG.md +175 -1
  12. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/CONTRIBUTING.md +17 -12
  13. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/Cargo.lock +1 -1
  14. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/Cargo.toml +1 -1
  15. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/PKG-INFO +21 -6
  16. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/README.md +20 -5
  17. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/README.md +2 -1
  18. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/adoption.md +8 -1
  19. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/agent-workflow.md +2 -2
  20. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/cli.md +46 -5
  21. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/configuration.md +119 -3
  22. smelt_cli-0.4.0/docs/facade-export-evaluation.json +52 -0
  23. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/integrations.md +39 -22
  24. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/proposals/config-structure.md +2 -2
  25. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/README.md +5 -0
  26. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT104.md +3 -2
  27. smelt_cli-0.4.0/docs/rules/SMT109.md +41 -0
  28. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT305.md +1 -1
  29. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT306.md +2 -2
  30. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT311.md +2 -2
  31. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT313.md +2 -2
  32. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT316.md +1 -1
  33. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT318.md +1 -1
  34. smelt_cli-0.4.0/docs/rules/SMT320.md +43 -0
  35. smelt_cli-0.4.0/docs/rules/SMT321.md +36 -0
  36. smelt_cli-0.4.0/docs/rules/SMT322.md +41 -0
  37. smelt_cli-0.4.0/docs/rules/SMT323.md +42 -0
  38. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT424.md +2 -2
  39. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT425.md +1 -1
  40. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT426.md +3 -3
  41. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT429.md +1 -1
  42. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT430.md +1 -1
  43. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT901.md +2 -2
  44. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/structure.md +92 -1
  45. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/testing.md +22 -4
  46. smelt_cli-0.4.0/docs/upgrading.md +229 -0
  47. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/pyproject.toml +1 -1
  48. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/scripts/benchmark_checks.py +1 -1
  49. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/scripts/benchmark_hooks.py +4 -2
  50. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/scripts/smoke_distribution.py +1 -1
  51. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/cache.py +6 -0
  52. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/context.py +1 -1
  53. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/contracts.py +39 -0
  54. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/definition_blocks.py +111 -24
  55. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/exports.py +4 -0
  56. smelt_cli-0.4.0/smelt/analysis/facade_usage.py +358 -0
  57. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/files.py +6 -1
  58. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/imports.py +8 -6
  59. smelt_cli-0.4.0/smelt/analysis/lazy_exports.py +390 -0
  60. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/members.py +43 -4
  61. smelt_cli-0.4.0/smelt/analysis/module_symbols.py +247 -0
  62. smelt_cli-0.4.0/smelt/analysis/navigation.py +374 -0
  63. smelt_cli-0.4.0/smelt/analysis/none_default_rewrite.py +110 -0
  64. smelt_cli-0.4.0/smelt/analysis/none_defaults.py +150 -0
  65. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/ordering.py +131 -15
  66. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/python_version.py +5 -3
  67. smelt_cli-0.4.0/smelt/analysis/test_helpers.py +136 -0
  68. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/test_outcomes.py +51 -1
  69. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/test_subprocesses.py +1 -1
  70. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/test_syntax.py +94 -13
  71. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/test_timing.py +36 -1
  72. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/app.py +26 -9
  73. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/commands/adopt.py +1 -1
  74. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/commands/check.py +51 -12
  75. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/commands/info.py +15 -0
  76. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/support.py +1 -1
  77. smelt_cli-0.4.0/smelt/config/composition.py +175 -0
  78. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/errors.py +3 -1
  79. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/loader.py +41 -12
  80. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/models.py +30 -1
  81. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/schema.py +10 -1
  82. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/validation.py +6 -0
  83. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/debt.py +1 -0
  84. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/groups.py +83 -0
  85. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/render/machine.py +39 -5
  86. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/render/text.py +132 -9
  87. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/suppressions.py +55 -1
  88. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/docs.py +3 -3
  89. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/briefing.py +17 -1
  90. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/cache.py +2 -2
  91. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/check.py +49 -7
  92. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/coverage.py +8 -1
  93. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/evaluation.py +16 -3
  94. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/file_checks.py +4 -4
  95. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/inference.py +5 -2
  96. smelt_cli-0.4.0/smelt/engine/none_default_fixes.py +70 -0
  97. smelt_cli-0.4.0/smelt/engine/ordering_fixes.py +80 -0
  98. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/result_cache.py +8 -1
  99. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/rule_settings.py +4 -4
  100. smelt_cli-0.4.0/smelt/engine/source_fixes.py +80 -0
  101. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/staged.py +1 -1
  102. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/activation.py +7 -0
  103. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/base.py +8 -6
  104. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/catalog.json +77 -0
  105. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/common.py +2 -2
  106. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/dependencies/composition_root.py +2 -2
  107. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/dependencies/cycles.py +90 -14
  108. smelt_cli-0.4.0/smelt/rules/dependencies/facades.py +152 -0
  109. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/dependencies/fanout.py +3 -3
  110. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/dependencies/features.py +3 -3
  111. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/dependencies/interfaces.py +2 -2
  112. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/dependencies/layers.py +2 -2
  113. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/dependencies/third_party.py +2 -2
  114. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/meta.py +4 -3
  115. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/registry.py +10 -5
  116. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/assignments.py +2 -2
  117. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/contracts.py +2 -2
  118. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/coverage.py +4 -4
  119. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/enum_values.py +3 -3
  120. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/headers.py +7 -7
  121. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/import_style.py +3 -3
  122. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/layout.py +4 -4
  123. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/members.py +7 -5
  124. smelt_cli-0.4.0/smelt/rules/structure/module_symbols.py +50 -0
  125. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/naming.py +74 -3
  126. smelt_cli-0.4.0/smelt/rules/structure/navigation.py +183 -0
  127. smelt_cli-0.4.0/smelt/rules/structure/none_defaults.py +47 -0
  128. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/ordering.py +10 -2
  129. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/package_imports.py +2 -2
  130. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/type_dispatch.py +2 -2
  131. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/awaits.py +2 -2
  132. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/cases.py +2 -2
  133. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/location.py +2 -2
  134. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/mocking.py +4 -4
  135. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/outcomes.py +16 -8
  136. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/private_access.py +2 -2
  137. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/public_attributes.py +4 -3
  138. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/public_functions.py +16 -4
  139. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/timing.py +21 -5
  140. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt.schema.json +430 -108
  141. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt.yml +2 -0
  142. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_context.py +8 -8
  143. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_contracts.py +4 -4
  144. smelt_cli-0.4.0/tests/analysis/test_lazy_exports.py +150 -0
  145. smelt_cli-0.4.0/tests/analysis/test_module_symbols.py +133 -0
  146. smelt_cli-0.4.0/tests/analysis/test_none_default_rewrite.py +36 -0
  147. smelt_cli-0.4.0/tests/analysis/test_none_defaults.py +22 -0
  148. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_ordering_rewrite.py +43 -0
  149. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_parsing.py +1 -1
  150. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_python_version.py +4 -4
  151. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_retained.py +2 -2
  152. smelt_cli-0.4.0/tests/analysis/test_test_helpers.py +371 -0
  153. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/cli/test_app.py +365 -106
  154. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/cli/test_session.py +39 -4
  155. smelt_cli-0.4.0/tests/config/test_composition.py +209 -0
  156. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/config/test_loader.py +13 -10
  157. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/diagnostics/render/test_machine.py +35 -1
  158. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/diagnostics/render/test_text.py +70 -1
  159. smelt_cli-0.4.0/tests/diagnostics/test_groups.py +288 -0
  160. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_briefing.py +38 -13
  161. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_cache.py +88 -17
  162. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_changes.py +79 -17
  163. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_check.py +147 -1
  164. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_coverage.py +29 -5
  165. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_evaluation.py +45 -6
  166. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_file_checks.py +6 -6
  167. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_inference.py +21 -1
  168. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_native_git.py +2 -1
  169. smelt_cli-0.4.0/tests/engine/test_none_default_fixes.py +164 -0
  170. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_ordering_fixes.py +26 -4
  171. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_paths.py +5 -5
  172. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_rule_settings.py +3 -3
  173. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_schema.py +9 -0
  174. smelt_cli-0.4.0/tests/engine/test_source_fixes.py +26 -0
  175. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_staged.py +163 -28
  176. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/helpers.py +1 -1
  177. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/dependencies/test_composition_root.py +6 -6
  178. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/dependencies/test_cycles.py +130 -8
  179. smelt_cli-0.4.0/tests/rules/dependencies/test_facades.py +559 -0
  180. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/dependencies/test_fanout.py +46 -1
  181. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/dependencies/test_features.py +13 -13
  182. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/dependencies/test_interfaces.py +4 -4
  183. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/dependencies/test_layers.py +1 -1
  184. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/dependencies/test_third_party.py +2 -2
  185. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_assignments.py +1 -1
  186. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_contracts.py +8 -8
  187. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_coverage.py +13 -17
  188. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_enum_values.py +1 -1
  189. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_headers.py +2 -2
  190. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_import_style.py +2 -2
  191. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_layout.py +6 -6
  192. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_members.py +18 -1
  193. smelt_cli-0.4.0/tests/rules/structure/test_module_symbols.py +134 -0
  194. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_naming.py +207 -6
  195. smelt_cli-0.4.0/tests/rules/structure/test_navigation.py +362 -0
  196. smelt_cli-0.4.0/tests/rules/structure/test_none_defaults.py +182 -0
  197. smelt_cli-0.4.0/tests/rules/structure/test_ordering.py +246 -0
  198. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_package_imports.py +1 -1
  199. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/test_type_dispatch.py +1 -1
  200. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/test_activation.py +8 -4
  201. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/test_registry.py +8 -6
  202. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_awaits.py +5 -5
  203. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_cases.py +1 -1
  204. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_location.py +26 -4
  205. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_mocking.py +1 -1
  206. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_outcomes.py +64 -8
  207. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_private_access.py +7 -7
  208. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_public_attributes.py +31 -4
  209. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_public_functions.py +19 -17
  210. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/test_timing.py +43 -3
  211. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/test_docs.py +39 -1
  212. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/uv.lock +1 -1
  213. smelt_cli-0.2.0/smelt/engine/ordering_fixes.py +0 -132
  214. smelt_cli-0.2.0/tests/diagnostics/test_groups.py +0 -137
  215. smelt_cli-0.2.0/tests/rules/structure/test_ordering.py +0 -133
  216. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/architecture.md +0 -0
  217. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/benchmarks/incremental-followup-2026-10-31.json +0 -0
  218. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/benchmarks/native-checks-2026-10-31.json +0 -0
  219. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/benchmarks/native-git-retained-state-2026-10-31.json +0 -0
  220. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/benchmarks/precommit-performance-2026-10-30.json +0 -0
  221. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/benchmarks/review-feedback-2026-10-31.json +0 -0
  222. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/benchmarks/staged-checks-2026-10-30.json +0 -0
  223. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/benchmarks/staged-policy-cache-2026-10-31.json +0 -0
  224. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/review.md +0 -0
  225. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rule-selection.md +0 -0
  226. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT101.md +0 -0
  227. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT102.md +0 -0
  228. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT103.md +0 -0
  229. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT105.md +0 -0
  230. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT106.md +0 -0
  231. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT107.md +0 -0
  232. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT108.md +0 -0
  233. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT301.md +0 -0
  234. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT302.md +0 -0
  235. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT307.md +0 -0
  236. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT308.md +0 -0
  237. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT309.md +0 -0
  238. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT310.md +0 -0
  239. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT312.md +0 -0
  240. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT314.md +0 -0
  241. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT315.md +0 -0
  242. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT317.md +0 -0
  243. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT319.md +0 -0
  244. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT401.md +0 -0
  245. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT420.md +0 -0
  246. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT421.md +0 -0
  247. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT422.md +0 -0
  248. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT423.md +0 -0
  249. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT427.md +0 -0
  250. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT428.md +0 -0
  251. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT902.md +0 -0
  252. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/rules/SMT903.md +0 -0
  253. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/test-quality-evaluation.json +0 -0
  254. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/docs/vision.md +0 -0
  255. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/native/git.rs +0 -0
  256. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/native/main.rs +0 -0
  257. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/native/worker.rs +0 -0
  258. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/scripts/benchmark_session.py +0 -0
  259. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/scripts/evaluate.py +0 -0
  260. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/scripts/generate.py +0 -0
  261. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/__init__.py +0 -0
  262. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/__main__.py +0 -0
  263. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/__init__.py +0 -0
  264. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/annotations.py +0 -0
  265. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/coverage.py +0 -0
  266. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/enum_values.py +0 -0
  267. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/errors.py +0 -0
  268. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/function_usage.py +0 -0
  269. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/graphs.py +0 -0
  270. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/identity.py +0 -0
  271. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/import_cache.py +0 -0
  272. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/literals.py +0 -0
  273. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/member_state.py +0 -0
  274. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/ordering_rewrite.py +0 -0
  275. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/package_exports.py +0 -0
  276. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/parsing.py +0 -0
  277. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/retained.py +0 -0
  278. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/syntax.py +0 -0
  279. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/test_awaits.py +0 -0
  280. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/test_cases.py +0 -0
  281. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/test_deadlines.py +0 -0
  282. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/type_dispatch.py +0 -0
  283. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/analysis/workspace.py +0 -0
  284. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/__init__.py +0 -0
  285. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/commands/__init__.py +0 -0
  286. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/commands/discover.py +0 -0
  287. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/session.py +0 -0
  288. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/cli/session_slots.py +0 -0
  289. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/__init__.py +0 -0
  290. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/discovery.py +0 -0
  291. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/patterns.py +0 -0
  292. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/config/source.py +0 -0
  293. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/__init__.py +0 -0
  294. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/dedupe.py +0 -0
  295. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/render/__init__.py +0 -0
  296. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/report.py +0 -0
  297. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/diagnostics/violation.py +0 -0
  298. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/__init__.py +0 -0
  299. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/changes.py +4 -4
  300. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/git_source.py +0 -0
  301. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/mirror_inference.py +0 -0
  302. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/native_git.py +0 -0
  303. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/paths.py +0 -0
  304. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/schema.py +0 -0
  305. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/engine/workspace.py +0 -0
  306. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/model/__init__.py +0 -0
  307. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/model/architecture.py +0 -0
  308. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/py.typed +0 -0
  309. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/__init__.py +0 -0
  310. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/dependencies/__init__.py +0 -0
  311. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/member_names.py +0 -0
  312. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/structure/__init__.py +0 -0
  313. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/smelt/rules/testing/__init__.py +0 -0
  314. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/__init__.py +0 -0
  315. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/__init__.py +0 -0
  316. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_annotations.py +0 -0
  317. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_enum_values.py +0 -0
  318. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_exports.py +0 -0
  319. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_identity.py +0 -0
  320. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_ordering.py +0 -0
  321. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_test_awaits.py +0 -0
  322. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_test_cases.py +0 -0
  323. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_test_deadlines.py +0 -0
  324. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_test_outcomes.py +0 -0
  325. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_test_syntax.py +0 -0
  326. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_test_timing.py +0 -0
  327. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_type_dispatch.py +0 -0
  328. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/analysis/test_workspace.py +0 -0
  329. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/cli/__init__.py +0 -0
  330. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/cli/test_session_slots.py +0 -0
  331. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/config/__init__.py +0 -0
  332. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/config/test_validation.py +0 -0
  333. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/diagnostics/__init__.py +0 -0
  334. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/diagnostics/render/__init__.py +0 -0
  335. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/diagnostics/render/conftest.py +0 -0
  336. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/diagnostics/test_suppressions.py +0 -0
  337. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/__init__.py +0 -0
  338. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/engine/test_mirror_inference.py +0 -0
  339. /smelt_cli-0.2.0/tests/fixtures/gateway/smelt.yaml → /smelt_cli-0.4.0/tests/fixtures/gateway/smelt.yml +0 -0
  340. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/__init__.py +0 -0
  341. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/bootstrap.py +0 -0
  342. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/__init__.py +0 -0
  343. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/billing/__init__.py +0 -0
  344. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/billing/application/__init__.py +0 -0
  345. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/billing/application/invoices.py +0 -0
  346. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/billing/domain/__init__.py +0 -0
  347. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/billing/domain/money.py +0 -0
  348. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/__init__.py +0 -0
  349. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/api/__init__.py +0 -0
  350. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/api/routes.py +0 -0
  351. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/application/__init__.py +0 -0
  352. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/application/ports.py +0 -0
  353. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/application/session.py +0 -0
  354. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/domain/__init__.py +0 -0
  355. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/domain/session.py +0 -0
  356. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/infra/__init__.py +0 -0
  357. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/features/voice/infra/sql.py +0 -0
  358. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/main.py +0 -0
  359. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/shared/__init__.py +0 -0
  360. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/fixtures/gateway/src/gateway/shared/clock.py +0 -0
  361. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/model/__init__.py +0 -0
  362. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/model/test_architecture.py +0 -0
  363. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/__init__.py +0 -0
  364. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/dependencies/__init__.py +0 -0
  365. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/structure/__init__.py +0 -0
  366. {smelt_cli-0.2.0 → smelt_cli-0.4.0}/tests/rules/testing/__init__.py +0 -0
@@ -0,0 +1,15 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ trim_trailing_whitespace = true
8
+ indent_style = space
9
+ indent_size = 4
10
+
11
+ [*.{yml,yaml,json,toml}]
12
+ indent_size = 2
13
+
14
+ [*.md]
15
+ trim_trailing_whitespace = false
@@ -0,0 +1,5 @@
1
+ * text=auto eol=lf
2
+
3
+ *.png binary
4
+ *.jpg binary
5
+ *.ico binary
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: uv
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+
8
+ - package-ecosystem: github-actions
9
+ directory: /
10
+ schedule:
11
+ interval: weekly
@@ -0,0 +1,22 @@
1
+ ## Problem and resulting behavior
2
+
3
+ <!-- Minimal trigger, old/new result and a valid neighboring example. Link the issue. -->
4
+
5
+ ## Policy and compatibility
6
+
7
+ <!-- Existing rule fix or new rule? Code/name, default/opt-in behavior, config changes,
8
+ false-positive boundaries, Python/layout assumptions. State "unchanged" if appropriate. -->
9
+
10
+ ## Validation
11
+
12
+ <!-- Focused regression and commands/results. For real-project evaluation, record the
13
+ policy used and whether files changed. Note any checks you could not run. -->
14
+
15
+ ## Catalog integration (when adding or changing a rule)
16
+
17
+ - [ ] Unique stable code/name; explicit registration and complete RuleDoc
18
+ - [ ] Regression and valid counterexample; portable fixtures
19
+ - [ ] Configuration/schema and agent context updated where applicable
20
+ - [ ] Generated files refreshed; catalog tests and architecture check pass
21
+
22
+ <!-- See CONTRIBUTING.md. Remove this checklist for changes unrelated to rules. -->
@@ -0,0 +1,83 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ lint:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v7
17
+ - uses: dtolnay/rust-toolchain@stable
18
+ with:
19
+ components: rustfmt, clippy
20
+ - uses: astral-sh/setup-uv@v7
21
+ with:
22
+ enable-cache: true
23
+ - uses: actions/cache@v6
24
+ with:
25
+ path: ~/.cache/prek
26
+ key: ${{ runner.os }}-prek-${{ hashFiles('.pre-commit-config.yml', 'uv.lock') }}
27
+ - run: uv sync --locked
28
+ - run: uv run prek run --all-files --show-diff-on-failure
29
+
30
+ test:
31
+ name: Test (Python ${{ matrix.python-version }}, ${{ matrix.os }})
32
+ runs-on: ${{ matrix.os }}
33
+ strategy:
34
+ fail-fast: false
35
+ matrix:
36
+ os: [ubuntu-latest, windows-latest, macos-latest]
37
+ python-version: ["3.12", "3.13", "3.14"]
38
+ env:
39
+ UV_PYTHON: ${{ matrix.python-version }}
40
+ steps:
41
+ - uses: actions/checkout@v7
42
+ - uses: dtolnay/rust-toolchain@stable
43
+ - uses: astral-sh/setup-uv@v7
44
+ with:
45
+ enable-cache: true
46
+ python-version: ${{ matrix.python-version }}
47
+ - run: uv sync --locked
48
+ - run: uv run pytest --cov --cov-report=term-missing
49
+
50
+ smelt:
51
+ runs-on: ubuntu-latest
52
+ steps:
53
+ - uses: actions/checkout@v7
54
+ - uses: dtolnay/rust-toolchain@stable
55
+ - uses: astral-sh/setup-uv@v7
56
+ with:
57
+ enable-cache: true
58
+ - uses: actions/cache@v6
59
+ with:
60
+ path: .smelt_cache
61
+ key: ${{ runner.os }}-smelt-v2-${{ hashFiles('uv.lock') }}-${{ github.sha }}
62
+ restore-keys: |
63
+ ${{ runner.os }}-smelt-v2-${{ hashFiles('uv.lock') }}-
64
+ - run: uv sync --locked
65
+ - run: uv run smelt check --strict-coverage --fail-on warning --format github
66
+
67
+ package:
68
+ name: Package (${{ matrix.os }})
69
+ runs-on: ${{ matrix.os }}
70
+ strategy:
71
+ fail-fast: false
72
+ matrix:
73
+ os: [ubuntu-latest, windows-latest, macos-latest]
74
+ steps:
75
+ - uses: actions/checkout@v7
76
+ - uses: dtolnay/rust-toolchain@stable
77
+ - uses: astral-sh/setup-uv@v7
78
+ with:
79
+ python-version: "3.12"
80
+ - run: uv build
81
+ - name: Install and smoke-test the built wheel outside the checkout
82
+ run: |
83
+ uv run --no-project --python 3.12 python scripts/smoke_distribution.py dist
@@ -0,0 +1,128 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+ workflow_dispatch:
7
+
8
+ permissions: {}
9
+
10
+ concurrency:
11
+ group: pypi-${{ github.ref }}
12
+ cancel-in-progress: false
13
+
14
+ jobs:
15
+ build:
16
+ name: Validate and build distributions
17
+ if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
18
+ runs-on: ubuntu-latest
19
+ permissions:
20
+ contents: read
21
+ env:
22
+ UV_PYTHON: "3.12"
23
+ steps:
24
+ - uses: actions/checkout@v7
25
+ with:
26
+ fetch-depth: 0
27
+ persist-credentials: false
28
+ - uses: dtolnay/rust-toolchain@stable
29
+ with:
30
+ components: rustfmt, clippy
31
+ - uses: astral-sh/setup-uv@v7
32
+ with:
33
+ python-version: "3.12"
34
+ enable-cache: false
35
+ - name: Require a release commit from main
36
+ run: git merge-base --is-ancestor HEAD origin/main
37
+ - run: uv sync --locked
38
+ - name: Require the tag to match the package version
39
+ run: |
40
+ uv run --frozen python - <<'PY'
41
+ import os
42
+ import tomllib
43
+ from pathlib import Path
44
+
45
+ project = tomllib.loads(Path("pyproject.toml").read_text())["project"]
46
+ cargo = tomllib.loads(Path("Cargo.toml").read_text())["package"]
47
+ if project["version"] != cargo["version"]:
48
+ raise SystemExit("Python and native package versions differ")
49
+ expected_tag = f"v{project['version']}"
50
+ actual_tag = os.environ["GITHUB_REF_NAME"]
51
+ if actual_tag != expected_tag:
52
+ raise SystemExit(f"Expected tag {expected_tag!r}, got {actual_tag!r}")
53
+ PY
54
+ - run: uv run --frozen prek run --all-files --show-diff-on-failure
55
+ - run: uv run --frozen pytest
56
+ - run: uv run --frozen smelt check --strict-coverage --fail-on warning
57
+ - run: uv build --no-sources --sdist
58
+ - name: Install and smoke-test the source distribution
59
+ run: uv run --frozen python scripts/smoke_distribution.py dist
60
+ - uses: actions/upload-artifact@v7
61
+ with:
62
+ name: python-distributions-source
63
+ path: dist/
64
+ if-no-files-found: error
65
+
66
+ wheels:
67
+ name: Wheel (${{ matrix.target }})
68
+ needs: build
69
+ runs-on: ${{ matrix.os }}
70
+ permissions:
71
+ contents: read
72
+ strategy:
73
+ fail-fast: false
74
+ matrix:
75
+ include:
76
+ - os: ubuntu-latest
77
+ target: x86_64-unknown-linux-gnu
78
+ smoke: true
79
+ - os: ubuntu-latest
80
+ target: aarch64-unknown-linux-gnu
81
+ - os: windows-latest
82
+ target: x86_64-pc-windows-msvc
83
+ smoke: true
84
+ - os: macos-latest
85
+ target: aarch64-apple-darwin
86
+ smoke: true
87
+ - os: macos-latest
88
+ target: x86_64-apple-darwin
89
+ steps:
90
+ - uses: actions/checkout@v7
91
+ with:
92
+ persist-credentials: false
93
+ - uses: PyO3/maturin-action@v1
94
+ with:
95
+ command: build
96
+ target: ${{ matrix.target }}
97
+ manylinux: '2_28'
98
+ args: --release --locked --out dist --compatibility pypi
99
+ - uses: astral-sh/setup-uv@v7
100
+ if: matrix.smoke
101
+ with:
102
+ python-version: "3.12"
103
+ - name: Install and smoke-test the release wheel outside the checkout
104
+ if: matrix.smoke
105
+ run: uv run --no-project --python 3.12 python scripts/smoke_distribution.py dist
106
+ - uses: actions/upload-artifact@v7
107
+ with:
108
+ name: python-distributions-${{ matrix.target }}
109
+ path: dist/*.whl
110
+ if-no-files-found: error
111
+
112
+ publish:
113
+ name: Publish distributions to PyPI
114
+ needs: [build, wheels]
115
+ runs-on: ubuntu-latest
116
+ environment:
117
+ name: pypi
118
+ url: https://pypi.org/project/smelt-cli/
119
+ permissions:
120
+ id-token: write
121
+ steps:
122
+ - uses: actions/download-artifact@v8
123
+ with:
124
+ pattern: python-distributions-*
125
+ merge-multiple: true
126
+ path: dist/
127
+ - name: Publish with PyPI Trusted Publishing
128
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,35 @@
1
+ # Byte-compiled / cache
2
+ __pycache__/
3
+ *.py[cod]
4
+
5
+ # Virtual environments
6
+ .venv/
7
+
8
+ # Build artifacts
9
+ build/
10
+ dist/
11
+ target/
12
+ *.egg-info/
13
+
14
+ # Tooling caches
15
+ .mypy_cache/
16
+ .ruff_cache/
17
+ .pytest_cache/
18
+ .smelt_cache/
19
+
20
+ # Coverage
21
+ .coverage
22
+ .coverage.*
23
+ htmlcov/
24
+ coverage.xml
25
+
26
+ # Environment / secrets
27
+ .env
28
+ .env.*
29
+ !.env.example
30
+
31
+ # Editors / OS
32
+ .idea/
33
+ .vscode/
34
+ .DS_Store
35
+ Thumbs.db
@@ -0,0 +1,66 @@
1
+ default_install_hook_types: [pre-commit, commit-msg]
2
+ default_stages: [pre-commit]
3
+
4
+ repos:
5
+ - repo: https://github.com/pre-commit/pre-commit-hooks
6
+ rev: v6.0.0
7
+ hooks:
8
+ - id: trailing-whitespace
9
+ - id: end-of-file-fixer
10
+ - id: mixed-line-ending
11
+ args: [--fix=lf]
12
+ - id: check-yaml
13
+ - id: check-toml
14
+ - id: check-json
15
+ - id: check-added-large-files
16
+ - id: check-merge-conflict
17
+ - id: check-case-conflict
18
+ - id: debug-statements
19
+ - id: detect-private-key
20
+
21
+ - repo: https://github.com/astral-sh/uv-pre-commit
22
+ rev: 0.12.15
23
+ hooks:
24
+ - id: uv-lock
25
+
26
+ - repo: https://github.com/astral-sh/ruff-pre-commit
27
+ rev: v0.16.8
28
+ hooks:
29
+ - id: ruff-check
30
+ args: [--fix]
31
+ - id: ruff-format
32
+
33
+ - repo: local
34
+ hooks:
35
+ - id: cargo-fmt
36
+ name: cargo fmt
37
+ entry: cargo fmt --all -- --check
38
+ language: system
39
+ files: '(^Cargo\.(toml|lock)$|\.rs$)'
40
+ pass_filenames: false
41
+ - id: cargo-clippy
42
+ name: cargo clippy
43
+ entry: cargo clippy --locked --all-targets -- -D warnings
44
+ language: system
45
+ files: '(^Cargo\.(toml|lock)$|\.rs$)'
46
+ pass_filenames: false
47
+ - id: mypy
48
+ name: mypy
49
+ entry: uv run --frozen mypy
50
+ language: system
51
+ types: [python]
52
+ pass_filenames: false
53
+ require_serial: true
54
+ - id: smelt
55
+ name: smelt
56
+ entry: uv run --frozen smelt check --staged --fail-on warning
57
+ language: system
58
+ always_run: true
59
+ pass_filenames: false
60
+ require_serial: true
61
+
62
+ - repo: https://github.com/compilerla/conventional-pre-commit
63
+ rev: v4.4.0
64
+ hooks:
65
+ - id: conventional-pre-commit
66
+ stages: [commit-msg]
@@ -0,0 +1,16 @@
1
+ - id: smelt
2
+ name: smelt
3
+ description: Check Python architecture boundaries against smelt.yml.
4
+ entry: smelt check
5
+ language: python
6
+ pass_filenames: false
7
+ always_run: true
8
+ require_serial: true
9
+ - id: smelt-staged
10
+ name: smelt (new staged findings)
11
+ description: Review new architecture and maintainability findings in the Git index.
12
+ entry: smelt check --staged --fail-on warning
13
+ language: python
14
+ pass_filenames: false
15
+ always_run: true
16
+ require_serial: true
@@ -0,0 +1 @@
1
+ 3.14
@@ -7,6 +7,178 @@ current configuration and complete rule contracts, see the [README](README.md),
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.4.0] - 2026-11-01
11
+
12
+ Report schema 2, YAML version 1 and the default rule set remain unchanged.
13
+ Custom rules must update `BaseRule` imports to `Rule` and annotations for the
14
+ former `Rule` protocol to `RuleContract`. Update installation, hook and CI pins
15
+ together to `0.4.0` (`v0.4.0`) and refresh the editor schema. See the
16
+ [upgrade checklist](docs/upgrading.md#030-to-040).
17
+
18
+ - Use `.yml` consistently in configuration examples, fixtures and maintainer
19
+ scripts. `smelt init` now creates `smelt.yml`, which takes precedence when both
20
+ supported filenames exist. Existing `smelt.yaml` files still work. The published
21
+ `.pre-commit-hooks.yaml` manifest retains its required filename. Integration
22
+ instructions consistently use prek.
23
+
24
+ - Optional [SMT323](docs/rules/SMT323.md), enabled with
25
+ `rules: {no-base-class-prefix: error}`, rejects class definitions such as
26
+ `BaseRepository` and `_BaseRepository` in favor of responsibility-based names.
27
+ Imports, third-party inheritance, `Baseline` and `Base64` remain valid. Package
28
+ rule overrides can disable the convention; checks never rename symbols.
29
+ Smelt enables the convention for its own sources; the default set is unchanged.
30
+ - Smelt also enables the opt-in `deep-object-navigation` Law of Demeter review
31
+ for its own sources. Facade analysis receives its file inventory directly,
32
+ and filesystem/Python-target analysis receives its source store explicitly.
33
+ SMT322 recognizes statically evidenced module/data namespaces and known value
34
+ APIs, preserving unknown collaborator findings. Changes to imported record
35
+ definitions are considered on every check; no code is executed or rewritten.
36
+ Unproven namespaces remain advisory review candidates, with known receiver
37
+ types and the unresolved step included for agent API-contract review. A finding
38
+ alone does not require an architecture change.
39
+ - Rule implementations now inherit `smelt.rules.base.Rule` instead of `BaseRule`.
40
+ The former structural `Rule` protocol is named `RuleContract`; lazy rule
41
+ implementations retain the same interface. Update custom rule imports and
42
+ type annotations accordingly.
43
+ - Independent workspaces can share a local policy fragment with `extends` and
44
+ explicit child overrides. Mappings merge; lists replace, including `[]`.
45
+ Project paths remain relative to the selected workspace. `config show --sources`
46
+ explains effective inputs and origins; staged checks and cache dependencies
47
+ include all bases. Both published hooks now run on every commit, including
48
+ policy-only edits. See [shared configuration](docs/configuration.md#shared-local-policy).
49
+
50
+ - New opt-in [SMT322](docs/rules/SMT322.md) `deep-object-navigation` reviews
51
+ method calls reached through multiple stored instance attributes, such as
52
+ `self.browser.input.motor().aim()`. Enable with
53
+ `rules: {deep-object-navigation: hint}` or `--select SMT322`; package rule
54
+ overrides and inline suppressions preserve intentional navigation. Direct
55
+ collaborator calls, pure data reads and direct-collaborator fluent chains
56
+ remain quiet. This bounded syntax review has no automatic rewrite.
57
+ - [SMT901](docs/rules/SMT901.md) diagnoses unknown inline suppression identifiers,
58
+ including readable rule names where stable SMT codes are required. Known
59
+ inactive rules retain their narrowed-check behavior.
60
+ - [SMT426](docs/rules/SMT426.md) groups shared-helper operations by one repair in
61
+ text and adds deterministic `shared_helper` JSON groups. Individual findings,
62
+ identities, counts, suppressions and debt remain unchanged. [SMT424](docs/rules/SMT424.md)
63
+ explains known helper inference limits at the affected call sites.
64
+ - [SMT104](docs/rules/SMT104.md) adds the opt-in `cycles: [modules]` scope and
65
+ independent `type_checking_cycles: ignore`. Existing scopes are explicitly
66
+ labeled as aggregated; witnesses include edge phases. Default scopes stay unchanged.
67
+ - [SMT109](docs/rules/SMT109.md) accepts optional, statically verified
68
+ `structure.canonical_exports` ownership and distinguishes same-root/other-root
69
+ importers. Existing exports inform the review; frequency alone never expands API.
70
+ - Literal lazy-export tables with a matching guarded `import_module`/`getattr`
71
+ forwarder now contribute export identity and visibility evidence. Unsupported
72
+ dynamic handlers, escaped/mutated tables and type stubs alone remain unverified.
73
+ - [SMT313](docs/rules/SMT313.md) permits bounded ordering fixes around unrelated
74
+ nested-function dictionaries and `nonlocal` closure writes. Reflection on
75
+ unknown receivers or ordered namespaces retains its manual-review barrier.
76
+
77
+ - New opt-in [SMT321](docs/rules/SMT321.md) `implicit-optional-default`
78
+ reviews `parameter or fallback` for explicitly optional parameters with a
79
+ `None` default. Enable with `rules: {implicit-optional-default: warning}` or
80
+ `--select SMT321`. Use `--fix --unsafe-fixes` to replace it with an explicit
81
+ `is not None` conditional after reviewing intentional falsy defaults. Plain
82
+ `--fix` preserves existing truthiness behavior.
83
+
84
+ ## [0.3.0] - 2026-11-01
85
+
86
+ ### Upgrade first
87
+
88
+ **JSON consumers need an update.** Check and error documents now use schema 2.
89
+ Request `--show-coverage` for full coverage details and resolve
90
+ `expected.usage_scope_index` through the report's `usage_scopes` array. This is
91
+ a report-format change; YAML stays `version: 1`, and default rules, exit codes,
92
+ SMT codes and debt identities stay unchanged. See the
93
+ [upgrade checklist and compatible parser example](docs/upgrading.md).
94
+
95
+ Update tool, dependency, hook and CI pins together to `0.3.0` (Git tag `v0.3.0`),
96
+ then refresh `.smelt.schema.json`. Upgrading from 0.1.x also requires the
97
+ [configuration migration](docs/configuration.md#breaking-change-migration).
98
+
99
+ ### New capabilities
100
+
101
+ | Capability | Enable / use | Details |
102
+ | --- | --- | --- |
103
+ | Review widely imported names missing from a package facade | Set a contract's `export_at` threshold; opt-in, hint severity | [SMT109](docs/rules/SMT109.md) |
104
+ | Review internal public constants and PEP 695 aliases | `rules: {internal-public-module-symbol: warning}`; opt-in | [SMT320](docs/rules/SMT320.md) |
105
+ | Get one-line findings with repair advice | `smelt check --format concise` | [CLI and reports](docs/cli.md) |
106
+ | Migrate existing installations and report consumers | Follow the release-specific checklist | [Upgrading](docs/upgrading.md) |
107
+
108
+ ### Ordering and module visibility
109
+
110
+ - SMT313 now recognizes unions of unshadowed builtin types and `None` in eager
111
+ function annotations for declared Python 3.10+ targets, so a helper annotated
112
+ `str | bytes` no longer silently blocks public-first ordering on Python 3.12/3.13.
113
+ Imported/user-defined operands, shadowed names, explicit namespace mutations and unions in defaults remain
114
+ execution barriers. Inspect barriers with `check --format json --show-coverage`.
115
+ - New opt-in [SMT320](docs/rules/SMT320.md) `internal-public-module-symbol`
116
+ reviews single, unconditional uppercase module assignments and PEP 695 type
117
+ aliases with no observed external use or public-signature evidence. Enable it
118
+ with `rules: {internal-public-module-symbol: warning}` or `--select SMT320`.
119
+ Exports, imports/re-exports, test accesses, escaped modules and public annotation
120
+ dependencies preserve names. Dynamic namespaces and uncertain bindings are
121
+ skipped; external consumers remain unassessed. No automatic renaming.
122
+ - SMT311/SMT313 explanations clarify that Python 3.12/3.13 projects can retain
123
+ an annotations future import for forward references in their chosen public-first
124
+ order. Eager dependencies still take priority when the import is absent. `Self`
125
+ requires a subclass-preserving return contract; no automatic replacement of a
126
+ matching class-name annotation is suggested. See [definition ordering](docs/structure.md#definition-order-with-execution-dependencies).
127
+
128
+ ### Test evidence and package contracts
129
+
130
+ - Opt-in SMT424/SMT425/SMT426 outcome and deadline reviews follow one direct call
131
+ to an unambiguous, undecorated, non-generator helper in the same file, including local async
132
+ helpers executed with `await` or `asyncio.run`. Assertions retain empty-loop
133
+ review, and hidden unbounded operations report their helper and call site.
134
+ Caller async deadlines guard async waits, never synchronous subprocesses.
135
+ Uncalled definitions, unexecuted coroutines, callbacks, imported helper bodies
136
+ and further helper calls remain outside inference; configured assertion helpers
137
+ continue to work. No analyzed code is executed.
138
+ - Overlapping test roots consistently assign a test to the most specific declared
139
+ root, independent of configuration order. Mirror checks retain separate
140
+ workspace-member roots.
141
+ - Package contracts can set `export_at` for SMT109 `facade-export-gap`: one
142
+ advisory finding per widely imported implementation name missing from its
143
+ facade, with definition location, importer lists, other re-exports and a bounded
144
+ cycle check. Tests count only with `count_tests: true`; type-checking-only
145
+ imports and uncertain exports are skipped. No automatic API or import changes.
146
+ See [facade reviews](docs/structure.md#suggestions-to-bundle-implementation-imports).
147
+ - Overlapping SMT108/SMT109 thresholds now choose the most specific pattern per
148
+ concrete package, removing duplicate hints and allowing exact overrides of
149
+ wildcard contracts. Equally specific conflicting settings are config errors.
150
+
151
+ ### Reports, suppressions and fixes
152
+
153
+ - **JSON report schema 2:** `check --format json` emits a small coverage summary
154
+ by default; `--show-coverage` restores full policy details and the per-file
155
+ inventory. Repeated visibility boundaries move to report-level `usage_scopes`,
156
+ referenced by each finding's `expected.usage_scope_index`. Scope, comparison,
157
+ warnings and exit thresholds remain available. See [report compatibility](docs/cli.md).
158
+ - `check --format concise` prints one line per finding with repair advice.
159
+ Text omits empty details, prints visibility limits once, and groups related
160
+ late-import SMT313 findings with their affected lines. JSON keeps individual
161
+ findings plus an `ordering` group; debt fingerprints are retained.
162
+ - Inline suppressions follow logical continuation lines, including interior
163
+ comments in multiline assertions, formatted calls and signatures. Interior
164
+ import-name exceptions stay local and never cover neighboring names, the next
165
+ statement or a function body. Unused-suppression checks remain active. See
166
+ [suppression scope](docs/adoption.md).
167
+ - Visibility rules preserve public members of classes exported through static
168
+ package facades or `__all__`, including aliases and re-export chains; cache
169
+ invalidation tracks export changes. SMT429 distinguishes functions referenced
170
+ only by tests from helpers also used inside their module, without claiming
171
+ unassessed external consumers do not exist.
172
+ - Cache directories ignore their own contents. Init reports the number of tests
173
+ matching a mirror pattern, and ordinary text checks omit the policy coverage
174
+ banner without architecture (strict coverage still applies). Hook documentation
175
+ uses a pinned wheel installation and explains source-build requirements.
176
+ SMT311/SMT318 explanations clarify decorated annotations and Literal-typed
177
+ boundaries; SMT426's subprocess example explicitly sets `check=False`.
178
+ - Release checks enforce matching Python/native/lockfile versions, dated release
179
+ notes and current installation pins. Publication also waits for installation
180
+ smoke tests of the exact Linux x86_64, Windows x86_64 and macOS aarch64 wheels.
181
+
10
182
  ## [0.2.0] - 2026-10-31
11
183
 
12
184
  - Visibility reviews (SMT316/SMT317/SMT429/SMT430) explicitly limit their claims to
@@ -326,7 +498,9 @@ smelt explain SMT313 --format json
326
498
  - Import fanout, match suggestions and missing-assertion checks are review aids;
327
499
  their default severities differ. Configure policy and severity deliberately.
328
500
 
329
- [Unreleased]: https://github.com/mathisarends/smelt/compare/v0.2.0...HEAD
501
+ [Unreleased]: https://github.com/mathisarends/smelt/compare/v0.4.0...HEAD
502
+ [0.4.0]: https://github.com/mathisarends/smelt/compare/v0.3.0...v0.4.0
503
+ [0.3.0]: https://github.com/mathisarends/smelt/compare/v0.2.0...v0.3.0
330
504
  [0.2.0]: https://github.com/mathisarends/smelt/compare/v0.1.6...v0.2.0
331
505
  [0.1.6]: https://github.com/mathisarends/smelt/compare/v0.1.5...v0.1.6
332
506
  [0.1.5]: https://github.com/mathisarends/smelt/compare/v0.1.4...v0.1.5
@@ -95,7 +95,7 @@ Normal checks stay read-only. A new rule does not need a fixer or a new index.
95
95
 
96
96
  ## One rule, one catalog entry
97
97
 
98
- New BaseRule subclasses are off by default. Choose activation alongside the rule:
98
+ New Rule subclasses are off by default. Choose activation alongside the rule:
99
99
 
100
100
  Fixed-pattern source/test reviews are selected directly by a problem name in
101
101
  `rules`; do not add `review_*`, `require_*` or other duplicate boolean switches.
@@ -122,7 +122,7 @@ also activate opt-in rules, while explicit off/ignore and strict coverage retain
122
122
  their precedence. The generated catalog and CLI metadata derive activation from
123
123
  the rule class; there is no second registration list of activation decisions.
124
124
 
125
- Use `BaseRule`, a stable code, a unique kebab-case name, a category, explicit
125
+ Use `Rule`, a stable code, a unique kebab-case name, a category, explicit
126
126
  `requires` and a complete `RuleDoc`. Allocate an unused code from the live catalog:
127
127
 
128
128
  | Range | Category |
@@ -256,18 +256,21 @@ environment name must match the workflow exactly.
256
256
 
257
257
  ### Release procedure
258
258
 
259
- 1. Bump matching versions in `pyproject.toml` and `Cargo.toml`, run `uv lock` and
260
- `cargo check` to refresh both lockfiles, and merge the version change and
261
- release workflow into `main` after CI passes. Each release needs a new PyPI
262
- version; this setup does not bump or publish the existing `0.1.3` automatically.
259
+ 1. Review changes since the last tag. Update the [upgrade guide](docs/upgrading.md),
260
+ README feature summary and pinned hook/CI examples in
261
+ [integrations](docs/integrations.md), including any report-format migration.
262
+ Move `Unreleased` entries to a dated version section and update the changelog's
263
+ comparison links. Bump matching versions in `pyproject.toml` and `Cargo.toml`,
264
+ run `uv lock` and `cargo check` to refresh both lockfiles, and merge the release
265
+ preparation into `main` after CI passes. Each release needs a new PyPI version.
263
266
  2. From an up-to-date, clean `main` checkout, create and push the corresponding tag.
264
- For example, after merging version `0.1.4`:
267
+ For example, after merging version `0.4.0`:
265
268
 
266
269
  ```bash
267
270
  git switch main
268
271
  git pull --ff-only
269
- git tag v0.1.4
270
- git push origin v0.1.4
272
+ git tag v0.4.0
273
+ git push origin v0.4.0
271
274
  ```
272
275
 
273
276
  3. Follow the `Publish to PyPI` run in
@@ -276,14 +279,16 @@ environment name must match the workflow exactly.
276
279
  to equal `v` followed by the package version. It runs prek, pytest and
277
280
  Smelt, validates a source distribution outside the checkout, then builds native
278
281
  Linux x86_64/aarch64, Windows x86_64 and macOS x86_64/aarch64 wheels. CI also
279
- installs and exercises native wheels on Linux, Windows and macOS. A separate
280
- job downloads the validated release artifacts and publishes them
282
+ installs and exercises native wheels on Linux, Windows and macOS. The release
283
+ workflow also smoke-tests its exact Linux x86_64, Windows x86_64 and macOS
284
+ aarch64 wheels before uploading them for publication; the other targets are
285
+ cross-compiled. A separate job downloads the validated release artifacts and publishes them
281
286
  with OIDC and the publishing action's default attestations enabled.
282
287
 
283
288
  Maintainers and coding agents with permission to push release tags can use this
284
289
  procedure without local PyPI credentials. Ordinary branch pushes and pull requests
285
290
  do not publish. Manual workflow runs must select an existing `v`-prefixed tag
286
- (`gh workflow run release.yml --ref v0.1.4`); branch runs skip publishing.
291
+ (`gh workflow run release.yml --ref v0.4.0`); branch runs skip publishing.
287
292
 
288
293
  If the upload fails because account configuration is missing, finish that setup
289
294
  and rerun the failed publishing job so it reuses the validated build artifacts.
@@ -1380,7 +1380,7 @@ checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
1380
1380
 
1381
1381
  [[package]]
1382
1382
  name = "smelt-cli"
1383
- version = "0.2.0"
1383
+ version = "0.4.0"
1384
1384
  dependencies = [
1385
1385
  "base64",
1386
1386
  "gix",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "smelt-cli"
3
- version = "0.2.0"
3
+ version = "0.4.0"
4
4
  edition = "2024"
5
5
  rust-version = "1.88"
6
6
  publish = false