sarj-python-lint 1.155.0__tar.gz → 1.157.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.155.0 → sarj_python_lint-1.157.0}/PKG-INFO +1 -1
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/pyproject.toml +1 -1
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix.py +22 -21
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_enums.py +9 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_inert.py +23 -18
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_security.py +29 -26
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/cast_access.py +14 -8
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_annotation_origins.py +11 -9
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_async_lifecycle.py +15 -12
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_comment_narration.py +22 -17
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_copy_on_write.py +9 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +18 -15
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_docstrings.py +38 -32
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_fastapi.py +52 -35
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_fastapi_access.py +23 -20
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_fixture_contracts.py +11 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_httpx_clients.py +16 -12
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +9 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_logging.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_native_object_contracts.py +80 -58
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_opaque_contracts.py +137 -100
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_project_index.py +10 -7
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_prose_budget.py +9 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +43 -38
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +10 -7
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_runtime_names.py +28 -19
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_sdk_prerequisite.py +44 -38
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_set_fields.py +13 -10
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_sql.py +10 -7
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_store_sql.py +12 -14
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_store_writes.py +14 -11
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_test_composition.py +23 -24
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_test_provenance.py +23 -20
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_transactional_sql.py +26 -22
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +7 -8
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +12 -9
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +9 -7
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +9 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/excessive_commentary.py +26 -34
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/mock_without_spec.py +11 -10
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +15 -9
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_dunder_all.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +9 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +12 -9
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +12 -9
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +14 -20
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +21 -19
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +15 -9
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/over_mocked_test.py +22 -18
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +11 -8
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +138 -1
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +7 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +23 -19
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +13 -17
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +9 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_injected_service.py +13 -10
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_library_fake.py +16 -10
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +107 -18
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +102 -3
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +8 -5
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +10 -6
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +33 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/restated_test_docstring.py +7 -4
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/stepdown.py +11 -8
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +8 -5
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +31 -25
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/.gitignore +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/LICENSE +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/README.md +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/__main__.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_file_context.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_parallel.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_python_target.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/application_logging.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/benchmark.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/json_boundary.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rule_base.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_comments.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_domain_boundaries.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_nullable_outcome.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_registry.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_sdk_metadata_fields.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_nonlocal_statement.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_value_error_forwarder.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_defaultdict.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_exception_propagation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_required_prerequisite.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_single_parametrize_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/sql_literals.py +0 -0
- {sarj_python_lint-1.155.0 → sarj_python_lint-1.157.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.157.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/
|
|
@@ -609,15 +609,16 @@ def _exception_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
|
|
|
609
609
|
def _exception_types(
|
|
610
610
|
node: ast.expr | None, context: PythonFileContext, provenance: ResourceProvenance
|
|
611
611
|
) -> list[ast.Name]:
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
612
|
+
match node:
|
|
613
|
+
case ast.Name() if not _type_parameter_reference(node, context) and exception_rule.is_builtin_exception_type(
|
|
614
|
+
node, context, provenance
|
|
615
|
+
):
|
|
616
|
+
return [node]
|
|
617
|
+
case ast.Tuple():
|
|
618
|
+
members = [_exception_types(element, context, provenance) for element in node.elts]
|
|
619
|
+
return [name for member in members for name in member] if all(members) else []
|
|
620
|
+
case _:
|
|
621
|
+
pass
|
|
621
622
|
return []
|
|
622
623
|
|
|
623
624
|
|
|
@@ -755,18 +756,18 @@ def _disjoint_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
|
|
|
755
756
|
for expression in source.context.nodes(ast.BinOp, ast.Call):
|
|
756
757
|
if not _at(expression, diagnostic) or source.comments_between(expression.lineno, _last_line(expression)):
|
|
757
758
|
continue
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
759
|
+
match expression:
|
|
760
|
+
case ast.BinOp() if isinstance(expression.op, ast.BitAnd):
|
|
761
|
+
left, right = expression.left, expression.right
|
|
762
|
+
case ast.Call() if (
|
|
763
|
+
isinstance(expression.func, ast.Attribute)
|
|
764
|
+
and expression.func.attr == "intersection"
|
|
765
|
+
and len(expression.args) == 1
|
|
766
|
+
and not expression.keywords
|
|
767
|
+
):
|
|
768
|
+
left, right = expression.func.value, expression.args[0]
|
|
769
|
+
case _:
|
|
770
|
+
continue
|
|
770
771
|
if _primitive_set(left) and _primitive_set(right):
|
|
771
772
|
return [source.replace(expression, f"(not ({source.segment(left)}).isdisjoint({source.segment(right)}))")]
|
|
772
773
|
return []
|
{sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_enums.py
RENAMED
|
@@ -21,12 +21,15 @@ _MIN_MATCH_CASES = 3
|
|
|
21
21
|
|
|
22
22
|
def _annotation_reference(node: ast.AST, context: PythonFileContext) -> bool:
|
|
23
23
|
while (parent := context.parents.get(node)) is not None:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
match parent:
|
|
25
|
+
case ast.arg() | ast.AnnAssign() if parent.annotation is node:
|
|
26
|
+
return True
|
|
27
|
+
case ast.FunctionDef() | ast.AsyncFunctionDef() if parent.returns is node:
|
|
28
|
+
return True
|
|
29
|
+
case ast.stmt():
|
|
30
|
+
return False
|
|
31
|
+
case _:
|
|
32
|
+
pass
|
|
30
33
|
node = parent
|
|
31
34
|
return False
|
|
32
35
|
|
{sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_inert.py
RENAMED
|
@@ -117,10 +117,13 @@ def inert_private_scope(owner: ast.FunctionDef, context: PythonFileContext) -> b
|
|
|
117
117
|
containing = [owner]
|
|
118
118
|
parent = context.parents.get(owner)
|
|
119
119
|
while parent is not None:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
match parent:
|
|
121
|
+
case ast.AsyncFunctionDef() | ast.ClassDef() | ast.Lambda():
|
|
122
|
+
return False
|
|
123
|
+
case ast.FunctionDef():
|
|
124
|
+
containing.append(parent)
|
|
125
|
+
case _:
|
|
126
|
+
pass
|
|
124
127
|
parent = context.parents.get(parent)
|
|
125
128
|
analyzer = _Analysis(context, containing[-1])
|
|
126
129
|
try:
|
|
@@ -353,14 +356,15 @@ class _Analysis:
|
|
|
353
356
|
statement = self.context.parents.get(binding) if binding is not None else None
|
|
354
357
|
if isinstance(binding, ast.FunctionDef) and self.context.parents.get(binding) is self.context.tree:
|
|
355
358
|
statement = binding
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
359
|
+
match statement:
|
|
360
|
+
case ast.AnnAssign() if statement.value is None:
|
|
361
|
+
raise _UnsafeError
|
|
362
|
+
case ast.Import() | ast.ImportFrom() | ast.Assign() | ast.AnnAssign() | ast.FunctionDef() if (
|
|
363
|
+
statement.lineno < self.outer.lineno and self.context.parents.get(statement) is self.context.tree
|
|
364
|
+
):
|
|
365
|
+
return _Value(_Kind.UNKNOWN)
|
|
366
|
+
case _:
|
|
367
|
+
pass
|
|
364
368
|
raise _UnsafeError
|
|
365
369
|
|
|
366
370
|
def _call(self, call: ast.Call, environment: dict[str, _Value]) -> _Value:
|
|
@@ -506,12 +510,13 @@ class _Analysis:
|
|
|
506
510
|
if case.guard is not None:
|
|
507
511
|
raise _UnsafeError
|
|
508
512
|
pattern = case.pattern
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
match pattern:
|
|
514
|
+
case ast.MatchValue() if isinstance(pattern.value, ast.Constant):
|
|
515
|
+
selected = subject.literal == pattern.value.value
|
|
516
|
+
case ast.MatchAs() if pattern.pattern is None and pattern.name is None:
|
|
517
|
+
selected = True
|
|
518
|
+
case _:
|
|
519
|
+
raise _UnsafeError
|
|
515
520
|
if selected:
|
|
516
521
|
return self._body(case.body, environment)
|
|
517
522
|
return _Result(returned=False, value=_constant(None))
|
{sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/_autofix_security.py
RENAMED
|
@@ -268,14 +268,17 @@ def _captured_namespace_untouched(
|
|
|
268
268
|
for node in context.nodes(ast.AST):
|
|
269
269
|
if not _namespace_node_safe(node, ancestors) or not _allowed_call(node, namespace.guards, name, owner.name):
|
|
270
270
|
return False
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
if isinstance(node, ast.Name) and node.id == name:
|
|
274
|
-
if node is namespace.captures.compare_default:
|
|
275
|
-
continue
|
|
276
|
-
if not _canonical_value_read(context, node, namespace.provenance, namespace.alias):
|
|
271
|
+
match node:
|
|
272
|
+
case ast.Name() if not _captured_read_safe(context, node, namespace.captures, namespace.guards):
|
|
277
273
|
return False
|
|
278
|
-
|
|
274
|
+
case ast.Name() if node.id == name:
|
|
275
|
+
if node is namespace.captures.compare_default:
|
|
276
|
+
continue
|
|
277
|
+
if not _canonical_value_read(context, node, namespace.provenance, namespace.alias):
|
|
278
|
+
return False
|
|
279
|
+
actual_read = True
|
|
280
|
+
case _:
|
|
281
|
+
pass
|
|
279
282
|
return actual_read
|
|
280
283
|
|
|
281
284
|
|
|
@@ -333,25 +336,25 @@ def _contains_local_hmac(path: Path, root: Path) -> bool:
|
|
|
333
336
|
|
|
334
337
|
|
|
335
338
|
def _namespace_node_safe(node: ast.AST, ancestors: set[ast.AST]) -> bool:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
ast.
|
|
340
|
-
ast.
|
|
341
|
-
ast.
|
|
342
|
-
ast.
|
|
343
|
-
ast.
|
|
344
|
-
ast.
|
|
345
|
-
ast.
|
|
346
|
-
ast.
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
339
|
+
match node:
|
|
340
|
+
case (
|
|
341
|
+
ast.AsyncFunctionDef()
|
|
342
|
+
| ast.ClassDef()
|
|
343
|
+
| ast.Lambda()
|
|
344
|
+
| ast.TypeAlias()
|
|
345
|
+
| ast.Global()
|
|
346
|
+
| ast.Nonlocal()
|
|
347
|
+
| ast.Yield()
|
|
348
|
+
| ast.YieldFrom()
|
|
349
|
+
| ast.GeneratorExp()
|
|
350
|
+
):
|
|
351
|
+
return False
|
|
352
|
+
case ast.FunctionDef() if node not in ancestors:
|
|
353
|
+
return False
|
|
354
|
+
case ast.Attribute() | ast.Subscript() if not isinstance(node.ctx, ast.Load):
|
|
355
|
+
return False
|
|
356
|
+
case _:
|
|
357
|
+
pass
|
|
355
358
|
return not isinstance(node, ast.Attribute) or not node.attr.startswith("__")
|
|
356
359
|
|
|
357
360
|
|
|
@@ -74,10 +74,13 @@ def _cast_receiver(node: ast.Call | ast.Subscript, provenance: ResourceProvenanc
|
|
|
74
74
|
if not isinstance(node.ctx, ast.Load) or _static_text(node.slice) != "cast":
|
|
75
75
|
return None
|
|
76
76
|
namespace = node.value
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
match namespace:
|
|
78
|
+
case ast.Attribute() if namespace.attr == "__dict__" and isinstance(namespace.value, ast.Name):
|
|
79
|
+
return namespace.value
|
|
80
|
+
case ast.Call() if len(namespace.args) == 1 and _builtin_call(namespace, "vars", provenance):
|
|
81
|
+
return namespace.args[0] if isinstance(namespace.args[0], ast.Name) else None
|
|
82
|
+
case _:
|
|
83
|
+
pass
|
|
81
84
|
return None
|
|
82
85
|
|
|
83
86
|
|
|
@@ -214,10 +217,13 @@ def _static_text(node: ast.expr, depth: int = 0) -> str | None:
|
|
|
214
217
|
|
|
215
218
|
|
|
216
219
|
def _reflection_carrier(node: ast.Call | ast.Subscript) -> ast.AST | None:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
match node:
|
|
221
|
+
case ast.Call() if isinstance(node.func, ast.Attribute):
|
|
222
|
+
return node.func
|
|
223
|
+
case ast.Subscript():
|
|
224
|
+
return node.value.func if isinstance(node.value, ast.Call) else node.value
|
|
225
|
+
case _:
|
|
226
|
+
pass
|
|
221
227
|
return None
|
|
222
228
|
|
|
223
229
|
|
|
@@ -104,15 +104,17 @@ class AnnotationOrigins:
|
|
|
104
104
|
def _lookup_at(self, at: ast.AST) -> ast.AST:
|
|
105
105
|
current = at
|
|
106
106
|
while (parent := self.context.parents.get(current)) is not None:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
107
|
+
match parent:
|
|
108
|
+
case ast.Lambda() | ast.ListComp() | ast.SetComp() | ast.DictComp() | ast.GeneratorExp():
|
|
109
|
+
return at
|
|
110
|
+
case ast.arg() if current is parent.annotation:
|
|
111
|
+
arguments = self.context.parents.get(parent)
|
|
112
|
+
function = self.context.parents.get(arguments) if arguments is not None else None
|
|
113
|
+
return function if isinstance(function, ast.FunctionDef | ast.AsyncFunctionDef) else at
|
|
114
|
+
case ast.FunctionDef() | ast.AsyncFunctionDef() if current is parent.returns:
|
|
115
|
+
return parent
|
|
116
|
+
case _:
|
|
117
|
+
current = parent
|
|
116
118
|
return at
|
|
117
119
|
|
|
118
120
|
|
{sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_async_lifecycle.py
RENAMED
|
@@ -91,18 +91,21 @@ class AsyncApiProof:
|
|
|
91
91
|
|
|
92
92
|
def _safe_api_read(self, node: ast.Name | ast.Attribute, qualified: str) -> bool:
|
|
93
93
|
parent = self.context.parents.get(node)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
match parent:
|
|
95
|
+
case ast.Attribute() if parent.value is node:
|
|
96
|
+
return parent.attr not in _INTROSPECTION
|
|
97
|
+
case ast.Call() if parent.func is node:
|
|
98
|
+
return True
|
|
99
|
+
case ast.Subscript() if parent.value is node:
|
|
100
|
+
return True
|
|
101
|
+
case ast.arg() | ast.AnnAssign() if parent.annotation is node:
|
|
102
|
+
return True
|
|
103
|
+
case ast.FunctionDef() | ast.AsyncFunctionDef():
|
|
104
|
+
return parent.returns is node or (
|
|
105
|
+
qualified == "contextlib.asynccontextmanager" and node in parent.decorator_list
|
|
106
|
+
)
|
|
107
|
+
case _:
|
|
108
|
+
pass
|
|
106
109
|
return isinstance(parent, ast.ExceptHandler) and parent.type is node
|
|
107
110
|
|
|
108
111
|
def assignment(self, name: ast.Name, at: ast.AST) -> _LocalAssignment | None:
|
|
@@ -103,26 +103,31 @@ def same_words(body: str, identifier: str) -> bool:
|
|
|
103
103
|
def empty_collection_name(statement: ast.stmt, context: PythonFileContext) -> str | None:
|
|
104
104
|
target: ast.expr | None = None
|
|
105
105
|
value: ast.expr | None = None
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
match statement:
|
|
107
|
+
case ast.AnnAssign():
|
|
108
|
+
target, value = statement.target, statement.value
|
|
109
|
+
case ast.Assign() if len(statement.targets) == 1:
|
|
110
|
+
target, value = statement.targets[0], statement.value
|
|
111
|
+
case _:
|
|
112
|
+
pass
|
|
110
113
|
if not isinstance(target, ast.Name) or value is None:
|
|
111
114
|
return None
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if isinstance(value, ast.Dict) and not value.keys:
|
|
115
|
-
return target.id
|
|
116
|
-
if (
|
|
117
|
-
isinstance(value, ast.Call)
|
|
118
|
-
and isinstance(value.func, ast.Name)
|
|
119
|
-
and value.func.id in {"dict", "list", "set"}
|
|
120
|
-
and not value.args
|
|
121
|
-
and not value.keywords
|
|
122
|
-
):
|
|
123
|
-
provenance = context.static_resource_provenance
|
|
124
|
-
if provenance.builtin_namespace_untouched and provenance.binding(value.func.id, value.func) is None:
|
|
115
|
+
match value:
|
|
116
|
+
case ast.List() | ast.Set() if not value.elts:
|
|
125
117
|
return target.id
|
|
118
|
+
case ast.Dict() if not value.keys:
|
|
119
|
+
return target.id
|
|
120
|
+
case ast.Call() if (
|
|
121
|
+
isinstance(value.func, ast.Name)
|
|
122
|
+
and value.func.id in {"dict", "list", "set"}
|
|
123
|
+
and not value.args
|
|
124
|
+
and not value.keywords
|
|
125
|
+
):
|
|
126
|
+
provenance = context.static_resource_provenance
|
|
127
|
+
if provenance.builtin_namespace_untouched and provenance.binding(value.func.id, value.func) is None:
|
|
128
|
+
return target.id
|
|
129
|
+
case _:
|
|
130
|
+
pass
|
|
126
131
|
return None
|
|
127
132
|
|
|
128
133
|
|
{sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_copy_on_write.py
RENAMED
|
@@ -286,12 +286,15 @@ class _Models:
|
|
|
286
286
|
if qualified is not None:
|
|
287
287
|
module, _, name = qualified.rpartition(".")
|
|
288
288
|
return SymbolRef(module, name)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
289
|
+
match expression:
|
|
290
|
+
case ast.Name() if expression.id in imports.shadowed_names:
|
|
291
|
+
return SymbolRef(owner.module or "__copy_source__", expression.id)
|
|
292
|
+
case ast.Attribute() if any(
|
|
293
|
+
isinstance(node, ast.Name) and node.id in imports.shadowed_names for node in ast.walk(expression)
|
|
294
|
+
):
|
|
295
|
+
return None
|
|
296
|
+
case _:
|
|
297
|
+
pass
|
|
295
298
|
return self.indexes.resolve(owner, expression)
|
|
296
299
|
|
|
297
300
|
def class_node(self, symbol: SymbolRef) -> tuple[SourceUnit, ast.ClassDef] | None:
|
|
@@ -553,21 +553,24 @@ class _DataUnions:
|
|
|
553
553
|
|
|
554
554
|
def _literal_piece(self, item: _Expansion) -> _Domain | list[_Expansion]:
|
|
555
555
|
member = item.node
|
|
556
|
-
|
|
557
|
-
if member.id in
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
556
|
+
match member:
|
|
557
|
+
case ast.Name() if member.id in self.aliases:
|
|
558
|
+
if member.id in item.aliases:
|
|
559
|
+
return _Domain(opaque=True)
|
|
560
|
+
parsed = _string_expression(self.aliases[member.id])
|
|
561
|
+
if parsed is None:
|
|
562
|
+
return _Domain(opaque=True)
|
|
563
|
+
return [_Expansion(parsed, item.aliases | {member.id})]
|
|
564
|
+
case ast.Subscript():
|
|
565
|
+
children = (
|
|
566
|
+
_subscript_members(member)
|
|
567
|
+
if self._typing_symbol(member.value) == "Literal"
|
|
568
|
+
else self._union_members(member)
|
|
569
|
+
)
|
|
570
|
+
if children is not None:
|
|
571
|
+
return [_Expansion(child, item.aliases) for child in children]
|
|
572
|
+
case _:
|
|
573
|
+
pass
|
|
571
574
|
return _literal_value(member)
|
|
572
575
|
|
|
573
576
|
|
{sarj_python_lint-1.155.0 → sarj_python_lint-1.157.0}/src/sarj_python_lint/rules/_docstrings.py
RENAMED
|
@@ -388,27 +388,31 @@ def _terminal_name(node: ast.expr) -> str | None:
|
|
|
388
388
|
|
|
389
389
|
|
|
390
390
|
def _record_docstring_use(node: ast.AST, consumed: set[str], aliases: dict[str, set[str]]) -> None:
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
391
|
+
match node:
|
|
392
|
+
case ast.Attribute() if node.attr == "__doc__":
|
|
393
|
+
if name := _terminal_name(node.value):
|
|
394
|
+
consumed.add(name)
|
|
395
|
+
case ast.Call() if _is_docstring_reader(node):
|
|
396
|
+
if name := _terminal_name(node.args[0]):
|
|
397
|
+
consumed.add(name)
|
|
398
|
+
case ast.Subscript():
|
|
399
|
+
if name := _subscripted_docstring_owner(node):
|
|
400
|
+
consumed.add(name)
|
|
401
|
+
case _:
|
|
402
|
+
_record_docstring_alias(node, aliases)
|
|
402
403
|
|
|
403
404
|
|
|
404
405
|
def _subscripted_docstring_owner(node: ast.Subscript) -> str | None:
|
|
405
406
|
if not isinstance(node.slice, ast.Constant) or node.slice.value != "__doc__":
|
|
406
407
|
return None
|
|
407
408
|
value = node.value
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
match value:
|
|
410
|
+
case ast.Attribute() if value.attr == "__dict__":
|
|
411
|
+
return _terminal_name(value.value)
|
|
412
|
+
case ast.Call() if isinstance(value.func, ast.Name) and value.func.id == "vars" and value.args:
|
|
413
|
+
return _terminal_name(value.args[0])
|
|
414
|
+
case _:
|
|
415
|
+
pass
|
|
412
416
|
return None
|
|
413
417
|
|
|
414
418
|
|
|
@@ -416,10 +420,13 @@ def _is_docstring_reader(node: ast.Call) -> bool:
|
|
|
416
420
|
if not node.args:
|
|
417
421
|
return False
|
|
418
422
|
function = node.func
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
+
match function:
|
|
424
|
+
case ast.Name() if function.id == "help":
|
|
425
|
+
return True
|
|
426
|
+
case ast.Attribute() if function.attr in {"getdoc", "render_doc"}:
|
|
427
|
+
return True
|
|
428
|
+
case _:
|
|
429
|
+
pass
|
|
423
430
|
return (
|
|
424
431
|
isinstance(function, ast.Name)
|
|
425
432
|
and function.id == "getattr"
|
|
@@ -430,16 +437,15 @@ def _is_docstring_reader(node: ast.Call) -> bool:
|
|
|
430
437
|
|
|
431
438
|
|
|
432
439
|
def _record_docstring_alias(node: ast.AST, aliases: dict[str, set[str]]) -> None:
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
isinstance(node, ast.
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
aliases.setdefault(node.target.id, set()).add(original)
|
|
440
|
+
match node:
|
|
441
|
+
case ast.Assign() if isinstance(node.value, (ast.Name, ast.Attribute)):
|
|
442
|
+
original = _terminal_name(node.value)
|
|
443
|
+
for target in node.targets:
|
|
444
|
+
if isinstance(target, ast.Name) and original is not None:
|
|
445
|
+
aliases.setdefault(target.id, set()).add(original)
|
|
446
|
+
case ast.AnnAssign() if isinstance(node.target, ast.Name) and isinstance(node.value, (ast.Name, ast.Attribute)):
|
|
447
|
+
original = _terminal_name(node.value)
|
|
448
|
+
if original is not None:
|
|
449
|
+
aliases.setdefault(node.target.id, set()).add(original)
|
|
450
|
+
case _:
|
|
451
|
+
pass
|