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.
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/CHANGELOG.md +26 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/LICENSE +1 -1
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/PKG-INFO +2 -2
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/pyproject.toml +2 -2
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/codeality-py-ci.yml +3 -3
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/pyproject-sections.toml +1 -1
- syntopica_codeality_py-0.2.6/src/codeality_py/rules/entrypoint_unit_findings.py +19 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/one_primary_unit.py +3 -0
- syntopica_codeality_py-0.2.6/src/codeality_py/units/snake_case_word.py +22 -0
- syntopica_codeality_py-0.2.6/src/codeality_py/units/to_snake_case.py +14 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_one_primary_unit.py +14 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/units/test_to_snake_case.py +6 -0
- syntopica_codeality_py-0.2.6/uv.lock +1156 -0
- syntopica_codeality_py-0.2.4/src/codeality_py/units/to_snake_case.py +0 -20
- syntopica_codeality_py-0.2.4/uv.lock +0 -1061
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/.gitignore +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/README.md +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/codeality-py.toml +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/mypy.ini +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/ruff.toml +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/codeality-py.toml +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/importlinter.ini +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/mypy.ini +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/assets/ruff.toml +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/baseline_file.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/classified_findings.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/classify_findings.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/finding_context.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/fingerprint.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/fingerprint_context.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/read_baseline.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/baseline/write_baseline.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/cli.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/baseline_check_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/baseline_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/baseline_update_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/check_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/checked_project.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/gate_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/init_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/commands/project_option.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/baseline_config.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/check_schema_version.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/config_error.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/default_generated_globs.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/discover_source_roots.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/discover_test_roots.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/environment_test_budget.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/limits.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/load_config.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/module_role.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/override.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/parse_overrides.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/parse_roles.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/parse_rule_codes.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/pyproject_layout_hints.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/read_config_document.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/reject_duplicate_role_claims.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/config/reject_unknown_keys.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/check_project.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/check_result.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/check_source_file.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/fingerprint_findings.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/engine/rule_registry.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/budget_note.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/build_stage_result.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/gate_result.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/gate_stages.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/over_budget_detail.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/run_gate.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/run_stage.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/stage.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/stage_kind.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/stage_result.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/gate/stage_status.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/add_missing_rules.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/apply_init.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/current_branch.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/first_party_packages.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/has_ruff_table.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/managed_asset_files.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/managed_file.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/merge_pyproject_sections.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/merge_quality_group.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/merge_ruff_config.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_asset_file.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_disposition.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_init.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_pyproject.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_ruff.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/plan_shadowed_ruff.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/python_floor_minor.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/read_asset.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/read_requires_python.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/render_asset.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/render_nested_workflow.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/repository_root.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/init/workflow_target.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/finding.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/location.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/rule_code.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/model/severity.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/infrastructure_error.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/parse_source_file.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/read_source_text.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/source_file.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/parsing/syntax_error_finding.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/exit_code.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/finding_document.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/findings_summary.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/render_gate_report.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/render_json_report.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/render_text_report.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/report/stage_document.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/assign_module_role.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/compile_glob.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/matches_any_pattern.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/matches_glob.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/roles/test_file_patterns.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/barrel_only_init.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/count_code_lines.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/data_unit_findings.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/docstring_line_spans.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/file_matches_unit.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/grab_bag_names.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_allowed_barrel_statement.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_column_list.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_docstring_statement.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_sql_literal.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_static_dunder_assignment.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/is_type_checking_block.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/joined_string_text.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/looks_like_sql.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/max_file_lines.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/no_grab_bag_names.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/no_inline_sql.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/ordinary_unit_findings.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/sql_subject.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/rules/unit_finding.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/apply_suppressions.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/build_suppression.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/covering_suppression.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/is_overridden.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/parse_suppression_line.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/parse_suppressions.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/suppression/suppression.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/collect_source_files.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/default_excludes.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/gitignore_matcher.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/traversal/walk_root.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/__init__.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/coalesce_overloads.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/coalesce_singledispatch.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/collect_declarations.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/count_primary_declarations.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/declaration.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/declaration_for.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/declaration_kind.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/decorator_name.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/decorator_names.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/is_main_guard.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/is_private_local_handler.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/legacy_type_alias.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/literal_string_names.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/merge_stray_letters.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/named_declaration.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/overload_family_length.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/resolve_exported_names.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/src/codeality_py/units/top_level_statements.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/baseline/test_classify_findings.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/commands/test_baseline_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/commands/test_check_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/commands/test_gate_command.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/config/test_load_config.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/config/test_pyproject_layout_hints.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/conftest.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/gate/test_gate_stages.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/gate/test_run_gate.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/init/test_merge_ruff_config.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/init/test_plan_init.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/init/test_render_asset.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/model/test_finding.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/model/test_rule_code.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/parsing/test_parse_source_file.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/report/test_render_gate_report.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/roles/test_assign_module_role.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/roles/test_matches_glob.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_barrel_only_init.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_file_matches_unit.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_max_file_lines.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_no_grab_bag_names.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_no_inline_sql.py +0 -0
- {syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/test_cli_version.py +0 -0
- {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,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: syntopica-codeality-py
|
|
3
|
-
Version: 0.2.
|
|
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)
|
|
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.
|
|
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,<
|
|
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@
|
|
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@
|
|
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@
|
|
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
|
|
@@ -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("_"))
|
{syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/rules/test_one_primary_unit.py
RENAMED
|
@@ -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")
|
{syntopica_codeality_py-0.2.4 → syntopica_codeality_py-0.2.6}/tests/units/test_to_snake_case.py
RENAMED
|
@@ -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
|
|