sarj-python-lint 1.154.0__tar.gz → 1.155.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.154.0 → sarj_python_lint-1.155.0}/PKG-INFO +1 -1
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/pyproject.toml +1 -1
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_declared_tests.py +12 -5
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_security.py +7 -7
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_route_shapes.py +3 -2
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +2 -2
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +13 -11
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +10 -11
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +3 -3
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +3 -3
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_restated_comment.py +3 -2
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_defaultdict.py +3 -3
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +3 -3
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +3 -2
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +5 -4
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +3 -3
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +3 -2
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +3 -2
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/stepdown.py +10 -9
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/.gitignore +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/LICENSE +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/README.md +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/__main__.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_file_context.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_parallel.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_python_target.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/application_logging.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/benchmark.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/cast_access.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/json_boundary.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rule_base.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_comments.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_domain_boundaries.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_httpx_clients.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_logging.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_nullable_outcome.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_registry.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_sdk_metadata_fields.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_sdk_prerequisite.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_sql.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_nonlocal_statement.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_value_error_forwarder.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_exception_propagation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_required_prerequisite.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_single_parametrize_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/sql_literals.py +0 -0
- {sarj_python_lint-1.154.0 → sarj_python_lint-1.155.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.155.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/
|
|
@@ -103,12 +103,19 @@ def _returns_int(owner: ast.FunctionDef) -> bool:
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
def _closed_classes(profile: _Profile) -> bool:
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
if (
|
|
107
|
+
not all(_plain_class(owner) for owner in (profile.port, profile.store, profile.service))
|
|
108
|
+
or profile.store.bases
|
|
109
|
+
or profile.service.bases
|
|
110
|
+
):
|
|
108
111
|
return False
|
|
109
|
-
if
|
|
112
|
+
if (
|
|
113
|
+
len(profile.port.bases) != 1
|
|
114
|
+
or not isinstance(profile.port.bases[0], ast.Name)
|
|
115
|
+
or profile.port.bases[0].id != "Protocol"
|
|
116
|
+
):
|
|
110
117
|
return False
|
|
111
|
-
match port.body, store.body, service.body:
|
|
118
|
+
match profile.port.body, profile.store.body, profile.service.body:
|
|
112
119
|
case [ast.FunctionDef() as abstract], [ast.FunctionDef() as concrete], [
|
|
113
120
|
ast.FunctionDef() as initializer,
|
|
114
121
|
ast.FunctionDef() as reader,
|
|
@@ -116,7 +123,7 @@ def _closed_classes(profile: _Profile) -> bool:
|
|
|
116
123
|
return (
|
|
117
124
|
_port_method(abstract)
|
|
118
125
|
and _store_method(concrete)
|
|
119
|
-
and _service_initializer(initializer, port.name)
|
|
126
|
+
and _service_initializer(initializer, profile.port.name)
|
|
120
127
|
and _service_reader(reader)
|
|
121
128
|
)
|
|
122
129
|
case _:
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_security.py
RENAMED
|
@@ -77,21 +77,21 @@ def _comparison_edit(context: PythonFileContext, diagnostic: Diagnostic, compari
|
|
|
77
77
|
guarded = _guarded_owner(context, comparison, names)
|
|
78
78
|
if guarded is None:
|
|
79
79
|
return None
|
|
80
|
-
|
|
81
|
-
captures = _captured_parameters(context, owner)
|
|
80
|
+
captures = _captured_parameters(context, guarded.owner)
|
|
82
81
|
if captures is None or not names.isdisjoint(
|
|
83
82
|
(captures.compare.arg, captures.type_check.arg, captures.bytes_type.arg)
|
|
84
83
|
):
|
|
85
84
|
return None
|
|
86
|
-
guards = _bytes_guard(guard, names, captures)
|
|
87
|
-
if guards is None or not _canonical_captures(context, owner, guards, captures):
|
|
85
|
+
guards = _bytes_guard(guarded.guard, names, captures)
|
|
86
|
+
if guards is None or not _canonical_captures(context, guarded.owner, guards, captures):
|
|
88
87
|
return None
|
|
89
88
|
parameters = ParameterFixes(context)
|
|
90
|
-
calls = parameters.closed_calls(owner)
|
|
91
|
-
if not calls or not _forwarded_parameter_call(context, owner, calls):
|
|
89
|
+
calls = parameters.closed_calls(guarded.owner)
|
|
90
|
+
if not calls or not _forwarded_parameter_call(context, guarded.owner, calls):
|
|
92
91
|
return None
|
|
93
92
|
if any(
|
|
94
|
-
token.type == tokenize.COMMENT
|
|
93
|
+
token.type == tokenize.COMMENT
|
|
94
|
+
and guarded.owner.lineno <= token.start[0] <= (guarded.owner.end_lineno or guarded.owner.lineno)
|
|
95
95
|
for token in parameters.tokens
|
|
96
96
|
):
|
|
97
97
|
return None
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_route_shapes.py
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import ast
|
|
4
|
+
from collections import defaultdict
|
|
4
5
|
from dataclasses import dataclass
|
|
5
6
|
from http import HTTPStatus
|
|
6
7
|
import re
|
|
@@ -35,12 +36,12 @@ def route_decorators(context: PythonFileContext) -> Iterator[RouteDecorator]:
|
|
|
35
36
|
return
|
|
36
37
|
index = context.fastapi
|
|
37
38
|
for function in context.nodes(ast.FunctionDef, ast.AsyncFunctionDef):
|
|
38
|
-
grouped: dict[int, list[str]] =
|
|
39
|
+
grouped: dict[int, list[str]] = defaultdict(list)
|
|
39
40
|
first: dict[int, RouteDecorator] = {}
|
|
40
41
|
for route in index.routes(function):
|
|
41
42
|
if route.has_unpack:
|
|
42
43
|
continue
|
|
43
|
-
grouped
|
|
44
|
+
grouped[id(route.decorator)].append(route.method)
|
|
44
45
|
first.setdefault(
|
|
45
46
|
id(route.decorator), RouteDecorator(route.decorator, frozenset(), route.path, route.inherited_prefix)
|
|
46
47
|
)
|
|
@@ -33,7 +33,7 @@ class DuplicatePytestFixtureParams(Rule):
|
|
|
33
33
|
id: str = "duplicate-pytest-fixture-params"
|
|
34
34
|
code: str = "SARJ524"
|
|
35
35
|
documentation: ClassVar[RuleDocumentation | None] = RuleDocumentation(
|
|
36
|
-
default_level=Severity.
|
|
36
|
+
default_level=Severity.ERROR,
|
|
37
37
|
summary="Review repeated immutable values in a pytest fixture parameter list.",
|
|
38
38
|
rationale=(
|
|
39
39
|
"Each fixture parameter reruns its dependent tests. Repeating the same immutable literal can add "
|
|
@@ -102,7 +102,7 @@ class DuplicatePytestFixtureParams(Rule):
|
|
|
102
102
|
line=value.lineno,
|
|
103
103
|
col=value.col_offset + 1,
|
|
104
104
|
code=self.code,
|
|
105
|
-
severity=Severity.
|
|
105
|
+
severity=Severity.ERROR,
|
|
106
106
|
message=(
|
|
107
107
|
f"fixture `{fixture.name}` repeats the immutable parameter from line {first.lineno}; "
|
|
108
108
|
"review dependent contracts before removing it, or give intentional repetition explicit IDs"
|
|
@@ -235,20 +235,22 @@ class _ValidationResults:
|
|
|
235
235
|
resolved = self._resolve(call.func)
|
|
236
236
|
if resolved is None:
|
|
237
237
|
return False
|
|
238
|
-
|
|
239
|
-
if isinstance(function, ast.AsyncFunctionDef) != isinstance(statement.value, ast.Await):
|
|
238
|
+
if isinstance(resolved.function, ast.AsyncFunctionDef) != isinstance(statement.value, ast.Await):
|
|
240
239
|
return False
|
|
241
|
-
if function not in self.contracts:
|
|
242
|
-
provenance = self._source_provenance(owner.path)
|
|
243
|
-
self.contracts[function] = (
|
|
244
|
-
not owner.generated
|
|
245
|
-
and _value_validator(function)
|
|
240
|
+
if resolved.function not in self.contracts:
|
|
241
|
+
provenance = self._source_provenance(resolved.owner.path)
|
|
242
|
+
self.contracts[resolved.function] = (
|
|
243
|
+
not resolved.owner.generated
|
|
244
|
+
and _value_validator(resolved.function)
|
|
246
245
|
and provenance is not None
|
|
247
|
-
and self._value_annotation(
|
|
248
|
-
|
|
246
|
+
and self._value_annotation(
|
|
247
|
+
provenance, resolved.function.returns, resolved.function, _MAX_ANNOTATION_DEPTH, frozenset()
|
|
248
|
+
)
|
|
249
|
+
and self._returned_constructions(provenance, resolved.function)
|
|
249
250
|
)
|
|
250
|
-
return self.contracts[function] and not any(
|
|
251
|
-
_namespace_uncertain(provenance, owner.path)
|
|
251
|
+
return self.contracts[resolved.function] and not any(
|
|
252
|
+
_namespace_uncertain(provenance, resolved.owner.path)
|
|
253
|
+
or _namespace_uncertain(provenance, provenance.context.path)
|
|
252
254
|
for provenance in resolved.namespaces
|
|
253
255
|
)
|
|
254
256
|
|
|
@@ -535,24 +535,23 @@ def _mutation(
|
|
|
535
535
|
|
|
536
536
|
|
|
537
537
|
def _evaluated_children(current: _Evaluation, eager_generators: frozenset[ast.GeneratorExp]) -> list[_Evaluation]:
|
|
538
|
-
|
|
539
|
-
match node:
|
|
538
|
+
match current.node:
|
|
540
539
|
case ast.AnnAssign(target=target, value=value):
|
|
541
540
|
if value is None:
|
|
542
|
-
return [_Evaluation(child, origins) for child in ast.iter_child_nodes(target)]
|
|
543
|
-
return [_Evaluation(target, origins), _Evaluation(value, origins)]
|
|
541
|
+
return [_Evaluation(child, current.origins) for child in ast.iter_child_nodes(target)]
|
|
542
|
+
return [_Evaluation(target, current.origins), _Evaluation(value, current.origins)]
|
|
544
543
|
case ast.BoolOp():
|
|
545
|
-
return _boolean_operands(node, origins)
|
|
544
|
+
return _boolean_operands(current.node, current.origins)
|
|
546
545
|
case ast.Compare():
|
|
547
|
-
return _comparison_operands(node, origins)
|
|
546
|
+
return _comparison_operands(current.node, current.origins)
|
|
548
547
|
case ast.IfExp():
|
|
549
|
-
return _conditional_operands(node, origins)
|
|
550
|
-
case ast.GeneratorExp() if node not in eager_generators:
|
|
551
|
-
return [_Evaluation(node.generators[0].iter, origins)]
|
|
548
|
+
return _conditional_operands(current.node, current.origins)
|
|
549
|
+
case ast.GeneratorExp() if current.node not in eager_generators:
|
|
550
|
+
return [_Evaluation(current.node.generators[0].iter, current.origins)]
|
|
552
551
|
case ast.ListComp() | ast.SetComp() | ast.DictComp() | ast.GeneratorExp():
|
|
553
|
-
return _comprehension_operands(node, origins)
|
|
552
|
+
return _comprehension_operands(current.node, current.origins)
|
|
554
553
|
case _:
|
|
555
|
-
return [_Evaluation(child, origins) for child in ast.iter_child_nodes(node)]
|
|
554
|
+
return [_Evaluation(child, current.origins) for child in ast.iter_child_nodes(current.node)]
|
|
556
555
|
|
|
557
556
|
|
|
558
557
|
def _boolean_operands(node: ast.BoolOp, origins: dict[str, _Borrowed]) -> list[_Evaluation]:
|
|
@@ -36,7 +36,7 @@ class NoRedundantAttributeUnpacking(Rule):
|
|
|
36
36
|
id = "no-redundant-attribute-unpacking"
|
|
37
37
|
code = "SARJ554"
|
|
38
38
|
documentation = RuleDocumentation(
|
|
39
|
-
default_level=Severity.
|
|
39
|
+
default_level=Severity.ERROR,
|
|
40
40
|
summary="Use an aggregate's named attributes instead of repeating their names in tuple aliases.",
|
|
41
41
|
rationale="A tuple assignment that repeats every attribute name adds parallel bindings without describing a transformation or a new concept.",
|
|
42
42
|
remediation="Read the aggregate's named attributes directly. Retain intentional value snapshots with an explained local suppression.",
|
|
@@ -45,7 +45,7 @@ class NoRedundantAttributeUnpacking(Rule):
|
|
|
45
45
|
limitations=(
|
|
46
46
|
"Reports unconditional tuple/list assignments directly in function bodies only when every element aliases an identically named attribute of the same simple receiver and no target rebinds that receiver.",
|
|
47
47
|
"Conditional/loop/context-manager aliases can normalize branch results or preserve resource scopes and are excluded. Renamed attributes, mixed receivers, nested unpacking, calls, module/class bindings, generated source and malformed source are excluded.",
|
|
48
|
-
"This is an
|
|
48
|
+
"This is an organization style policy. A retained snapshot can be meaningful when the aggregate changes; preserve that contract with an explained exact-code exception. No autofix or claim of behavioral equivalence is made.",
|
|
49
49
|
),
|
|
50
50
|
examples=(
|
|
51
51
|
RuleExample(
|
|
@@ -100,7 +100,7 @@ class NoRedundantAttributeUnpacking(Rule):
|
|
|
100
100
|
node.col_offset + 1,
|
|
101
101
|
self.code,
|
|
102
102
|
"Use these named attributes on their aggregate directly; retain intentional snapshots with an explained exception.",
|
|
103
|
-
severity=Severity.
|
|
103
|
+
severity=Severity.ERROR,
|
|
104
104
|
)
|
|
105
105
|
)
|
|
106
106
|
return list({(finding.line, finding.col): finding for finding in findings}.values())
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import ast
|
|
4
|
-
from collections import Counter
|
|
4
|
+
from collections import Counter, defaultdict
|
|
5
5
|
import copy
|
|
6
6
|
from pathlib import PurePosixPath
|
|
7
7
|
import re
|
|
@@ -379,10 +379,10 @@ def _collect_duplicate_bucket(
|
|
|
379
379
|
positions: dict[int, int],
|
|
380
380
|
found: list[list[_Shape]],
|
|
381
381
|
) -> None:
|
|
382
|
-
groups: dict[tuple[str, tuple[str, ...]], list[_Shape]] =
|
|
382
|
+
groups: dict[tuple[str, tuple[str, ...]], list[_Shape]] = defaultdict(list)
|
|
383
383
|
for outline in bucket:
|
|
384
384
|
shape = _Shape(outline.node, comments, imports)
|
|
385
|
-
groups
|
|
385
|
+
groups[shape.key].append(shape)
|
|
386
386
|
for members in groups.values():
|
|
387
387
|
candidates = _duplicate_candidates(members, positions)
|
|
388
388
|
found.extend(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import ast
|
|
4
|
+
from collections import defaultdict
|
|
4
5
|
from io import StringIO
|
|
5
6
|
from pathlib import PurePosixPath
|
|
6
7
|
import re
|
|
@@ -221,10 +222,10 @@ def _numbered_walkthrough_lines(
|
|
|
221
222
|
containing = [node for node in owners if node.lineno <= line <= (node.end_lineno or node.lineno)]
|
|
222
223
|
return id(max(containing, key=lambda node: node.lineno)) if containing else id(tree)
|
|
223
224
|
|
|
224
|
-
grouped: dict[tuple[int, int], list[tuple[int, int]]] =
|
|
225
|
+
grouped: dict[tuple[int, int], list[tuple[int, int]]] = defaultdict(list)
|
|
225
226
|
for line, col, body in standalone:
|
|
226
227
|
if match := _NUMBERED_WALKTHROUGH_RE.match(body):
|
|
227
|
-
grouped
|
|
228
|
+
grouped[owner_of(line), col].append((line, int(match.group(1))))
|
|
228
229
|
|
|
229
230
|
protected: set[int] = set()
|
|
230
231
|
for entries in grouped.values():
|
|
@@ -31,7 +31,7 @@ class PreferDefaultdict(Rule):
|
|
|
31
31
|
id = "prefer-defaultdict"
|
|
32
32
|
code = "SARJ579"
|
|
33
33
|
documentation = RuleDocumentation(
|
|
34
|
-
default_level=Severity.
|
|
34
|
+
default_level=Severity.ERROR,
|
|
35
35
|
summary="Use defaultdict(list) for a locally owned list-grouping dictionary.",
|
|
36
36
|
rationale="setdefault(key, []) constructs a new empty list on every grouping iteration, including keys already present. A declared list factory keeps initialization in one place and avoids discarded defaults for repeated keys.",
|
|
37
37
|
remediation="Use collections.defaultdict(list) for this local accumulator and append through groups[key]. Preserve ordering, missing-key behavior and the concrete type at any returned boundary.",
|
|
@@ -40,7 +40,7 @@ class PreferDefaultdict(Rule):
|
|
|
40
40
|
limitations=(
|
|
41
41
|
"Checks only fresh function-local empty dict literals whose stable binding is used for loop-local setdefault(key, []).append(value) and read-only items/keys/values or native len/dict calls.",
|
|
42
42
|
"Returned dictionaries, indexing, get/membership probes, aliases, captures, rebinding and opaque escapes abstain because defaultdict can change missing-key and concrete-type behavior. Nonempty defaults, custom mappings, grouping outside loops and loop else suites remain allowed.",
|
|
43
|
-
"One
|
|
43
|
+
"One finding is emitted per local accumulator. Cardinality and repeated-key frequency are not inferred; this is an organization grouping policy rather than a guaranteed speedup. Tests remain in scope; generated or malformed sources are excluded. No automatic rewrite changes mapping behavior.",
|
|
44
44
|
),
|
|
45
45
|
examples=(
|
|
46
46
|
RuleExample(
|
|
@@ -90,7 +90,7 @@ class PreferDefaultdict(Rule):
|
|
|
90
90
|
call.col_offset + 1,
|
|
91
91
|
self.code,
|
|
92
92
|
"Declare defaultdict(list) for this local grouping accumulator instead of allocating [] in every setdefault call; preserve missing-key and return-type contracts.",
|
|
93
|
-
severity=Severity.
|
|
93
|
+
severity=Severity.ERROR,
|
|
94
94
|
)
|
|
95
95
|
)
|
|
96
96
|
return findings
|
|
@@ -29,7 +29,7 @@ class PreferDirectImportModule(Rule):
|
|
|
29
29
|
id = "prefer-direct-import-module"
|
|
30
30
|
code = "SARJ529"
|
|
31
31
|
documentation = RuleDocumentation(
|
|
32
|
-
default_level=Severity.
|
|
32
|
+
default_level=Severity.ERROR,
|
|
33
33
|
summary="Prefer static imports for eager module loads with a literal module name.",
|
|
34
34
|
rationale="Static imports expose known dependencies to readers and tooling without dynamic loader indirection.",
|
|
35
35
|
remediation="Replace a fixed eager module load with a module-level import, preserving its binding: plugin = importlib.import_module('plugins.billing') becomes import plugins.billing as plugin. Use import plugins.billing when callers use the qualified module name; avoid a redundant alias for a single-component module. Keep dynamic loading when module selection or import timing requires it.",
|
|
@@ -38,7 +38,7 @@ class PreferDirectImportModule(Rule):
|
|
|
38
38
|
limitations=(
|
|
39
39
|
"Checks direct module-level assignments and expression statements calling the proven stdlib import_module function, through qualified or directly imported names, with one literal absolute module name.",
|
|
40
40
|
"Function/class bodies, conditional or guarded imports, variable module names, relative imports, callback references, shadowed or mutated providers and generated code are excluded. Static import syntax must be valid for every module-name segment.",
|
|
41
|
-
"
|
|
41
|
+
"Static imports must preserve the current execution position and module binding. No automatic rewrite moves imports or changes optional-dependency or cycle handling. Preserve an intentional loader contract with an explained exact-code exception; genuinely dynamic import_module calls remain allowed.",
|
|
42
42
|
),
|
|
43
43
|
examples=(
|
|
44
44
|
RuleExample(
|
|
@@ -91,7 +91,7 @@ class PreferDirectImportModule(Rule):
|
|
|
91
91
|
node.col_offset + 1,
|
|
92
92
|
self.code,
|
|
93
93
|
_recommendation(statement, module),
|
|
94
|
-
severity=Severity.
|
|
94
|
+
severity=Severity.ERROR,
|
|
95
95
|
)
|
|
96
96
|
for statement in context.tree.body
|
|
97
97
|
if isinstance(statement, ast.Assign | ast.AnnAssign | ast.Expr)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import ast
|
|
4
|
+
from collections import defaultdict
|
|
4
5
|
from pathlib import PurePosixPath
|
|
5
6
|
from typing import TYPE_CHECKING, final, override
|
|
6
7
|
|
|
@@ -71,10 +72,10 @@ class PreferSinglePsycopgCursor(Rule):
|
|
|
71
72
|
def check_context(self, context: PythonFileContext) -> list[Diagnostic]:
|
|
72
73
|
if context.generated or context.tree is None:
|
|
73
74
|
return []
|
|
74
|
-
by_function: dict[ast.FunctionDef | ast.AsyncFunctionDef, list[ast.Call]] =
|
|
75
|
+
by_function: dict[ast.FunctionDef | ast.AsyncFunctionDef, list[ast.Call]] = defaultdict(list)
|
|
75
76
|
for call in psycopg_cursor_calls(context):
|
|
76
77
|
if (owner := query_owner(call, context).method) is not None:
|
|
77
|
-
by_function
|
|
78
|
+
by_function[owner].append(call)
|
|
78
79
|
findings: list[Diagnostic] = []
|
|
79
80
|
for calls in by_function.values():
|
|
80
81
|
previous: list[ast.Call] = []
|
|
@@ -254,14 +254,15 @@ def _preferred(
|
|
|
254
254
|
default_contract = _field_options(field, facts, contracts.context)
|
|
255
255
|
if default_contract is None:
|
|
256
256
|
return None
|
|
257
|
-
|
|
258
|
-
if (domain := _domain_type(default, contracts)) is not None:
|
|
257
|
+
if (domain := _domain_type(default_contract.default, contracts)) is not None:
|
|
259
258
|
return domain
|
|
260
259
|
match primitive:
|
|
261
260
|
case "str":
|
|
262
|
-
return _string_domain(default)
|
|
261
|
+
return _string_domain(default_contract.default)
|
|
263
262
|
case "int" | "float":
|
|
264
|
-
return _numeric_type(
|
|
263
|
+
return _numeric_type(
|
|
264
|
+
primitive, default_contract.options, field=field, default=default_contract.default, facts=facts
|
|
265
|
+
)
|
|
265
266
|
case _:
|
|
266
267
|
return None
|
|
267
268
|
|
|
@@ -43,7 +43,7 @@ class PytestFixtureReturnsClosedResource(Rule):
|
|
|
43
43
|
id: str = "pytest-fixture-returns-closed-resource"
|
|
44
44
|
code: str = "SARJ525"
|
|
45
45
|
documentation: ClassVar[RuleDocumentation | None] = RuleDocumentation(
|
|
46
|
-
default_level=Severity.
|
|
46
|
+
default_level=Severity.ERROR,
|
|
47
47
|
summary="Yield a managed fixture resource until its requesting test finishes.",
|
|
48
48
|
rationale=(
|
|
49
49
|
"Returning a context-managed stream or HTTPX client exits its context before pytest receives the value. "
|
|
@@ -60,7 +60,7 @@ class PytestFixtureReturnsClosedResource(Rule):
|
|
|
60
60
|
"Only proven pytest/pytest-asyncio fixtures in test paths with one decorator and a direct return inside the owning with/async with are analyzed.",
|
|
61
61
|
"Recognizes built-in/io streams, tempfile TemporaryFile/NamedTemporaryFile, HTTPX Client and async-with AsyncClient; arbitrary context managers and TestClient are excluded.",
|
|
62
62
|
"Aliases, escaped/rebound resources, provider mutation, nested helpers, generator fixtures, returned snapshots and returns after the context are not inferred.",
|
|
63
|
-
"Unreachable branches and intentional closed-resource contracts are not inferred;
|
|
63
|
+
"Unreachable branches and intentional closed-resource contracts are not inferred; preserve a required closed-resource contract with an explained exact-code exception. No automatic rewrite changes cleanup or exception behavior.",
|
|
64
64
|
),
|
|
65
65
|
examples=(
|
|
66
66
|
RuleExample(
|
|
@@ -126,7 +126,7 @@ class PytestFixtureReturnsClosedResource(Rule):
|
|
|
126
126
|
line=returned.lineno,
|
|
127
127
|
col=returned.col_offset + 1,
|
|
128
128
|
code=self.code,
|
|
129
|
-
severity=Severity.
|
|
129
|
+
severity=Severity.ERROR,
|
|
130
130
|
message=(
|
|
131
131
|
f"fixture returns `{returned.value.id}` after its context closes it; yield inside the context "
|
|
132
132
|
"until the requesting test finishes, or document an intentional closed-resource contract"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import ast
|
|
4
|
+
from collections import defaultdict
|
|
4
5
|
from pathlib import PurePosixPath
|
|
5
6
|
from typing import TYPE_CHECKING, ClassVar, final, override
|
|
6
7
|
|
|
@@ -195,7 +196,7 @@ def _duplicates(indexes: ProjectIndexSet, symbol: SymbolRef) -> dict[tuple[Path,
|
|
|
195
196
|
operations = frozenset(abstract)
|
|
196
197
|
if _observed_operations(unit, operations):
|
|
197
198
|
return {}
|
|
198
|
-
groups: dict[str, list[tuple[Path, str]]] =
|
|
199
|
+
groups: dict[str, list[tuple[Path, str]]] = defaultdict(list)
|
|
199
200
|
for path, name in sorted(indexes.direct_subclasses(unit, symbol.name), key=lambda item: (str(item[0]), item[1])):
|
|
200
201
|
candidate = indexes.unit(path)
|
|
201
202
|
if candidate is None or candidate.tree is None:
|
|
@@ -206,7 +207,7 @@ def _duplicates(indexes: ProjectIndexSet, symbol: SymbolRef) -> dict[tuple[Path,
|
|
|
206
207
|
if node is None:
|
|
207
208
|
continue
|
|
208
209
|
for method in _strict_operations(node, candidate, abstract):
|
|
209
|
-
groups
|
|
210
|
+
groups[method].append((candidate.path, name))
|
|
210
211
|
duplicates: dict[tuple[Path, str], list[str]] = {}
|
|
211
212
|
for method, owners in sorted(groups.items()):
|
|
212
213
|
for owner in owners[1:]:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import ast
|
|
4
|
+
from collections import defaultdict
|
|
4
5
|
from pathlib import PurePosixPath
|
|
5
6
|
import re
|
|
6
7
|
from typing import TYPE_CHECKING, NamedTuple, final, override
|
|
@@ -347,12 +348,12 @@ def _swap_prone_annotation(args: ast.arguments) -> _SwapProneGroup | None:
|
|
|
347
348
|
params = list(args.args)
|
|
348
349
|
if params and params[0].arg in {"self", "cls"}:
|
|
349
350
|
params = params[1:]
|
|
350
|
-
groups: dict[str, list[str]] =
|
|
351
|
+
groups: dict[str, list[str]] = defaultdict(list)
|
|
351
352
|
for p in params:
|
|
352
353
|
if _is_dunder_prefixed(p.arg):
|
|
353
354
|
continue
|
|
354
355
|
if isinstance(ann := p.annotation, ast.Name) and ann.id in _PRIMITIVES:
|
|
355
|
-
groups
|
|
356
|
+
groups[ann.id].append(p.arg)
|
|
356
357
|
for name, arg_names in sorted(groups.items(), key=lambda kv: -len(kv[1])):
|
|
357
358
|
if (
|
|
358
359
|
len(arg_names) >= _MIN_SAME_TYPE
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/stepdown.py
RENAMED
|
@@ -283,19 +283,20 @@ class Stepdown(Rule):
|
|
|
283
283
|
if tree is None:
|
|
284
284
|
return []
|
|
285
285
|
index = _tree_index(tree)
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
for node in nodes:
|
|
286
|
+
transparent = _transparent_builtin_decorators(tree, index.nodes)
|
|
287
|
+
diags = _check_module_scope(path, tree, self.code, transparent, index.parents)
|
|
288
|
+
for node in index.nodes:
|
|
290
289
|
if isinstance(node, _DEF_NODES):
|
|
291
290
|
diags.extend(
|
|
292
291
|
_check_module_scope(
|
|
293
|
-
path, ast.Module(body=node.body, type_ignores=[]), self.code, transparent, parents
|
|
292
|
+
path, ast.Module(body=node.body, type_ignores=[]), self.code, transparent, index.parents
|
|
294
293
|
)
|
|
295
294
|
)
|
|
296
|
-
classes = [node for node in nodes if isinstance(node, ast.ClassDef)]
|
|
295
|
+
classes = [node for node in index.nodes if isinstance(node, ast.ClassDef)]
|
|
297
296
|
family_external = _family_external_refs(classes)
|
|
298
|
-
mutable_names = {
|
|
297
|
+
mutable_names = {
|
|
298
|
+
name for node in index.nodes if isinstance(node, (ast.Global, ast.Nonlocal)) for name in node.names
|
|
299
|
+
}
|
|
299
300
|
for cls in classes:
|
|
300
301
|
diags.extend(
|
|
301
302
|
_check_class_scope(
|
|
@@ -304,8 +305,8 @@ class Stepdown(Rule):
|
|
|
304
305
|
self.code,
|
|
305
306
|
family_external.get(id(cls), frozenset()),
|
|
306
307
|
transparent,
|
|
307
|
-
parents=parents,
|
|
308
|
-
stable_class_name=cls.name not in mutable_names and _stable_class_binding(cls, parents),
|
|
308
|
+
parents=index.parents,
|
|
309
|
+
stable_class_name=cls.name not in mutable_names and _stable_class_binding(cls, index.parents),
|
|
309
310
|
)
|
|
310
311
|
)
|
|
311
312
|
diags.sort(key=lambda d: (d.line, d.col))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_analysis_session.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_aliases.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_annotations.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_comments.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_enums.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_inert.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_parameters.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_repeated.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_autofix_tests.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_closed_sql_literal.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_prepared_sources.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_python_target.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/_rule_descriptors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/application_logging.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/interpreter_argv.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_ast_index.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_ast_names.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_ast_position.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_async_lifecycle.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.154.0 → sarj_python_lint-1.155.0}/src/sarj_python_lint/rules/_closed_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|