matchify 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {matchify-0.3.0 → matchify-0.3.1}/.copier-answers.yml +2 -1
- {matchify-0.3.0 → matchify-0.3.1}/.github/actions/setup/action.yml +2 -2
- {matchify-0.3.0 → matchify-0.3.1}/.github/workflows/ci.yml +39 -28
- {matchify-0.3.0 → matchify-0.3.1}/.github/workflows/deploy_development_docs.yml +8 -3
- {matchify-0.3.0 → matchify-0.3.1}/.github/workflows/docs.yml +8 -3
- {matchify-0.3.0 → matchify-0.3.1}/.github/workflows/release-pr.yml +11 -2
- matchify-0.3.1/.github/workflows/test-release.yml +81 -0
- {matchify-0.3.0 → matchify-0.3.1}/.github/workflows/test_docs.yml +1 -1
- {matchify-0.3.0 → matchify-0.3.1}/.github/workflows/weekly.yml +13 -4
- {matchify-0.3.0 → matchify-0.3.1}/.pre-commit-config.yaml +0 -7
- {matchify-0.3.0 → matchify-0.3.1}/CHANGELOG.md +24 -0
- {matchify-0.3.0 → matchify-0.3.1}/PKG-INFO +37 -1
- {matchify-0.3.0 → matchify-0.3.1}/README.md +36 -0
- {matchify-0.3.0 → matchify-0.3.1}/pyproject.toml +1 -1
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/cli.py +161 -49
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/conversion_filter.py +43 -41
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/diff.py +30 -29
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/lookup_tables.py +17 -9
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/transform.py +24 -9
- matchify-0.3.1/tests/code_samples/nested_statement_rewrites_preserve_expressions.py +39 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_cli.py +540 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_planning.py +47 -0
- {matchify-0.3.0 → matchify-0.3.1}/uv.lock +2 -2
- matchify-0.3.0/.copier-enforce.json +0 -5
- {matchify-0.3.0 → matchify-0.3.1}/.gitattributes +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/.github/FUNDING.yml +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/.github/pull_request_template.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/.gitignore +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/.pre-commit-hooks.yaml +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/AGENTS.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/CONTRIBUTING.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/COPIER_TEMPLATE_CHANGES.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/LICENSE +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/changelog.d/.gitignore +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/code_sample_format.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/code_sample_runtime.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/code_sample_writer.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/design.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/docs/assumptions.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/docs/contributing.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/docs/index.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/docs/selective-conversion.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/find_pattern_coverage_issue.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/find_random_trace_issue.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/limitations.md +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/mkdocs.yml +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/__init__.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/__main__.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/access_path.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/assumptions.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/capture_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/compiler.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/conditions.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/facts.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/pattern_builder.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/src/matchify/safety.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/test-repos.json +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/test-repos.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_can_select_using_all_source_and_result_metrics_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_can_select_using_all_source_and_result_metrics_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_maximum_generated_pattern_depth_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_maximum_generated_pattern_depth_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_names_once_across_or_pattern_alternatives.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_class_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_class_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_guard_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_guard_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_inside_composite_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_literal_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_literal_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_membership_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_membership_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_self_attribute_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_self_attribute_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_singleton_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_qualified_value_patterns_singleton_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_counts_sequence_checks_guards_and_captures.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_class_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_class_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_guard_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_guard_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_membership_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_membership_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_nested_other_self_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_nested_other_self_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_nested_self_attribute_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_nested_self_attribute_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_other_attribute_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_other_attribute_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_self_attribute_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_self_attribute_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_similar_name_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_distinguishes_self_value_patterns_similar_name_selected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_does_not_apply_to_lookup_conversions.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_preserves_python_boolean_semantics_and_short_circuit.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_preserves_python_boolean_semantics_and_value.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_preserves_python_boolean_semantics_comparison_short_circuit.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_preserves_python_boolean_semantics_or_branches.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_preserves_python_boolean_semantics_or_fallback.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_preserves_python_boolean_semantics_or_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_preserves_python_boolean_semantics_or_short_circuit.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/conversion_filter_runs_after_assumption_resolution.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_chained_comparison_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_comment_preservation_before_elif_and_else.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_comment_preservation_before_if.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_different_dynamic_subscript_subjects_are_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_dynamic_and_slice_subscript_subjects_are_not_conflated.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_guard_pattern_with_boolean_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_guard_pattern_with_global_variable.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_guard_pattern_with_ignored_type_check_on_other_subject.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_guard_pattern_with_independent_condition.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_guard_pattern_with_isinstance_check.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_guard_pattern_with_multiple_classes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_guard_pattern_with_multiple_conditions.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_guard_pattern_with_nested_boolean_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_inconsistent_tuple_subject_order_is_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_is_not_operator_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_is_operator_with_non_singleton_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_proper_type_with_second_isinstance_becomes_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_tuple_with_attribute_checks.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_tuple_with_attributes_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_attribute_guard_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_boolean_attribute_guard_real_world.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_deeply_nested_isinstance_on_attributes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_empty_tuple_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_ignored_class_alias_in_tuple_enabled.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_len_check_on_attribute_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_nested_class_sequence_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_nested_isinstance_and_attr_checks.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_nested_isinstance_and_multiple_attr_checks.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_nested_isinstance_on_attributes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_nested_isinstance_tuple.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_nested_or_attribute_check.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_non_literal_attribute_becomes_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_qualified_ignored_type_ignored.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_starred_element_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_type_variable_ignored_enabled.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_type_variable_ignored_ignored.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_isinstance_with_type_variable_in_tuple_ignored_ignored.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_len_attribute_with_unsupported_operator_stays_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_len_attribute_with_variable_length_stays_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_malformed_isinstance_on_other_value_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_mixed_sequence_patterns_in_chain.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_multiple_subjects_preserve_short_circuiting_in_guards.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_nested_isinstance_tuple_with_sequence_attribute_checks.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_nested_isinstance_with_walrus_converted_to_pattern_and_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_non_equality_condition_after_pattern_becomes_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_or_pattern_with_guard_condition.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_parenthesized_or_condition_after_pattern_becomes_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_path_bearing_guard_can_anchor_sequence_subject.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_problematic_empty_isinstance_tuple_inside_and_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_problematic_ignored_isinstance_tuple_element_inside_and_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_problematic_isinstance_inside_and_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_problematic_starred_isinstance_tuple_inside_and_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_redundant_hasattr_removed_when_attribute_is_pattern_checked.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_sequence_with_non_integer_subscript_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_starred_isinstance_on_other_value_stays_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_starred_isinstance_on_subject_attribute_stays_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_typed_predicate_outside_subject_remains_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_value_pattern_with_guard_condition.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_walrus_operator_in_isinstance_converted_to_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/edge_cases_walrus_operator_in_isinstance_subject_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/example.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/guard_multiline_match_case_guard_is_parenthesized.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_chained_subscription.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_function_local_lookup_assignment_is_removed.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_inline_lookup_in_arbitrary_statement.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_invalid_slice.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_lookup_comments_remain_before_the_generated_match.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_lookup_values_can_be_arbitrary_expressions.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_module_source_unchanged.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_one_line_functions_are_ignored.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_only_the_chained_lookup_is_excluded.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_reused_source_unchanged.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_source.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_subject_is_evaluated_once_and_missing_key_is_preserved.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_table.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_tuple_and_nested_tuple_keys_become_sequence_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_01.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_02.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_03.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_04.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_05.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_06.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_07.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_08.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_09.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_unsafe_10.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/lookup_use_before_assignment.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/planning_missing_parent_assumptions_do_not_block_children_enabled_after_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/planning_missing_parent_assumptions_do_not_block_children_risky.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/planning_missing_parent_assumptions_do_not_block_children_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_accepts_deeply_qualified_class_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_capture_stays_in_body_for_an_incompatible_attribute_parent.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_capture_stays_in_body_when_class_attribute_is_not_patterned.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_capture_stays_in_body_when_only_one_or_alternative_can_bind.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_conflicting_value_facts_fall_back_to_a_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_deep_capture_stays_in_body_when_intermediate_element_is_missing.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_duplicate_capture_with_multiple_remaining_statements.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_incompatible_class_and_subscript_facts_are_rejected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_list_and_tuple_type_guards_are_kept_for_sequence_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_nested_capture_stays_in_body_when_the_child_is_not_a_sequence.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_nested_or_fact_with_a_shared_guard_is_rendered.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_nested_subscription_without_sequence_anchor_stays_in_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_or_alternatives_with_different_guards_fall_back_to_a_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_qualified_sequence_type_checks_remain_guards.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_rejects_dynamic_and_non_string_hasattr_names.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_rejects_non_literal_and_starred_membership_containers.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_rejects_unsafe_equality_on_a_selected_subject.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_rejects_unsafe_identity_on_a_selected_subject.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_sequence_type_guard_preserves_runtime_for_other_sequence_types.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_sequence_type_guards_can_be_assumed_for_or_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_single_literal_membership_becomes_a_value_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/public_subscript_or_expression_does_not_hide_a_later_value_subject.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/sequence_list_assumption_does_not_apply_to_tuple_checks_list_assumed.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/sequence_list_check_requires_list_sequence_pattern_assumption_assumed.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/sequence_list_check_requires_list_sequence_pattern_assumption_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/sequence_sequence_assumptions_do_not_apply_to_qualified_class_checks_both_assumed.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/sequence_tuple_check_requires_tuple_sequence_pattern_assumption_assumed.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/sequence_tuple_check_requires_tuple_sequence_pattern_assumption_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_all_negated_isinstance_chain_is_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_and_subjects_use_a_composite_match_subject_pure_subjects.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_and_subjects_use_a_composite_match_subject_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_and_subjects_use_a_composite_match_subject_use_object.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_attribute_subject_uses_object_patterns_pure_subjects.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_attribute_subject_uses_object_patterns_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_attribute_subject_uses_object_patterns_use_object.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_attributes_with_one_root_share_one_object_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_nested_attributes_get_recursive_object_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_assumed_pure_subject_used_by_a_majority_joins_match_subject_pure_subjects.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_attribute_access_variable.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_bare_constants_are_not_value_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_does_not_replace_an_existing_value_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_only_body_becomes_pass.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_class_union.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_direct_sequence_subject.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_direct_sequence_subject_or_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_direct_star_sequence_subject.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_from_assignment.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_multi_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_multi_attribute_multiple_captures.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_multiple_values.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_nested_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_nested_class_union_sequence_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_non_consecutive_indices.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_non_consecutive_multi_gap.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_not_starting_from_zero.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_sequence_attribute_or_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_sequence_element_class_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_sequence_element_class_union_nested_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_capture_pattern_three_values.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_common_subject_is_built_from_branch_path_prefixes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_comparison_with_variable_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_complex_real_world_example.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_convertible_chain_after_non_convertible_chain.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_different_subjects_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_different_variables_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_duplicate_capture_index_uses_alias_assignment.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_duplicate_capture_only_body_keeps_alias_without_pass.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_f_string_attribute_check_becomes_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_f_string_sequence_element_check_becomes_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_f_string_value_pattern_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_function_call_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_guard_branch_with_else_is_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_if_elif_without_else.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_invalid_capture_assignments_stay_in_body.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_is_none_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_none_type_becomes_singleton_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_subscript_subject.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_tuple_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_tuple_with_none_type_becomes_or_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_and_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_is_none_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_is_true_false.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_multiple_and_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_nested_sequence_attributes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_nested_sequence_in_sequence_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_or_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_sequence_and_nested_class_attributes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_sequence_and_scalar_attributes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_sequence_attribute_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_isinstance_with_sequence_attribute_mixed_types.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_leading_guard_branch_is_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_list_tuple_sequence_checks_require_both_assumptions_list_sequence_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_list_tuple_sequence_checks_require_both_assumptions_list_sequence_pattern_tuple_sequence_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_list_tuple_sequence_checks_require_both_assumptions_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_list_tuple_sequence_checks_require_both_assumptions_tuple_sequence_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_literal_membership_becomes_or_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_literal_set_membership_requires_hashable_subjects_assumption_hashable_subjects.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_literal_set_membership_requires_hashable_subjects_assumption_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_many_branches_no_limit.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_many_sibling_attributes_no_limit.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_mixed_is_none_and_isinstance.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_mixed_operators_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_mixed_pattern_types_in_chain.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_multiple_independent_if_chains.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_multiple_sibling_attributes_with_literals.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_multiple_statements_in_body.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_negated_isinstance_chain_is_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_negative_numbers_in_attributes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_negative_numbers_in_comparisons.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_nested_attribute_non_literal_check_preserved_as_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_nested_if_not_affected.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_nested_literal_membership_becomes_or_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_nested_sequence_attribute_relational_check_preserved_as_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_non_equality_comparisons_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_non_integer_sequence_subscripts_fall_back_to_guards.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_numeric_comparisons.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_class_pattern_with_common_attribute_check.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_different_subjects_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_in_mixed_chain.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_mixed_types.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_simple.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_three_values.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_class_attribute_alternative.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_common_call_guard_stays_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_common_simple_guard_is_lifted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_deep_nested_class_redundant_hasattr.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_guarded_alternative_stays_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_is_none.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_isinstance_classes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_mixed_value_and_class_attribute_alternative.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_mixed_value_and_isinstance.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_negative_numbers.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_nested_class_redundant_hasattr.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_redundant_hasattr_class_attribute_alternative.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_safe_sequence_alternative_list_sequence_pattern_tuple_sequence_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_safe_sequence_alternative_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_safe_sequence_attribute_alternative_list_sequence_pattern_tuple_sequence_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_safe_sequence_attribute_alternative_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_sequence_alternative.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_sequence_attribute_alternative.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_sequence_element_redundant_hasattr.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_strings.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_or_pattern_with_variable_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_other_isinstance_classinfo_call_becomes_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_parenthesized_isinstance_class_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_plain_list_tuple_isinstance_becomes_class_pattern.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_qualified_constants_become_value_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_qualified_identity_requires_identity_equality_assumption_identity_equality.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_qualified_identity_requires_identity_equality_assumption_safe.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_attribute_element_non_literal_check_preserved_as_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_attribute_type_guard_preserves_len_check.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_element_beyond_checked_length_falls_back_to_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_element_class_union_nested_attribute_redundant_hasattr.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_nested_element_non_literal_check_preserved_as_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_many_elements_no_limit.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_missing_index_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_simple.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_star_with_isinstance.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_star_with_wildcard_gap.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_three_elements.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_class_attribute_or_element.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_class_element_attributes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_class_or_element.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_guard_condition.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_isinstance_and_is_none.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_isinstance_element.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_isinstance_tuple.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_isinstance_tuple_and_attribute.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_mixed_isinstance_and_literals.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_mixed_or_element.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_nested_class_attribute_or_element.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_nested_class_element_attributes.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_or_element.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_safe_nested_class_attribute_or_element.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_star.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_strings.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_subject_guard_condition.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_with_variable_element_guard.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_pattern_without_len_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_with_deeply_nested_sequence.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_with_multiple_nested_sequences.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_with_nested_class_in_element.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_with_nested_sequence_and_isinstance.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_with_nested_sequence_simple.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_with_nested_sequence_strings.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_sequence_with_nested_star_sequence.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_simple_if_elif_else_chain.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_simple_if_only_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_singleton_membership_is_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_tuple_comparisons_are_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_unary_plus_numbers_are_normalized_in_patterns.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_unsafe_set_membership_is_not_converted_hashable_subjects.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_walrus_guard_is_preserved.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_at_end.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_at_start.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_multiple_groups.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_not_used_for_mixed.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_simple.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_three_consecutive_not_converted.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_two_consecutive.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_with_is_none.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/code_samples/transform_wildcard_pattern_with_isinstance.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_access_path.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_assumptions.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_code_samples.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_conversion_filter.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_documentation.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_find_pattern_coverage_issue.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_internal_coverage.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_issue_code_samples.py +0 -0
- {matchify-0.3.0 → matchify-0.3.1}/tests/test_lookup_tables.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Changes here will be overwritten by Copier
|
|
2
|
-
_commit: v0.
|
|
2
|
+
_commit: v0.5.0
|
|
3
3
|
_src_path: https://github.com/15r10nk/project-template.git
|
|
4
4
|
author_email: 15r10nk@polarbit.de
|
|
5
5
|
author_name: Frank Hoffmann
|
|
@@ -20,4 +20,5 @@ python_versions:
|
|
|
20
20
|
- '3.13'
|
|
21
21
|
- '3.14'
|
|
22
22
|
show_project_logo: false
|
|
23
|
+
test_lowest_deps: true
|
|
23
24
|
use_mkdocs: true
|
|
@@ -11,12 +11,12 @@ runs:
|
|
|
11
11
|
using: composite
|
|
12
12
|
steps:
|
|
13
13
|
- name: Install uv
|
|
14
|
-
uses: astral-sh/setup-uv@
|
|
14
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
15
15
|
with:
|
|
16
16
|
python-version: ${{inputs.python-version}}
|
|
17
17
|
|
|
18
18
|
- name: Set up Python
|
|
19
|
-
uses: actions/setup-python@
|
|
19
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
20
20
|
with:
|
|
21
21
|
python-version: ${{inputs.python-version}}
|
|
22
22
|
allow-prereleases: true
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
tag: ${{steps.release.outputs.tag}}
|
|
20
20
|
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
22
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
23
|
|
|
24
24
|
- name: Detect merged release pull request
|
|
25
25
|
id: release
|
|
@@ -87,7 +87,7 @@ jobs:
|
|
|
87
87
|
TOP: ${{github.workspace}}
|
|
88
88
|
COVERAGE_PROCESS_START: ${{github.workspace}}/pyproject.toml
|
|
89
89
|
steps:
|
|
90
|
-
- uses: actions/checkout@
|
|
90
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
91
91
|
- uses: ./.github/actions/setup
|
|
92
92
|
with:
|
|
93
93
|
python-version: ${{matrix.python-version}}
|
|
@@ -97,23 +97,23 @@ jobs:
|
|
|
97
97
|
run: |
|
|
98
98
|
uv lock --upgrade --resolution lowest-direct
|
|
99
99
|
uv sync --locked --resolution lowest-direct
|
|
100
|
-
uv pip install coverage coverage-enable-subprocess pytest pytest-xdist
|
|
100
|
+
uv pip install "coverage[toml]" coverage-enable-subprocess pytest pytest-xdist
|
|
101
101
|
|
|
102
102
|
- name: Test locked dependencies
|
|
103
103
|
if: ${{ !matrix.lowest_resolution }}
|
|
104
|
-
run: uv run --locked --with coverage --with coverage-enable-subprocess --with pytest --with pytest-xdist -m ${{ matrix.os == 'ubuntu-latest' && 'coverage run -m' || '' }} pytest -n=auto -vv
|
|
104
|
+
run: uv run --locked --with "coverage[toml]" --with coverage-enable-subprocess --with pytest --with pytest-xdist -m ${{ matrix.os == 'ubuntu-latest' && 'coverage run -m' || '' }} pytest -n=auto -vv
|
|
105
105
|
|
|
106
106
|
- name: Test lowest direct dependencies
|
|
107
107
|
if: matrix.lowest_resolution
|
|
108
108
|
run: uv run --no-sync -m coverage run -m pytest -n=auto -vv
|
|
109
109
|
|
|
110
110
|
- run: |
|
|
111
|
-
uv run ${{ matrix.lowest_resolution && '--no-sync' || '--with coverage' }} -m coverage combine
|
|
111
|
+
uv run ${{ matrix.lowest_resolution && '--no-sync' || '--with "coverage[toml]"' }} -m coverage combine
|
|
112
112
|
mv .coverage .coverage.${{ matrix.python-version }}-${{matrix.os}}-${{strategy.job-index}}
|
|
113
113
|
if: matrix.os == 'ubuntu-latest'
|
|
114
114
|
|
|
115
115
|
- name: Upload coverage data
|
|
116
|
-
uses: actions/upload-artifact@
|
|
116
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
117
117
|
if: matrix.os == 'ubuntu-latest'
|
|
118
118
|
with:
|
|
119
119
|
name: coverage-data-${{github.run_id}}-${{ matrix.python-version }}-${{matrix.os}}-${{strategy.job-index}}
|
|
@@ -130,7 +130,7 @@ jobs:
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
steps:
|
|
133
|
-
- uses: actions/checkout@
|
|
133
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
134
134
|
- uses: ./.github/actions/setup
|
|
135
135
|
with:
|
|
136
136
|
python-version: ${{matrix.python-version}}
|
|
@@ -145,28 +145,28 @@ jobs:
|
|
|
145
145
|
runs-on: ubuntu-latest
|
|
146
146
|
|
|
147
147
|
steps:
|
|
148
|
-
- uses: actions/checkout@
|
|
148
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
149
149
|
- uses: ./.github/actions/setup
|
|
150
150
|
|
|
151
|
-
- uses: actions/download-artifact@
|
|
151
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
152
152
|
with:
|
|
153
153
|
pattern: coverage-data-${{github.run_id}}-*
|
|
154
154
|
merge-multiple: true
|
|
155
155
|
|
|
156
156
|
- name: Combine coverage & fail if it's <100%
|
|
157
157
|
run: |
|
|
158
|
-
uv run --with coverage coverage combine
|
|
159
|
-
uv run --with coverage coverage html --skip-covered --skip-empty
|
|
158
|
+
uv run --with "coverage[toml]" coverage combine
|
|
159
|
+
uv run --with "coverage[toml]" coverage html --skip-covered --skip-empty
|
|
160
160
|
|
|
161
161
|
# Report and write to summary.
|
|
162
|
-
uv run --with coverage coverage report --format=markdown >> "$GITHUB_STEP_SUMMARY"
|
|
162
|
+
uv run --with "coverage[toml]" coverage report --format=markdown >> "$GITHUB_STEP_SUMMARY"
|
|
163
163
|
|
|
164
164
|
# Report again and fail if under 100%.
|
|
165
|
-
uv run --with coverage coverage report
|
|
165
|
+
uv run --with "coverage[toml]" coverage report
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
- name: Upload HTML report if check failed
|
|
169
|
-
uses: actions/upload-artifact@
|
|
169
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
170
170
|
with:
|
|
171
171
|
name: html-report
|
|
172
172
|
path: htmlcov
|
|
@@ -184,11 +184,28 @@ jobs:
|
|
|
184
184
|
id-token: write
|
|
185
185
|
|
|
186
186
|
steps:
|
|
187
|
+
- name: Create GitHub App token
|
|
188
|
+
id: app-token
|
|
189
|
+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
|
|
190
|
+
with:
|
|
191
|
+
client-id: ${{vars.RELEASE_APP_CLIENT_ID}}
|
|
192
|
+
private-key: ${{secrets.RELEASE_APP_PRIVATE_KEY}}
|
|
193
|
+
permission-contents: write
|
|
194
|
+
|
|
187
195
|
- name: Checkout tested commit
|
|
188
|
-
uses: actions/checkout@
|
|
196
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
189
197
|
with:
|
|
190
198
|
fetch-depth: 0
|
|
191
|
-
token: ${{
|
|
199
|
+
token: ${{steps.app-token.outputs.token}}
|
|
200
|
+
|
|
201
|
+
- name: Check release tag does not exist
|
|
202
|
+
env:
|
|
203
|
+
TAG: ${{needs.detect_release.outputs.tag}}
|
|
204
|
+
run: |
|
|
205
|
+
if git ls-remote --exit-code --tags origin "refs/tags/$TAG" >/dev/null 2>&1; then
|
|
206
|
+
echo "::error::Release tag $TAG already exists"
|
|
207
|
+
exit 1
|
|
208
|
+
fi
|
|
192
209
|
|
|
193
210
|
- uses: ./.github/actions/setup
|
|
194
211
|
with:
|
|
@@ -197,23 +214,17 @@ jobs:
|
|
|
197
214
|
- name: Build distributions
|
|
198
215
|
run: uvx hatch build
|
|
199
216
|
|
|
200
|
-
- name:
|
|
217
|
+
- name: Publish package distributions to PyPI
|
|
218
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
219
|
+
|
|
220
|
+
- name: Tag and push tested commit
|
|
201
221
|
env:
|
|
202
222
|
TAG: ${{needs.detect_release.outputs.tag}}
|
|
203
223
|
run: |
|
|
204
224
|
git config user.name github-actions[bot]
|
|
205
225
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
else
|
|
209
|
-
git tag --annotate "$TAG" --message "Release $TAG"
|
|
210
|
-
git push origin "$TAG"
|
|
211
|
-
fi
|
|
212
|
-
|
|
213
|
-
- name: Publish package distributions to PyPI
|
|
214
|
-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
|
|
215
|
-
with:
|
|
216
|
-
skip-existing: true
|
|
226
|
+
git tag --annotate "$TAG" --message "Release $TAG"
|
|
227
|
+
git push origin "$TAG"
|
|
217
228
|
|
|
218
229
|
- name: Create GitHub release
|
|
219
230
|
env:
|
|
@@ -12,12 +12,17 @@ jobs:
|
|
|
12
12
|
contents: write
|
|
13
13
|
steps:
|
|
14
14
|
- name: Checkout main
|
|
15
|
-
uses: actions/checkout@
|
|
15
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
16
16
|
|
|
17
17
|
- name: Set up documentation mutex
|
|
18
|
-
uses:
|
|
18
|
+
uses: suzuki-shunsuke/lock-action@4a69996f86294a4eacc7450392eb70804b6543c4 # v0.2.0
|
|
19
19
|
with:
|
|
20
|
-
|
|
20
|
+
mode: lock
|
|
21
|
+
key: docs-lock
|
|
22
|
+
post_unlock: 'true'
|
|
23
|
+
remove_key_when_unlock: 'true'
|
|
24
|
+
max_wait_seconds: '500'
|
|
25
|
+
wait_interval_seconds: '50'
|
|
21
26
|
|
|
22
27
|
- run: pip install hatch
|
|
23
28
|
- name: publish docs
|
|
@@ -13,12 +13,17 @@ jobs:
|
|
|
13
13
|
contents: write
|
|
14
14
|
steps:
|
|
15
15
|
- name: Checkout main
|
|
16
|
-
uses: actions/checkout@
|
|
16
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
17
17
|
|
|
18
18
|
- name: Set up documentation mutex
|
|
19
|
-
uses:
|
|
19
|
+
uses: suzuki-shunsuke/lock-action@4a69996f86294a4eacc7450392eb70804b6543c4 # v0.2.0
|
|
20
20
|
with:
|
|
21
|
-
|
|
21
|
+
mode: lock
|
|
22
|
+
key: docs-lock
|
|
23
|
+
post_unlock: 'true'
|
|
24
|
+
remove_key_when_unlock: 'true'
|
|
25
|
+
max_wait_seconds: '500'
|
|
26
|
+
wait_interval_seconds: '50'
|
|
22
27
|
|
|
23
28
|
- run: pip install hatch
|
|
24
29
|
- run: hatch version | sed -rne "s:([0-9]*)\.([0-9]*)\..*:PROJECT_VERSION=\1.\2:p" >> "${GITHUB_ENV}"
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
|
|
24
24
|
- name: Set up uv
|
|
25
|
-
uses: astral-sh/setup-uv@
|
|
25
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
26
26
|
with:
|
|
27
27
|
python-version: '3.13'
|
|
28
28
|
|
|
@@ -38,10 +38,19 @@ jobs:
|
|
|
38
38
|
- name: Run pre-commit
|
|
39
39
|
run: uvx pre-commit run --all-files || uvx pre-commit run --all-files
|
|
40
40
|
|
|
41
|
+
- name: Create GitHub App token
|
|
42
|
+
id: app-token
|
|
43
|
+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
|
|
44
|
+
with:
|
|
45
|
+
client-id: ${{vars.RELEASE_APP_CLIENT_ID}}
|
|
46
|
+
private-key: ${{secrets.RELEASE_APP_PRIVATE_KEY}}
|
|
47
|
+
permission-contents: write
|
|
48
|
+
permission-pull-requests: write
|
|
49
|
+
|
|
41
50
|
- name: Create pull request
|
|
42
51
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
43
52
|
with:
|
|
44
|
-
token: ${{
|
|
53
|
+
token: ${{steps.app-token.outputs.token}}
|
|
45
54
|
branch: release/v${{steps.release.outputs.version}}
|
|
46
55
|
commit-message: 'chore: release v${{steps.release.outputs.version}}'
|
|
47
56
|
title: 'chore: release v${{steps.release.outputs.version}}'
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
name: Test release on TestPyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- release/v*
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: test-release-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: false
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test-release:
|
|
14
|
+
name: Publish and test release candidate
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
environment: testpypi
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
id-token: write
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- name: Checkout release branch
|
|
23
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
|
+
|
|
25
|
+
- name: Set up uv
|
|
26
|
+
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
|
|
27
|
+
with:
|
|
28
|
+
python-version: '3.13'
|
|
29
|
+
|
|
30
|
+
- name: Install test environment without the local project
|
|
31
|
+
run: |
|
|
32
|
+
uv sync --locked --no-install-project
|
|
33
|
+
uv pip install pytest pytest-xdist
|
|
34
|
+
|
|
35
|
+
- name: Set unique TestPyPI version
|
|
36
|
+
id: package
|
|
37
|
+
run: |
|
|
38
|
+
project_name="$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["name"])')"
|
|
39
|
+
base_version="$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
|
|
40
|
+
test_version="${base_version}.dev${GITHUB_RUN_ID}${GITHUB_RUN_ATTEMPT}"
|
|
41
|
+
uvx hatch version --force "$test_version"
|
|
42
|
+
echo "name=$project_name" >> "$GITHUB_OUTPUT"
|
|
43
|
+
echo "version=$test_version" >> "$GITHUB_OUTPUT"
|
|
44
|
+
|
|
45
|
+
- name: Build distributions
|
|
46
|
+
run: uvx hatch build
|
|
47
|
+
|
|
48
|
+
- name: Publish distributions to TestPyPI
|
|
49
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
50
|
+
with:
|
|
51
|
+
repository-url: https://test.pypi.org/legacy/
|
|
52
|
+
attestations: false
|
|
53
|
+
|
|
54
|
+
- name: Install published distribution from TestPyPI
|
|
55
|
+
env:
|
|
56
|
+
PROJECT_NAME: ${{ steps.package.outputs.name }}
|
|
57
|
+
TEST_VERSION: ${{ steps.package.outputs.version }}
|
|
58
|
+
run: |
|
|
59
|
+
for attempt in {1..10}; do
|
|
60
|
+
if uv pip install \
|
|
61
|
+
--no-deps \
|
|
62
|
+
--index-url https://test.pypi.org/simple/ \
|
|
63
|
+
"$PROJECT_NAME==$TEST_VERSION"; then
|
|
64
|
+
exit 0
|
|
65
|
+
fi
|
|
66
|
+
if test "$attempt" -eq 10; then
|
|
67
|
+
exit 1
|
|
68
|
+
fi
|
|
69
|
+
sleep 10
|
|
70
|
+
done
|
|
71
|
+
|
|
72
|
+
- name: Verify installed version
|
|
73
|
+
env:
|
|
74
|
+
PROJECT_NAME: ${{ steps.package.outputs.name }}
|
|
75
|
+
TEST_VERSION: ${{ steps.package.outputs.version }}
|
|
76
|
+
run: |
|
|
77
|
+
uv run --no-sync python -c \
|
|
78
|
+
'import importlib.metadata, os; assert importlib.metadata.version(os.environ["PROJECT_NAME"]) == os.environ["TEST_VERSION"]'
|
|
79
|
+
|
|
80
|
+
- name: Test installed distribution
|
|
81
|
+
run: uv run --no-sync python -m pytest -n=auto -vv
|
|
@@ -8,7 +8,7 @@ jobs:
|
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
steps:
|
|
10
10
|
- name: Checkout main
|
|
11
|
-
uses: actions/checkout@
|
|
11
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
12
12
|
|
|
13
13
|
- run: pip install hatch
|
|
14
14
|
- name: test docs
|
|
@@ -19,12 +19,12 @@ jobs:
|
|
|
19
19
|
fetch-depth: 0
|
|
20
20
|
|
|
21
21
|
- name: Set up Python
|
|
22
|
-
uses: actions/setup-python@
|
|
22
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
23
23
|
with:
|
|
24
24
|
python-version: '3.12'
|
|
25
25
|
|
|
26
26
|
- name: Set up uv
|
|
27
|
-
uses: astral-sh/setup-uv@
|
|
27
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
28
28
|
|
|
29
29
|
- name: Run cog update
|
|
30
30
|
run: |
|
|
@@ -32,11 +32,20 @@ jobs:
|
|
|
32
32
|
uvx gha-update
|
|
33
33
|
uvx pre-commit run --all-files || uvx pre-commit run --all-files
|
|
34
34
|
|
|
35
|
+
- name: Create GitHub App token
|
|
36
|
+
id: app-token
|
|
37
|
+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
|
|
38
|
+
with:
|
|
39
|
+
client-id: ${{vars.RELEASE_APP_CLIENT_ID}}
|
|
40
|
+
private-key: ${{secrets.RELEASE_APP_PRIVATE_KEY}}
|
|
41
|
+
permission-contents: write
|
|
42
|
+
permission-pull-requests: write
|
|
43
|
+
permission-workflows: write
|
|
44
|
+
|
|
35
45
|
- name: Create Pull Request
|
|
36
46
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
37
47
|
with:
|
|
38
|
-
token: ${{
|
|
39
|
-
branch-token: ${{secrets.PAT_WEEKLY_UPDATE}}
|
|
48
|
+
token: ${{steps.app-token.outputs.token}}
|
|
40
49
|
commit-message: 'chore: weekly cog update'
|
|
41
50
|
title: 'chore: weekly update'
|
|
42
51
|
body: Automated weekly update via scheduled workflow.
|
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- scriv-insert-here -->
|
|
4
4
|
|
|
5
|
+
<a id='changelog-0.3.1'></a>
|
|
6
|
+
# 0.3.1 — 2026-10-27
|
|
7
|
+
|
|
8
|
+
## Changed
|
|
9
|
+
|
|
10
|
+
- Improved performance on large source trees for previews, interactive runs,
|
|
11
|
+
and writes. Parallel results are now reported as files finish processing.
|
|
12
|
+
([#30](https://github.com/15r10nk/matchify/pull/30))
|
|
13
|
+
|
|
14
|
+
## Fixed
|
|
15
|
+
|
|
16
|
+
- Ctrl-C now stops parallel workers cleanly, including during startup, without
|
|
17
|
+
hanging or printing worker tracebacks, and exits with status 130.
|
|
18
|
+
([#30](https://github.com/15r10nk/matchify/pull/30))
|
|
19
|
+
- Preserve the original source text when no conversions are selected.
|
|
20
|
+
([#30](https://github.com/15r10nk/matchify/pull/30))
|
|
21
|
+
- Write converted source files atomically so interruption cannot leave a
|
|
22
|
+
partially written source file. Writes respect read-only permissions, retain
|
|
23
|
+
symlinks and supported file metadata, and support maximum-length filenames.
|
|
24
|
+
([#31](https://github.com/15r10nk/matchify/pull/31))
|
|
25
|
+
- Reject negative `--jobs` values instead of silently skipping files and
|
|
26
|
+
returning success. `--jobs 0` continues to select the CPU count automatically.
|
|
27
|
+
([#31](https://github.com/15r10nk/matchify/pull/31))
|
|
28
|
+
|
|
5
29
|
<a id='changelog-0.3.0'></a>
|
|
6
30
|
# 0.3.0 — 2026-09-23
|
|
7
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: matchify
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: converts if-else code to match statements
|
|
5
5
|
Project-URL: Documentation, https://github.com/15r10nk/matchify#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/15r10nk/matchify/issues
|
|
@@ -325,6 +325,42 @@ for the expression syntax and complete metric reference.
|
|
|
325
325
|
Development and repository-testing notes are in
|
|
326
326
|
[CONTRIBUTING.md](CONTRIBUTING.md).
|
|
327
327
|
|
|
328
|
+
|
|
329
|
+
<!--[[[cog
|
|
330
|
+
import requests,cog
|
|
331
|
+
|
|
332
|
+
url = "https://raw.githubusercontent.com/15r10nk/sponsors/refs/heads/main/sponsors_readme.md"
|
|
333
|
+
response = requests.get(url)
|
|
334
|
+
response.raise_for_status() # Raise an exception for bad status codes
|
|
335
|
+
cog.out(response.text)
|
|
336
|
+
]]]-->
|
|
337
|
+
## Sponsors
|
|
338
|
+
|
|
339
|
+
I would like to thank my sponsors. Without them, I would not be able to invest so much time in my projects.
|
|
340
|
+
|
|
341
|
+
### Gold sponsor 🥇
|
|
342
|
+
|
|
343
|
+
<p align="center">
|
|
344
|
+
<a href="https://pydantic.dev/logfire">
|
|
345
|
+
<picture>
|
|
346
|
+
<img src="https://pydantic.dev/assets/for-external/pydantic_logfire_logo_endorsed_lithium_rgb.svg" alt="logfire" width="300"/>
|
|
347
|
+
</picture>
|
|
348
|
+
</a>
|
|
349
|
+
</p>
|
|
350
|
+
|
|
351
|
+
### Bronze sponsor 🥉
|
|
352
|
+
|
|
353
|
+
<p align="center">
|
|
354
|
+
<a href="https://openai.com">
|
|
355
|
+
<picture>
|
|
356
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/15r10nk/sponsors/refs/heads/main/logos/OAI_OpenAI_Wordmark_White.svg">
|
|
357
|
+
<img src="https://raw.githubusercontent.com/15r10nk/sponsors/refs/heads/main/logos/OAI_OpenAI_Wordmark_Black.svg" alt="openai" width="300"/>
|
|
358
|
+
</picture>
|
|
359
|
+
</a>
|
|
360
|
+
</p>
|
|
361
|
+
|
|
362
|
+
<!--[[[end]]]-->
|
|
363
|
+
|
|
328
364
|
## Issues
|
|
329
365
|
|
|
330
366
|
If you encounter any problems, please [report an issue](https://github.com/15r10nk/matchify/issues) along with a detailed description.
|
|
@@ -302,6 +302,42 @@ for the expression syntax and complete metric reference.
|
|
|
302
302
|
Development and repository-testing notes are in
|
|
303
303
|
[CONTRIBUTING.md](CONTRIBUTING.md).
|
|
304
304
|
|
|
305
|
+
|
|
306
|
+
<!--[[[cog
|
|
307
|
+
import requests,cog
|
|
308
|
+
|
|
309
|
+
url = "https://raw.githubusercontent.com/15r10nk/sponsors/refs/heads/main/sponsors_readme.md"
|
|
310
|
+
response = requests.get(url)
|
|
311
|
+
response.raise_for_status() # Raise an exception for bad status codes
|
|
312
|
+
cog.out(response.text)
|
|
313
|
+
]]]-->
|
|
314
|
+
## Sponsors
|
|
315
|
+
|
|
316
|
+
I would like to thank my sponsors. Without them, I would not be able to invest so much time in my projects.
|
|
317
|
+
|
|
318
|
+
### Gold sponsor 🥇
|
|
319
|
+
|
|
320
|
+
<p align="center">
|
|
321
|
+
<a href="https://pydantic.dev/logfire">
|
|
322
|
+
<picture>
|
|
323
|
+
<img src="https://pydantic.dev/assets/for-external/pydantic_logfire_logo_endorsed_lithium_rgb.svg" alt="logfire" width="300"/>
|
|
324
|
+
</picture>
|
|
325
|
+
</a>
|
|
326
|
+
</p>
|
|
327
|
+
|
|
328
|
+
### Bronze sponsor 🥉
|
|
329
|
+
|
|
330
|
+
<p align="center">
|
|
331
|
+
<a href="https://openai.com">
|
|
332
|
+
<picture>
|
|
333
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/15r10nk/sponsors/refs/heads/main/logos/OAI_OpenAI_Wordmark_White.svg">
|
|
334
|
+
<img src="https://raw.githubusercontent.com/15r10nk/sponsors/refs/heads/main/logos/OAI_OpenAI_Wordmark_Black.svg" alt="openai" width="300"/>
|
|
335
|
+
</picture>
|
|
336
|
+
</a>
|
|
337
|
+
</p>
|
|
338
|
+
|
|
339
|
+
<!--[[[end]]]-->
|
|
340
|
+
|
|
305
341
|
## Issues
|
|
306
342
|
|
|
307
343
|
If you encounter any problems, please [report an issue](https://github.com/15r10nk/matchify/issues) along with a detailed description.
|