sarj-python-lint 1.157.0__tar.gz → 1.159.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/PKG-INFO +2 -2
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/pyproject.toml +2 -2
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix.py +12 -2
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +7 -6
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +8 -5
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +11 -8
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +9 -6
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +7 -6
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +31 -30
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +9 -6
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +7 -4
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +20 -21
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +13 -14
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +12 -12
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +10 -7
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +10 -7
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +7 -4
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_partial_type_is.py +11 -9
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +50 -39
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +7 -8
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +30 -22
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_recording_store.py +37 -32
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +17 -15
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +15 -12
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +9 -6
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +16 -8
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +9 -6
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_tautological_expect.py +26 -20
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +14 -8
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +21 -15
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/over_mocked_test.py +33 -21
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +9 -6
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +16 -14
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_class_row.py +29 -23
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +27 -18
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +16 -12
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +21 -6
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +52 -5
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/.gitignore +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/LICENSE +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/README.md +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/__main__.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_security.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_file_context.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_parallel.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_python_target.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/application_logging.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/benchmark.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/cast_access.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/json_boundary.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rule_base.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_comments.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_domain_boundaries.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_httpx_clients.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_logging.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_nullable_outcome.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_registry.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_sdk_metadata_fields.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_sdk_prerequisite.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_sql.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_nonlocal_statement.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_value_error_forwarder.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_defaultdict.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_exception_propagation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_required_prerequisite.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_single_parametrize_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/sql_literals.py +0 -0
- {sarj_python_lint-1.157.0 → sarj_python_lint-1.159.0}/src/sarj_python_lint/suppression_policy.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sarj-python-lint
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.159.0
|
|
4
4
|
Summary: Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults
|
|
5
5
|
Project-URL: Homepage, https://code-standards.sarj.ai/rules/python/
|
|
6
6
|
Project-URL: Documentation, https://code-standards.sarj.ai/rules/python/
|
|
@@ -20,7 +20,7 @@ Requires-Python: >=3.14
|
|
|
20
20
|
Requires-Dist: packaging==26.3
|
|
21
21
|
Requires-Dist: ruff>=0.17.2
|
|
22
22
|
Requires-Dist: sarj-rule-contracts==0.8.2
|
|
23
|
-
Requires-Dist: sarj-sql-lint==0.50.
|
|
23
|
+
Requires-Dist: sarj-sql-lint==0.50.4
|
|
24
24
|
Requires-Dist: sqlglot==30.31.0
|
|
25
25
|
Requires-Dist: typer==0.27.3
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sarj-python-lint"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.159.0"
|
|
4
4
|
description = "Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "sarj-ai" }]
|
|
@@ -15,7 +15,7 @@ classifiers = [
|
|
|
15
15
|
"Programming Language :: Python :: 3.14",
|
|
16
16
|
"Topic :: Software Development :: Quality Assurance",
|
|
17
17
|
]
|
|
18
|
-
dependencies = ["sarj-rule-contracts==0.8.2", "sarj-sql-lint==0.50.
|
|
18
|
+
dependencies = ["sarj-rule-contracts==0.8.2", "sarj-sql-lint==0.50.4", "packaging==26.3", "ruff>=0.17.2", "sqlglot==30.31.0", "typer==0.27.3"]
|
|
19
19
|
|
|
20
20
|
[project.scripts]
|
|
21
21
|
sarj-python-lint = "sarj_python_lint.__main__:main"
|
|
@@ -788,8 +788,10 @@ def _dispatch_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
|
|
|
788
788
|
continue
|
|
789
789
|
type_dispatch = diagnostic.code == "SARJ080"
|
|
790
790
|
roots = _dispatch_roots(root, source.context) if type_dispatch else [root]
|
|
791
|
-
if
|
|
792
|
-
|
|
791
|
+
if (
|
|
792
|
+
not _fixable_ladder(root, type_dispatch=type_dispatch)
|
|
793
|
+
or source.comments_between(root.lineno, _last_line(roots[-1]))
|
|
794
|
+
or (len(roots) > 1 and any(source.full_statement(branch) is None for branch in roots))
|
|
793
795
|
):
|
|
794
796
|
continue
|
|
795
797
|
matched = _dispatch_match(roots, source.context, type_dispatch=type_dispatch)
|
|
@@ -808,6 +810,14 @@ def _dispatch_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
|
|
|
808
810
|
return []
|
|
809
811
|
|
|
810
812
|
|
|
813
|
+
def _fixable_ladder(root: ast.If, *, type_dispatch: bool) -> bool:
|
|
814
|
+
if type_dispatch:
|
|
815
|
+
return True
|
|
816
|
+
while len(root.orelse) == 1 and isinstance(root.orelse[0], ast.If):
|
|
817
|
+
root = root.orelse[0]
|
|
818
|
+
return bool(root.orelse)
|
|
819
|
+
|
|
820
|
+
|
|
811
821
|
def _dispatch_roots(root: ast.If, context: PythonFileContext) -> list[ast.If]:
|
|
812
822
|
if root.orelse:
|
|
813
823
|
return [root]
|
|
@@ -115,11 +115,12 @@ def _in_constructor(context: PythonFileContext, call: ast.Call, constructors: fr
|
|
|
115
115
|
return False
|
|
116
116
|
scope = context.binding_inventory.scope(call)
|
|
117
117
|
while isinstance(scope, (ast.ClassDef, *COMPREHENSIONS)):
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
scope.generators[0].iter, call
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
match scope:
|
|
119
|
+
case ast.ClassDef() if scope.bases or scope.keywords:
|
|
120
|
+
return False
|
|
121
|
+
case ast.GeneratorExp() if not context.resource_provenance.contains(scope.generators[0].iter, call):
|
|
122
|
+
return False
|
|
123
|
+
case _:
|
|
124
|
+
pass
|
|
124
125
|
scope = context.binding_inventory.scope(scope)
|
|
125
126
|
return scope in constructors
|
|
@@ -359,11 +359,14 @@ def _uses_mutated_member(annotation: ast.expr, semantics: AnnotationSemantics, m
|
|
|
359
359
|
if parsed is None:
|
|
360
360
|
continue
|
|
361
361
|
for node in walk(parsed):
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
362
|
+
match node:
|
|
363
|
+
case ast.Attribute() if semantics.imports.resolved_qualified_name(node) in mutated_members:
|
|
364
|
+
return True
|
|
365
|
+
case ast.Name() if node.id in semantics.aliases and node.id not in seen:
|
|
366
|
+
seen.add(node.id)
|
|
367
|
+
pending.append(semantics.aliases[node.id])
|
|
368
|
+
case _:
|
|
369
|
+
pass
|
|
367
370
|
return False
|
|
368
371
|
|
|
369
372
|
|
|
@@ -146,14 +146,17 @@ def _pytest_plugin_test_targets(tree: ast.Module) -> list[_PluginTarget]:
|
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
def _literal_strings(node: ast.expr | None) -> tuple[str, ...]:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
match node:
|
|
150
|
+
case ast.Constant() if isinstance(node.value, str):
|
|
151
|
+
return (node.value,)
|
|
152
|
+
case ast.List() | ast.Set() | ast.Tuple():
|
|
153
|
+
return tuple(
|
|
154
|
+
element.value
|
|
155
|
+
for element in node.elts
|
|
156
|
+
if isinstance(element, ast.Constant) and isinstance(element.value, str)
|
|
157
|
+
)
|
|
158
|
+
case _:
|
|
159
|
+
pass
|
|
157
160
|
return ()
|
|
158
161
|
|
|
159
162
|
|
|
@@ -202,12 +202,15 @@ def _input_witnesses(annotation: ast.expr | None, imports: ImportIndex) -> froze
|
|
|
202
202
|
visited += 1
|
|
203
203
|
if visited > _MAX_INPUT_NODES:
|
|
204
204
|
return None
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
205
|
+
match member:
|
|
206
|
+
case ast.Constant() if member.value is None:
|
|
207
|
+
witnesses.add("none")
|
|
208
|
+
continue
|
|
209
|
+
case ast.BinOp() if isinstance(member.op, ast.BitOr):
|
|
210
|
+
pending.extend((member.left, member.right))
|
|
211
|
+
continue
|
|
212
|
+
case _:
|
|
213
|
+
pass
|
|
211
214
|
kind = builtin_guard_symbol(member, imports, _BUILTINS)
|
|
212
215
|
if kind == "object":
|
|
213
216
|
witnesses.update(_ALL_WITNESSES)
|
|
@@ -216,12 +216,13 @@ def _local_class_alias(
|
|
|
216
216
|
statement: ast.stmt,
|
|
217
217
|
visible: dict[str, ast.ClassDef],
|
|
218
218
|
) -> _ClassAlias | None:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
219
|
+
match statement:
|
|
220
|
+
case ast.Assign() if len(statement.targets) == 1:
|
|
221
|
+
target = statement.targets[0]
|
|
222
|
+
case ast.AnnAssign():
|
|
223
|
+
target = statement.target
|
|
224
|
+
case _:
|
|
225
|
+
return None
|
|
225
226
|
if not isinstance(target, ast.Name) or not isinstance(statement.value, ast.Name):
|
|
226
227
|
return None
|
|
227
228
|
parent = visible.get(statement.value.id)
|
|
@@ -789,16 +789,17 @@ def _fixed_message_initializer(node: ast.FunctionDef) -> bool:
|
|
|
789
789
|
def _builtin_namespace_safe(context: PythonFileContext) -> bool:
|
|
790
790
|
# Direct exception imports expose immutable class objects.
|
|
791
791
|
for node in context.nodes(ast.Import, ast.ImportFrom, ast.Name):
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
792
|
+
match node:
|
|
793
|
+
case ast.Import() if any(alias.name == "builtins" for alias in node.names):
|
|
794
|
+
return False
|
|
795
|
+
case ast.ImportFrom() if node.module == "builtins" and (
|
|
796
|
+
node.level or any(alias.name not in _BUILTIN_BASES for alias in node.names)
|
|
797
|
+
):
|
|
798
|
+
return False
|
|
799
|
+
case ast.Name() if node.id == "__builtins__":
|
|
800
|
+
return False
|
|
801
|
+
case _:
|
|
802
|
+
pass
|
|
802
803
|
return True
|
|
803
804
|
|
|
804
805
|
|
|
@@ -1119,16 +1120,13 @@ def _functional_metadata(read: ast.Name, context: PythonFileContext, provenance:
|
|
|
1119
1120
|
|
|
1120
1121
|
def _validation_annotation(annotation: ast.expr, context: PythonFileContext, provenance: ResourceProvenance) -> bool:
|
|
1121
1122
|
declaration = context.parents.get(annotation)
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
isinstance(declaration, ast.
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
binding = declaration.target
|
|
1130
|
-
else:
|
|
1131
|
-
return _validation_field(annotation, context, provenance)
|
|
1123
|
+
match declaration:
|
|
1124
|
+
case ast.TypeAlias():
|
|
1125
|
+
binding = declaration.name
|
|
1126
|
+
case ast.AnnAssign() if isinstance(declaration.target, ast.Name) and declaration.value is annotation:
|
|
1127
|
+
binding = declaration.target
|
|
1128
|
+
case _:
|
|
1129
|
+
return _validation_field(annotation, context, provenance)
|
|
1132
1130
|
if not (
|
|
1133
1131
|
isinstance(context.parents.get(declaration), ast.Module)
|
|
1134
1132
|
and context.annotation_semantics.aliases.get(binding.id) is annotation
|
|
@@ -1181,17 +1179,20 @@ def _escapes(marker: ast.ClassDef, context: PythonFileContext, provenance: Resou
|
|
|
1181
1179
|
def _binding_escapes(name: str, binding: ast.AST, context: PythonFileContext, provenance: ResourceProvenance) -> bool:
|
|
1182
1180
|
for read in provenance.binding_reads(name, binding):
|
|
1183
1181
|
parent = context.parents.get(read)
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1182
|
+
match parent:
|
|
1183
|
+
case ast.Call() if parent.func is read:
|
|
1184
|
+
owner = context.parents.get(parent)
|
|
1185
|
+
if isinstance(owner, ast.Raise) and owner.exc is parent:
|
|
1186
|
+
continue
|
|
1187
|
+
return True
|
|
1188
|
+
case ast.Raise() | ast.ExceptHandler():
|
|
1187
1189
|
continue
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
continue
|
|
1190
|
+
case ast.Tuple() if isinstance(context.parents.get(parent), ast.ExceptHandler):
|
|
1191
|
+
continue
|
|
1192
|
+
case ast.ClassDef() if read in parent.bases:
|
|
1193
|
+
continue
|
|
1194
|
+
case _:
|
|
1195
|
+
pass
|
|
1195
1196
|
return True
|
|
1196
1197
|
return False
|
|
1197
1198
|
|
|
@@ -346,13 +346,16 @@ class _OutcomeCalls:
|
|
|
346
346
|
head = node.value if isinstance(node, ast.Subscript) else node
|
|
347
347
|
if _root_name(head) in reference.parameters:
|
|
348
348
|
return None
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
match node:
|
|
350
|
+
case ast.Name() if node.id in semantics.aliases:
|
|
351
|
+
key = (owner.path, node.id)
|
|
352
|
+
if key in seen or not _alias_identity(owner, node.id, semantics.aliases[node.id], anchor):
|
|
353
|
+
return None
|
|
354
|
+
return self._members(_Reference(owner, semantics.aliases[node.id]), seen | {key}, depth + 1)
|
|
355
|
+
case ast.Name() | ast.Attribute() if _reference_binding(owner, node, anchor) is None:
|
|
352
356
|
return None
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
return None
|
|
357
|
+
case _:
|
|
358
|
+
pass
|
|
356
359
|
children = _union_children(node, owner)
|
|
357
360
|
if children is not None:
|
|
358
361
|
return self._expanded_members(_Reference(owner, node, anchor, reference.parameters), children, seen, depth)
|
|
@@ -147,8 +147,11 @@ def _is_folded_pattern(node: ast.MatchOr) -> bool:
|
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
def _status(node: ast.expr) -> int | None:
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
match node:
|
|
151
|
+
case ast.Constant() if type(node.value) is int:
|
|
152
|
+
return node.value
|
|
153
|
+
case ast.Attribute() if isinstance(node.value, ast.Name) and node.value.id in _STATUS_OWNERS:
|
|
154
|
+
return _STATUS_NAMES.get(node.attr)
|
|
155
|
+
case _:
|
|
156
|
+
pass
|
|
154
157
|
return None
|
|
@@ -173,18 +173,19 @@ def _is_frozen_direct_model(node: ast.ClassDef, imports: ImportIndex) -> bool:
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
def _model_config_frozen(node: ast.expr, imports: ImportIndex) -> bool | None:
|
|
176
|
-
|
|
177
|
-
node.func, sources=_PYDANTIC_CONFIG_SOURCES, symbol="ConfigDict"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
176
|
+
match node:
|
|
177
|
+
case ast.Call() if imports.resolves(node.func, sources=_PYDANTIC_CONFIG_SOURCES, symbol="ConfigDict"):
|
|
178
|
+
values = [
|
|
179
|
+
value
|
|
180
|
+
for keyword in node.keywords
|
|
181
|
+
if keyword.arg == "frozen"
|
|
182
|
+
if (value := _literal_bool(keyword.value)) is not None
|
|
183
|
+
]
|
|
184
|
+
return values[0] if len(values) == 1 else None
|
|
185
|
+
case ast.Dict() if all(key is not None for key in node.keys):
|
|
186
|
+
return _dictionary_frozen_value(node)
|
|
187
|
+
case _:
|
|
188
|
+
pass
|
|
188
189
|
return None
|
|
189
190
|
|
|
190
191
|
|
|
@@ -264,15 +265,13 @@ def _declared_field_writes(
|
|
|
264
265
|
|
|
265
266
|
|
|
266
267
|
def _matching_attributes(node: ast.expr, receiver: str, fields: frozenset[str]) -> list[ast.Attribute]:
|
|
267
|
-
|
|
268
|
-
isinstance(node, ast.
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
if isinstance(node, (ast.Tuple, ast.List)):
|
|
275
|
-
return [match for element in node.elts for match in _matching_attributes(element, receiver, fields)]
|
|
268
|
+
match node:
|
|
269
|
+
case ast.Attribute() if isinstance(node.value, ast.Name) and node.value.id == receiver and node.attr in fields:
|
|
270
|
+
return [node]
|
|
271
|
+
case ast.Tuple() | ast.List():
|
|
272
|
+
return [match for element in node.elts for match in _matching_attributes(element, receiver, fields)]
|
|
273
|
+
case _:
|
|
274
|
+
pass
|
|
276
275
|
return []
|
|
277
276
|
|
|
278
277
|
|
|
@@ -315,21 +315,20 @@ def _passive_configuration(node: ast.ClassDef, context: PythonFileContext) -> bo
|
|
|
315
315
|
def _configuration_options(
|
|
316
316
|
value: ast.expr | None, context: PythonFileContext
|
|
317
317
|
) -> list[tuple[str | None, ast.expr]] | None:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
and not value.args
|
|
328
|
-
and context.imports.resolves(
|
|
318
|
+
match value:
|
|
319
|
+
case ast.Dict():
|
|
320
|
+
options: list[tuple[str | None, ast.expr]] = [
|
|
321
|
+
(key.value, item)
|
|
322
|
+
for key, item in zip(value.keys, value.values, strict=True)
|
|
323
|
+
if isinstance(key, ast.Constant) and isinstance(key.value, str)
|
|
324
|
+
]
|
|
325
|
+
return options if len(options) == len(value.keys) else None
|
|
326
|
+
case ast.Call() if not value.args and context.imports.resolves(
|
|
329
327
|
value.func, sources=frozenset({"pydantic", "pydantic.config"}), symbol="ConfigDict"
|
|
330
|
-
)
|
|
331
|
-
|
|
332
|
-
|
|
328
|
+
):
|
|
329
|
+
return [(keyword.arg, keyword.value) for keyword in value.keywords]
|
|
330
|
+
case _:
|
|
331
|
+
pass
|
|
333
332
|
return None
|
|
334
333
|
|
|
335
334
|
|
|
@@ -262,18 +262,18 @@ def _returned_literal(validator: ast.FunctionDef) -> _Returned | None:
|
|
|
262
262
|
if len(body) != 1 or not isinstance(body[0], ast.Return):
|
|
263
263
|
return None
|
|
264
264
|
value = body[0].value
|
|
265
|
-
|
|
266
|
-
value.value is None or isinstance(value.value, (str, bytes, int, float, complex, bool))
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
265
|
+
match value:
|
|
266
|
+
case ast.Constant() if value.value is None or isinstance(value.value, (str, bytes, int, float, complex, bool)):
|
|
267
|
+
return _Returned(value, value.value)
|
|
268
|
+
case ast.UnaryOp() if (
|
|
269
|
+
isinstance(value.op, (ast.USub, ast.UAdd))
|
|
270
|
+
and isinstance(value.operand, ast.Constant)
|
|
271
|
+
and isinstance(value.operand.value, (int, float, complex))
|
|
272
|
+
):
|
|
273
|
+
number = value.operand.value
|
|
274
|
+
return _Returned(value, -number if isinstance(value.op, ast.USub) else +number)
|
|
275
|
+
case _:
|
|
276
|
+
pass
|
|
277
277
|
return None
|
|
278
278
|
|
|
279
279
|
|
|
@@ -269,13 +269,16 @@ class _ContainerTransforms:
|
|
|
269
269
|
return False
|
|
270
270
|
current: ast.AST | None = at
|
|
271
271
|
while current is not None:
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
272
|
+
match current:
|
|
273
|
+
case ast.FunctionDef() | ast.AsyncFunctionDef() | ast.ClassDef() if any(
|
|
274
|
+
isinstance(parameter, ast.TypeVar | ast.ParamSpec | ast.TypeVarTuple) and parameter.name == name
|
|
275
|
+
for parameter in current.type_params
|
|
276
|
+
):
|
|
277
|
+
return False
|
|
278
|
+
case ast.ClassDef() if current.bases or current.keywords or current.decorator_list:
|
|
279
|
+
return False
|
|
280
|
+
case _:
|
|
281
|
+
pass
|
|
279
282
|
current = self.context.parents.get(current)
|
|
280
283
|
return True
|
|
281
284
|
|
|
@@ -128,11 +128,14 @@ def _input_owner(
|
|
|
128
128
|
if not isinstance(expression, ast.Name) or depth >= _MAX_ALIAS_DEPTH:
|
|
129
129
|
return None
|
|
130
130
|
binding = context.static_resource_provenance.binding(expression.id, expression)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
131
|
+
match binding:
|
|
132
|
+
case ast.arg():
|
|
133
|
+
arguments = (*function.args.posonlyargs, *function.args.args, *function.args.kwonlyargs)
|
|
134
|
+
return binding.arg if binding in arguments and binding.arg not in {"self", "cls"} else None
|
|
135
|
+
case ast.Name():
|
|
136
|
+
value = context.static_resource_provenance.assignment_value(binding, expression)
|
|
137
|
+
if value is not None:
|
|
138
|
+
return _input_owner(value, function, context, depth + 1)
|
|
139
|
+
case _:
|
|
140
|
+
pass
|
|
138
141
|
return None
|
|
@@ -250,8 +250,11 @@ def _function_binds(node: ast.FunctionDef | ast.AsyncFunctionDef | ast.Lambda, n
|
|
|
250
250
|
|
|
251
251
|
|
|
252
252
|
def _scope_statement_binds(node: ast.AST, name: str) -> bool:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
match node:
|
|
254
|
+
case ast.FunctionDef() | ast.AsyncFunctionDef() | ast.ClassDef() | ast.Lambda():
|
|
255
|
+
return node.name == name if not isinstance(node, ast.Lambda) else False
|
|
256
|
+
case ast.Name() if isinstance(node.ctx, (ast.Store, ast.Del)):
|
|
257
|
+
return node.id == name
|
|
258
|
+
case _:
|
|
259
|
+
pass
|
|
257
260
|
return any(_scope_statement_binds(child, name) for child in ast.iter_child_nodes(node))
|
|
@@ -347,15 +347,17 @@ def _rejects_truthiness(node: ast.expr | None, parameter: str, kind: str, import
|
|
|
347
347
|
|
|
348
348
|
|
|
349
349
|
def _literal(node: ast.expr) -> int | str | bytes | bool | None:
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
350
|
+
match node:
|
|
351
|
+
case ast.Constant() if isinstance(node.value, (int, str, bytes, bool)):
|
|
352
|
+
return node.value
|
|
353
|
+
case ast.UnaryOp() if (
|
|
354
|
+
isinstance(node.op, (ast.USub, ast.UAdd))
|
|
355
|
+
and isinstance(node.operand, ast.Constant)
|
|
356
|
+
and type(node.operand.value) is int
|
|
357
|
+
):
|
|
358
|
+
return -node.operand.value if isinstance(node.op, ast.USub) else node.operand.value
|
|
359
|
+
case _:
|
|
360
|
+
pass
|
|
359
361
|
return None
|
|
360
362
|
|
|
361
363
|
|