syntopica-codeality-py 0.2.4__tar.gz → 0.2.6__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 (208) hide show
  1. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/CHANGELOG.md +26 -0
  2. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/LICENSE +1 -1
  3. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/PKG-INFO +2 -2
  4. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/pyproject.toml +2 -2
  5. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/codeality-py-ci.yml +3 -3
  6. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/pyproject-sections.toml +1 -1
  7. syntopica_codeality_py-0.2.6/src/codeality_py/rules/entrypoint_unit_findings.py +19 -0
  8. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/one_primary_unit.py +3 -0
  9. syntopica_codeality_py-0.2.6/src/codeality_py/units/snake_case_word.py +22 -0
  10. syntopica_codeality_py-0.2.6/src/codeality_py/units/to_snake_case.py +14 -0
  11. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_one_primary_unit.py +14 -0
  12. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/units/test_to_snake_case.py +6 -0
  13. syntopica_codeality_py-0.2.6/uv.lock +1156 -0
  14. syntopica_codeality_py-0.2.4/src/codeality_py/units/to_snake_case.py +0 -20
  15. syntopica_codeality_py-0.2.4/uv.lock +0 -1061
  16. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/.gitignore +0 -0
  17. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/README.md +0 -0
  18. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/codeality-py.toml +0 -0
  19. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/mypy.ini +0 -0
  20. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/ruff.toml +0 -0
  21. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/__init__.py +0 -0
  22. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/codeality-py.toml +0 -0
  23. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/importlinter.ini +0 -0
  24. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/mypy.ini +0 -0
  25. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/ruff.toml +0 -0
  26. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/__init__.py +0 -0
  27. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/baseline_file.py +0 -0
  28. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/classified_findings.py +0 -0
  29. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/classify_findings.py +0 -0
  30. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/finding_context.py +0 -0
  31. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/fingerprint.py +0 -0
  32. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/fingerprint_context.py +0 -0
  33. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/read_baseline.py +0 -0
  34. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/write_baseline.py +0 -0
  35. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/cli.py +0 -0
  36. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/__init__.py +0 -0
  37. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/baseline_check_command.py +0 -0
  38. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/baseline_command.py +0 -0
  39. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/baseline_update_command.py +0 -0
  40. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/check_command.py +0 -0
  41. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/checked_project.py +0 -0
  42. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/gate_command.py +0 -0
  43. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/init_command.py +0 -0
  44. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/project_option.py +0 -0
  45. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/__init__.py +0 -0
  46. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/baseline_config.py +0 -0
  47. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/check_schema_version.py +0 -0
  48. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/config_error.py +0 -0
  49. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/default_generated_globs.py +0 -0
  50. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/discover_source_roots.py +0 -0
  51. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/discover_test_roots.py +0 -0
  52. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/environment_test_budget.py +0 -0
  53. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/limits.py +0 -0
  54. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/load_config.py +0 -0
  55. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/module_role.py +0 -0
  56. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/override.py +0 -0
  57. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/parse_overrides.py +0 -0
  58. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/parse_roles.py +0 -0
  59. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/parse_rule_codes.py +0 -0
  60. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/pyproject_layout_hints.py +0 -0
  61. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/read_config_document.py +0 -0
  62. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/reject_duplicate_role_claims.py +0 -0
  63. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/reject_unknown_keys.py +0 -0
  64. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/__init__.py +0 -0
  65. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/check_project.py +0 -0
  66. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/check_result.py +0 -0
  67. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/check_source_file.py +0 -0
  68. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/fingerprint_findings.py +0 -0
  69. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/rule_registry.py +0 -0
  70. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/__init__.py +0 -0
  71. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/budget_note.py +0 -0
  72. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/build_stage_result.py +0 -0
  73. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/gate_result.py +0 -0
  74. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/gate_stages.py +0 -0
  75. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/over_budget_detail.py +0 -0
  76. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/run_gate.py +0 -0
  77. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/run_stage.py +0 -0
  78. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/stage.py +0 -0
  79. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/stage_kind.py +0 -0
  80. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/stage_result.py +0 -0
  81. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/stage_status.py +0 -0
  82. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/__init__.py +0 -0
  83. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/add_missing_rules.py +0 -0
  84. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/apply_init.py +0 -0
  85. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/current_branch.py +0 -0
  86. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/first_party_packages.py +0 -0
  87. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/has_ruff_table.py +0 -0
  88. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/managed_asset_files.py +0 -0
  89. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/managed_file.py +0 -0
  90. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/merge_pyproject_sections.py +0 -0
  91. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/merge_quality_group.py +0 -0
  92. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/merge_ruff_config.py +0 -0
  93. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_asset_file.py +0 -0
  94. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_disposition.py +0 -0
  95. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_init.py +0 -0
  96. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_pyproject.py +0 -0
  97. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_ruff.py +0 -0
  98. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_shadowed_ruff.py +0 -0
  99. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/python_floor_minor.py +0 -0
  100. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/read_asset.py +0 -0
  101. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/read_requires_python.py +0 -0
  102. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/render_asset.py +0 -0
  103. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/render_nested_workflow.py +0 -0
  104. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/repository_root.py +0 -0
  105. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/workflow_target.py +0 -0
  106. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/__init__.py +0 -0
  107. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/finding.py +0 -0
  108. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/location.py +0 -0
  109. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/rule_code.py +0 -0
  110. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/severity.py +0 -0
  111. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/__init__.py +0 -0
  112. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/infrastructure_error.py +0 -0
  113. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/parse_source_file.py +0 -0
  114. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/read_source_text.py +0 -0
  115. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/source_file.py +0 -0
  116. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/syntax_error_finding.py +0 -0
  117. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/__init__.py +0 -0
  118. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/exit_code.py +0 -0
  119. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/finding_document.py +0 -0
  120. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/findings_summary.py +0 -0
  121. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/render_gate_report.py +0 -0
  122. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/render_json_report.py +0 -0
  123. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/render_text_report.py +0 -0
  124. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/stage_document.py +0 -0
  125. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/__init__.py +0 -0
  126. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/assign_module_role.py +0 -0
  127. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/compile_glob.py +0 -0
  128. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/matches_any_pattern.py +0 -0
  129. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/matches_glob.py +0 -0
  130. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/test_file_patterns.py +0 -0
  131. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/__init__.py +0 -0
  132. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/barrel_only_init.py +0 -0
  133. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/count_code_lines.py +0 -0
  134. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/data_unit_findings.py +0 -0
  135. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/docstring_line_spans.py +0 -0
  136. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/file_matches_unit.py +0 -0
  137. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/grab_bag_names.py +0 -0
  138. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_allowed_barrel_statement.py +0 -0
  139. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_column_list.py +0 -0
  140. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_docstring_statement.py +0 -0
  141. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_sql_literal.py +0 -0
  142. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_static_dunder_assignment.py +0 -0
  143. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_type_checking_block.py +0 -0
  144. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/joined_string_text.py +0 -0
  145. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/looks_like_sql.py +0 -0
  146. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/max_file_lines.py +0 -0
  147. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/no_grab_bag_names.py +0 -0
  148. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/no_inline_sql.py +0 -0
  149. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/ordinary_unit_findings.py +0 -0
  150. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/sql_subject.py +0 -0
  151. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/unit_finding.py +0 -0
  152. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/__init__.py +0 -0
  153. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/apply_suppressions.py +0 -0
  154. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/build_suppression.py +0 -0
  155. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/covering_suppression.py +0 -0
  156. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/is_overridden.py +0 -0
  157. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/parse_suppression_line.py +0 -0
  158. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/parse_suppressions.py +0 -0
  159. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/suppression.py +0 -0
  160. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/__init__.py +0 -0
  161. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/collect_source_files.py +0 -0
  162. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/default_excludes.py +0 -0
  163. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/gitignore_matcher.py +0 -0
  164. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/walk_root.py +0 -0
  165. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/__init__.py +0 -0
  166. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/coalesce_overloads.py +0 -0
  167. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/coalesce_singledispatch.py +0 -0
  168. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/collect_declarations.py +0 -0
  169. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/count_primary_declarations.py +0 -0
  170. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/declaration.py +0 -0
  171. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/declaration_for.py +0 -0
  172. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/declaration_kind.py +0 -0
  173. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/decorator_name.py +0 -0
  174. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/decorator_names.py +0 -0
  175. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/is_main_guard.py +0 -0
  176. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/is_private_local_handler.py +0 -0
  177. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/legacy_type_alias.py +0 -0
  178. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/literal_string_names.py +0 -0
  179. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/merge_stray_letters.py +0 -0
  180. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/named_declaration.py +0 -0
  181. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/overload_family_length.py +0 -0
  182. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/resolve_exported_names.py +0 -0
  183. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/top_level_statements.py +0 -0
  184. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/baseline/test_classify_findings.py +0 -0
  185. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/commands/test_baseline_command.py +0 -0
  186. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/commands/test_check_command.py +0 -0
  187. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/commands/test_gate_command.py +0 -0
  188. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/config/test_load_config.py +0 -0
  189. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/config/test_pyproject_layout_hints.py +0 -0
  190. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/conftest.py +0 -0
  191. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/gate/test_gate_stages.py +0 -0
  192. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/gate/test_run_gate.py +0 -0
  193. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/init/test_merge_ruff_config.py +0 -0
  194. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/init/test_plan_init.py +0 -0
  195. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/init/test_render_asset.py +0 -0
  196. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/model/test_finding.py +0 -0
  197. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/model/test_rule_code.py +0 -0
  198. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/parsing/test_parse_source_file.py +0 -0
  199. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/report/test_render_gate_report.py +0 -0
  200. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/roles/test_assign_module_role.py +0 -0
  201. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/roles/test_matches_glob.py +0 -0
  202. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_barrel_only_init.py +0 -0
  203. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_file_matches_unit.py +0 -0
  204. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_max_file_lines.py +0 -0
  205. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_no_grab_bag_names.py +0 -0
  206. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_no_inline_sql.py +0 -0
  207. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/test_cli_version.py +0 -0
  208. {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/traversal/test_collect_source_files.py +0 -0
@@ -4,6 +4,32 @@ All notable changes to `syntopica-codeality-py` are documented here. The format
4
4
  follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project
5
5
  adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [Unreleased]
8
+
9
+ ## [0.2.6] - 2026-10-11
10
+
11
+ ### Changed
12
+
13
+ - The workflow `init` writes pins `actions/checkout` v7, `astral-sh/setup-uv`
14
+ v10.3.0 and `actions/upload-artifact` v7.0.2. An existing `quality.yml` from
15
+ an earlier release now differs and reports a conflict; rerun `init --force` to
16
+ take the new pins.
17
+
18
+ ## 0.2.5
19
+
20
+ ### Fixed
21
+
22
+ - `BPY002` keeps the underscores a name already has: `is_a_step` belongs in
23
+ `is_a_step.py`, no longer `is_astep.py`. Only a letter left alone by the
24
+ case-boundary split (the `o` of `OAuth`) is folded into the next word.
25
+ - A plural acronym is one word: `URLs` belongs in `urls.py` and
26
+ `DownloadedURLsSQL` in `downloaded_urls_sql.py`, not `ur_ls.py`. A one-letter
27
+ interface prefix (`IFileHandler` to `ifile_handler.py`) is unchanged: it
28
+ cannot be told apart from `OAuthClient`.
29
+ - `BPY001` accepts an `entrypoint` module that declares nothing: a `__main__.py`
30
+ that imports its entry function and calls it under the `__main__` guard is the
31
+ shape the role exists for. Two declarations are still reported.
32
+
7
33
  ## 0.2.4
8
34
 
9
35
  ### Added
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) BusiRocket
3
+ Copyright (c) Syntopica
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: syntopica-codeality-py
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Structural linter and config scaffolder for Python: atomic files, placement, size caps, no inline SQL
5
5
  Project-URL: Homepage, https://github.com/syntopica/codeality
6
6
  Project-URL: Issues, https://github.com/syntopica/codeality/issues
7
7
  Author: Cristian Deluxe
8
8
  License: MIT License
9
9
 
10
- Copyright (c) BusiRocket
10
+ Copyright (c) Syntopica
11
11
 
12
12
  Permission is hereby granted, free of charge, to any person obtaining a copy
13
13
  of this software and associated documentation files (the "Software"), to deal
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "syntopica-codeality-py"
7
- version = "0.2.4"
7
+ version = "0.2.6"
8
8
  description = "Structural linter and config scaffolder for Python: atomic files, placement, size caps, no inline SQL"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -33,7 +33,7 @@ Issues = "https://github.com/syntopica/codeality/issues"
33
33
  [dependency-groups]
34
34
  dev = [
35
35
  "deptry>=0.20,<1",
36
- "mypy>=1.11,<2",
36
+ "mypy>=1.11,<3",
37
37
  "pip-audit>=2.7,<3",
38
38
  "pytest>=8,<10",
39
39
  "pytest-cov>=5,<8",
@@ -16,12 +16,12 @@ jobs:
16
16
  matrix:
17
17
  python-version: ['3.11', '3.13']
18
18
  steps:
19
- - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
19
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
20
20
  with:
21
21
  persist-credentials: false
22
22
 
23
23
  - name: Install uv
24
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
24
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
25
25
  with:
26
26
  enable-cache: true
27
27
 
@@ -46,7 +46,7 @@ jobs:
46
46
 
47
47
  - name: Upload the pyrefly shadow report
48
48
  if: always()
49
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
49
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
50
50
  with:
51
51
  name: pyrefly-shadow-${{ matrix.python-version }}
52
52
  path: pyrefly.json
@@ -30,7 +30,7 @@ fail_under = 80
30
30
  quality = [
31
31
  "syntopica-codeality-py>=0.1,<1",
32
32
  "deptry>=0.20,<1",
33
- "mypy>=1.11,<2",
33
+ "mypy>=1.11,<3",
34
34
  "pip-audit>=2.7,<3",
35
35
  "pytest>=8,<10",
36
36
  "pytest-cov>=5,<8",
@@ -0,0 +1,19 @@
1
+ """Judge an entrypoint module against the one-unit rule."""
2
+
3
+ from codeality_py.model.finding import Finding
4
+ from codeality_py.rules.ordinary_unit_findings import ordinary_unit_findings
5
+ from codeality_py.units.declaration import Declaration
6
+
7
+
8
+ def entrypoint_unit_findings(
9
+ relative_path: str, declarations: tuple[Declaration, ...]
10
+ ) -> tuple[Finding, ...]:
11
+ """Return the finding for an entrypoint module, or nothing when it is clean.
12
+
13
+ An entrypoint may declare nothing: a ``__main__.py`` that imports the entry
14
+ function and calls it under the ``__main__`` guard is the shape the role
15
+ exists for. Otherwise it holds its one unit, like an ordinary module.
16
+ """
17
+ if not declarations:
18
+ return ()
19
+ return ordinary_unit_findings(relative_path, declarations)
@@ -5,6 +5,7 @@ from codeality_py.config.module_role import ModuleRole
5
5
  from codeality_py.model.finding import Finding
6
6
  from codeality_py.parsing.source_file import SourceFile
7
7
  from codeality_py.rules.data_unit_findings import data_unit_findings
8
+ from codeality_py.rules.entrypoint_unit_findings import entrypoint_unit_findings
8
9
  from codeality_py.rules.ordinary_unit_findings import ordinary_unit_findings
9
10
  from codeality_py.units.count_primary_declarations import count_primary_declarations
10
11
 
@@ -19,4 +20,6 @@ def one_primary_unit(source: SourceFile, config: BaselineConfig) -> tuple[Findin
19
20
  declarations = count_primary_declarations(source.tree, source.relative_path)
20
21
  if source.role is ModuleRole.DATA:
21
22
  return data_unit_findings(source.relative_path, declarations)
23
+ if source.role is ModuleRole.ENTRYPOINT:
24
+ return entrypoint_unit_findings(source.relative_path, declarations)
22
25
  return ordinary_unit_findings(source.relative_path, declarations)
@@ -0,0 +1,22 @@
1
+ """Convert one underscore-free word of a declaration name to snake_case."""
2
+
3
+ import re
4
+
5
+ from codeality_py.units.merge_stray_letters import merge_stray_letters
6
+
7
+ _PLURAL_ACRONYM = re.compile(r"([A-Z]{2,})s(?=[A-Z0-9]|$)")
8
+ _ACRONYM_THEN_WORD = re.compile(r"([A-Z]+)([A-Z][a-z])")
9
+ _WORD_THEN_CAPITAL = re.compile(r"([a-z0-9])([A-Z])")
10
+
11
+
12
+ def snake_case_word(word: str) -> str:
13
+ """Return the snake_case form of a word holding no underscore.
14
+
15
+ A plural acronym (URLs, IDs) is one word, so it is marked off before the
16
+ case-boundary split would cut it into ur and ls.
17
+ """
18
+ separated = _PLURAL_ACRONYM.sub(lambda match: f"_{match.group(1).lower()}s_", word)
19
+ separated = _ACRONYM_THEN_WORD.sub(r"\1_\2", separated)
20
+ separated = _WORD_THEN_CAPITAL.sub(r"\1_\2", separated)
21
+ segments = [segment for segment in separated.lower().split("_") if segment]
22
+ return "_".join(merge_stray_letters(segments)) if segments else word.lower()
@@ -0,0 +1,14 @@
1
+ """Convert a declaration name to the file name that must hold it."""
2
+
3
+ from codeality_py.units.snake_case_word import snake_case_word
4
+
5
+
6
+ def to_snake_case(name: str) -> str:
7
+ """Return the snake_case form of a declaration name.
8
+
9
+ One algorithm, pinned by fixtures: HTTP2Client to http2_client,
10
+ OAuthClient to oauth_client, IPv6Address to ipv6_address, HTTPServer to
11
+ http_server, DownloadedURLsSQL to downloaded_urls_sql. An underscore the
12
+ name already has is kept, so is_a_step stays is_a_step.
13
+ """
14
+ return "_".join(snake_case_word(word) for word in name.split("_"))
@@ -218,3 +218,17 @@ def test_test_stub_generated_and_barrel_roles_are_exempt(make_source, config) ->
218
218
  ModuleRole.BARREL,
219
219
  ):
220
220
  assert _clean(make_source, config, body, role)
221
+
222
+
223
+ def test_an_entrypoint_calling_an_imported_function_is_clean(make_source, config) -> None:
224
+ body = 'from pkg.run import run\n\nif __name__ == "__main__":\n run()\n'
225
+ assert _clean(make_source, config, body, ModuleRole.ENTRYPOINT)
226
+
227
+
228
+ def test_an_entrypoint_with_two_units_is_reported(make_source, config) -> None:
229
+ body = "def main() -> None:\n return None\n\n\ndef helper() -> None:\n return None\n"
230
+ assert not _clean(make_source, config, body, ModuleRole.ENTRYPOINT)
231
+
232
+
233
+ def test_an_ordinary_module_without_a_declaration_is_reported(make_source, config) -> None:
234
+ assert not _clean(make_source, config, "from pkg.run import run\n\nrun()\n")
@@ -15,6 +15,12 @@ CASES = [
15
15
  ("A", "a"),
16
16
  ("HTTPServer", "http_server"),
17
17
  ("SQLiteStore", "sq_lite_store"),
18
+ ("is_a_step", "is_a_step"),
19
+ ("stage_x_positions", "stage_x_positions"),
20
+ ("URLs", "urls"),
21
+ ("DownloadedURLsSQL", "downloaded_urls_sql"),
22
+ ("IDsToFetch", "ids_to_fetch"),
23
+ ("_private_name", "_private_name"),
18
24
  ]
19
25
 
20
26