sarj-python-lint 1.151.1__tar.gz → 1.152.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.
Files changed (351) hide show
  1. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/PKG-INFO +2 -2
  2. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/pyproject.toml +2 -2
  3. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_nullable_outcome.py +1 -1
  4. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +5 -3
  5. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +1 -1
  6. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_offset_pagination.py +1 -1
  7. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_select_star.py +1 -1
  8. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +7 -6
  9. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +72 -15
  10. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +1 -1
  11. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +42 -15
  12. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +32 -26
  13. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +2 -2
  14. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +1 -1
  15. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +1 -1
  16. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/.gitignore +0 -0
  17. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/LICENSE +0 -0
  18. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/README.md +0 -0
  19. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/__init__.py +0 -0
  20. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/__main__.py +0 -0
  21. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_analysis_session.py +0 -0
  22. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix.py +0 -0
  23. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
  24. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
  25. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
  26. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
  27. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
  28. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
  29. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
  30. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
  31. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
  32. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
  33. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
  34. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_security.py +0 -0
  35. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
  36. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
  37. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
  38. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_file_context.py +0 -0
  39. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_filesystem.py +0 -0
  40. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_fixes.py +0 -0
  41. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_parallel.py +0 -0
  42. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
  43. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_python_target.py +0 -0
  44. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
  45. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
  46. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_secret_names.py +0 -0
  47. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_source.py +0 -0
  48. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/_version.py +0 -0
  49. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/application_logging.py +0 -0
  50. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/autofix.py +0 -0
  51. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/benchmark.py +0 -0
  52. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/cast_access.py +0 -0
  53. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
  54. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/json_boundary.py +0 -0
  55. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/py.typed +0 -0
  56. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/ratchet.py +0 -0
  57. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rule_base.py +0 -0
  58. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rule_metadata.py +0 -0
  59. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/__init__.py +0 -0
  60. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
  61. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
  62. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
  63. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
  64. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
  65. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
  66. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
  67. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
  68. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
  69. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_comments.py +0 -0
  70. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
  71. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
  72. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -0
  73. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
  74. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
  75. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
  76. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_exports.py +0 -0
  77. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
  78. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
  79. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
  80. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
  81. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
  82. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
  83. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_httpx_clients.py +0 -0
  84. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_imports.py +0 -0
  85. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
  86. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
  87. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
  88. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
  89. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_logging.py +0 -0
  90. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
  91. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
  92. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
  93. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
  94. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
  95. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
  96. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
  97. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
  98. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_paths.py +0 -0
  99. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
  100. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
  101. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
  102. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
  103. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
  104. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
  105. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_registry.py +0 -0
  106. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
  107. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
  108. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
  109. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
  110. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
  111. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
  112. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_sdk_metadata_fields.py +0 -0
  113. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_sdk_prerequisite.py +0 -0
  114. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
  115. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
  116. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_sql.py +0 -0
  117. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
  118. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
  119. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
  120. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
  121. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
  122. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
  123. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
  124. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
  125. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
  126. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
  127. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
  128. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
  129. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
  130. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
  131. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
  132. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
  133. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
  134. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
  135. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
  136. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
  137. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
  138. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
  139. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
  140. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
  141. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
  142. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
  143. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
  144. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
  145. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
  146. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
  147. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
  148. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
  149. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
  150. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
  151. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
  152. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
  153. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
  154. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
  155. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
  156. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
  157. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
  158. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
  159. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
  160. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
  161. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
  162. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
  163. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
  164. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +0 -0
  165. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
  166. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
  167. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
  168. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -0
  169. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
  170. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
  171. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
  172. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
  173. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
  174. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
  175. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
  176. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
  177. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
  178. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
  179. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
  180. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
  181. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
  182. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
  183. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
  184. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
  185. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
  186. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
  187. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
  188. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
  189. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
  190. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
  191. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
  192. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
  193. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
  194. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
  195. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
  196. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
  197. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +0 -0
  198. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
  199. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
  200. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
  201. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
  202. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_nonlocal_statement.py +0 -0
  203. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
  204. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
  205. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
  206. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
  207. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
  208. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
  209. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
  210. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
  211. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
  212. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
  213. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
  214. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
  215. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
  216. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
  217. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
  218. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
  219. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
  220. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
  221. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
  222. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
  223. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
  224. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
  225. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
  226. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
  227. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
  228. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
  229. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
  230. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
  231. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
  232. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
  233. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
  234. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
  235. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
  236. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
  237. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
  238. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
  239. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
  240. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
  241. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
  242. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_value_error_forwarder.py +0 -0
  243. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
  244. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
  245. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
  246. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
  247. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
  248. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
  249. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
  250. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
  251. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
  252. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
  253. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
  254. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
  255. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
  256. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
  257. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
  258. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_defaultdict.py +0 -0
  259. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
  260. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
  261. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_exception_propagation.py +0 -0
  262. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
  263. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
  264. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
  265. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
  266. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
  267. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
  268. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
  269. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
  270. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
  271. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
  272. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
  273. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
  274. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
  275. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
  276. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
  277. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
  278. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
  279. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
  280. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
  281. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
  282. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
  283. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
  284. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_pydantic_field_bounds.py +0 -0
  285. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
  286. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
  287. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
  288. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
  289. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
  290. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
  291. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
  292. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_required_prerequisite.py +0 -0
  293. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
  294. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
  295. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
  296. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
  297. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_single_parametrize_contract.py +0 -0
  298. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
  299. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
  300. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
  301. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
  302. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
  303. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
  304. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
  305. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
  306. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
  307. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
  308. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
  309. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +0 -0
  310. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
  311. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
  312. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
  313. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
  314. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
  315. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
  316. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
  317. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
  318. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
  319. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
  320. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
  321. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
  322. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
  323. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
  324. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +0 -0
  325. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
  326. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
  327. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
  328. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
  329. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
  330. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
  331. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
  332. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
  333. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
  334. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
  335. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
  336. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
  337. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
  338. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
  339. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
  340. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
  341. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
  342. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
  343. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
  344. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
  345. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
  346. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
  347. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
  348. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
  349. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
  350. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.0}/src/sarj_python_lint/sql_literals.py +0 -0
  351. {sarj_python_lint-1.151.1 → sarj_python_lint-1.152.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.151.1
3
+ Version: 1.152.0
4
4
  Summary: Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults
5
5
  Project-URL: Homepage, https://code-standards.sarj.ai/rules/python/
6
6
  Project-URL: Documentation, https://code-standards.sarj.ai/rules/python/
@@ -20,7 +20,7 @@ Requires-Python: >=3.14
20
20
  Requires-Dist: packaging==26.3
21
21
  Requires-Dist: ruff>=0.17.2
22
22
  Requires-Dist: sarj-rule-contracts==0.8.1
23
- Requires-Dist: sarj-sql-lint==0.50.0
23
+ Requires-Dist: sarj-sql-lint==0.50.1
24
24
  Requires-Dist: sqlglot==30.31.0
25
25
  Requires-Dist: typer==0.27.3
26
26
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sarj-python-lint"
3
- version = "1.151.1"
3
+ version = "1.152.0"
4
4
  description = "Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "sarj-ai" }]
@@ -15,7 +15,7 @@ classifiers = [
15
15
  "Programming Language :: Python :: 3.14",
16
16
  "Topic :: Software Development :: Quality Assurance",
17
17
  ]
18
- dependencies = ["sarj-rule-contracts==0.8.1", "sarj-sql-lint==0.50.0", "packaging==26.3", "ruff>=0.17.2", "sqlglot==30.31.0", "typer==0.27.3"]
18
+ dependencies = ["sarj-rule-contracts==0.8.1", "sarj-sql-lint==0.50.1", "packaging==26.3", "ruff>=0.17.2", "sqlglot==30.31.0", "typer==0.27.3"]
19
19
 
20
20
  [project.scripts]
21
21
  sarj-python-lint = "sarj_python_lint.__main__:main"
@@ -190,7 +190,7 @@ def _outcome_tag(annotation: ast.expr, facts: AnnotationOrigins) -> bool:
190
190
  return False
191
191
  members = node.slice.elts if isinstance(node.slice, ast.Tuple) else [node.slice]
192
192
  values = {member.value for member in members if isinstance(member, ast.Constant) and isinstance(member.value, str)}
193
- return bool(values & _SUCCESS_TAGS) and bool(values & _ERROR_TAGS)
193
+ return not values.isdisjoint(_SUCCESS_TAGS) and not values.isdisjoint(_ERROR_TAGS)
194
194
 
195
195
 
196
196
  def _failure_field(name: str, annotation: ast.expr, facts: AnnotationOrigins) -> bool:
@@ -149,7 +149,7 @@ def _is_shared_support(path: Path) -> bool:
149
149
  path.name == "conftest.py"
150
150
  or path.stem.lower() in _SHARED_SUPPORT_NAMES
151
151
  or bool(_SUPPORT_STEM_RE.search(path.stem.lower()))
152
- or bool(set(parts) & _NON_INFRA_ROOT_NAMES)
152
+ or not _NON_INFRA_ROOT_NAMES.isdisjoint(parts)
153
153
  or _support_below_test_root(parts)
154
154
  or _non_collected_module_below_test_root(path, parts)
155
155
  )
@@ -160,8 +160,10 @@ def _support_below_test_root(parts: list[str]) -> bool:
160
160
  if not test_roots:
161
161
  return False
162
162
  below_root = parts[test_roots[-1] + 1 : -1]
163
- return bool(set(below_root) & _SHARED_SUPPORT_NAMES)
163
+ return not _SHARED_SUPPORT_NAMES.isdisjoint(below_root)
164
164
 
165
165
 
166
166
  def _non_collected_module_below_test_root(path: Path, parts: list[str]) -> bool:
167
- return bool(set(parts) & _TEST_ROOT_NAMES) and not (path.name.startswith("test") or path.name.endswith("_test.py"))
167
+ return not _TEST_ROOT_NAMES.isdisjoint(parts) and not (
168
+ path.name.startswith("test") or path.name.endswith("_test.py")
169
+ )
@@ -540,4 +540,4 @@ def _signature_declaration(
540
540
  _known_decorator(decorator, function, context, semantics, mutated_members)
541
541
  for decorator in function.decorator_list
542
542
  }
543
- return bool(decorators & _OVERLOAD_DECORATORS) or not decorators <= _KNOWN_DECORATORS
543
+ return not _OVERLOAD_DECORATORS.isdisjoint(decorators) or not decorators <= _KNOWN_DECORATORS
@@ -135,7 +135,7 @@ class NoOffsetPagination(Rule):
135
135
  if (
136
136
  not is_store_module(path)
137
137
  or context.generated
138
- or _MIGRATION_PARTS.intersection(part.casefold() for part in path.parts)
138
+ or not _MIGRATION_PARTS.isdisjoint(part.casefold() for part in path.parts)
139
139
  ):
140
140
  return []
141
141
  tree = context.tree
@@ -326,4 +326,4 @@ def _is_query_binding(target: ast.expr) -> bool:
326
326
  return False
327
327
  name = target.id if isinstance(target, ast.Name) else target.attr
328
328
  tokens = frozenset(part for part in name.lower().split("_") if part)
329
- return name == "q" or name.isupper() or bool(tokens & _QUERY_BINDING_TOKENS)
329
+ return name == "q" or name.isupper() or not tokens.isdisjoint(_QUERY_BINDING_TOKENS)
@@ -338,12 +338,13 @@ def _type_branch(test: ast.expr, imports: ImportIndex) -> _TypeBranch | None:
338
338
 
339
339
 
340
340
  def _exception_type_references(expression: ast.expr, imports: ImportIndex) -> frozenset[str] | None:
341
- if isinstance(expression, ast.Tuple):
342
- parts = expression.elts
343
- elif isinstance(expression, ast.BinOp) and isinstance(expression.op, ast.BitOr):
344
- parts = _flatten_union(expression)
345
- else:
346
- parts = [expression]
341
+ match expression:
342
+ case ast.Tuple(elts=parts):
343
+ pass
344
+ case ast.BinOp(op=ast.BitOr()):
345
+ parts = _flatten_union(expression)
346
+ case _:
347
+ parts = [expression]
347
348
  references = [_exception_type_reference(part, imports) for part in parts]
348
349
  if any(reference is None for reference in references):
349
350
  return None
@@ -111,6 +111,7 @@ class PreferMatchTypeDispatch(ProjectRule):
111
111
  limitations=(
112
112
  "Safe fixes require a closed private nested synchronous helper with proven inert containing scopes and exact primitive literal callers. Only comment-free builtin class-check ladders on one parameter qualify; unknown subjects, callbacks, frame/closure escapes, sibling checks, grouped conditions, guards and custom classes remain review-only.",
113
113
  "General dispatch requires two or more adjacent, unguarded `isinstance` branches over the same simple name. Repeated isinstance calls joined only by or on that same name are also checked; use an OR class pattern for shared behavior. A single isinstance call with a type union remains allowed.",
114
+ "Guarded dispatch over proven classes is additionally a manual warning: keep the type check first, preserve guard order and retain the fallback. Guards with calls, assignment expressions, await or yield are excluded. Imported classes without source proof remain excluded; this extension has no automatic fix.",
114
115
  "A single ordinary-class reuse-or-construction normalization is a warning when both branches first assign the same simple target, reusing the subject or constructing the checked class. Preserve all following branch work. This branch has no automatic fix and does not change established dispatch errors.",
115
116
  "Normalization requires an undecorated, stable module-local class with proven ordinary ancestry and nonescaping class references. Dynamic or mutated classes, unknown imports, constructor argument effects, pre-assignment work and later reassignment of the subject, target or class remain excluded; constructor arguments are simple names or constants.",
116
117
  "Source-proven Pydantic/Enum dispatch is an error even for a single positive isinstance branch. Mixed model/builtin dispatch is supported. These findings have no automatic fixes; preserve nested checks inside case bodies. Predicate expressions, assertions, negated checks and compound guards remain allowed.",
@@ -413,7 +414,7 @@ class PreferMatchTypeDispatch(ProjectRule):
413
414
  )
414
415
  if (
415
416
  not imports.builtin_is_unshadowed("isinstance")
416
- or {"isinstance", "builtins.isinstance"} & unsafe_bindings
417
+ or not unsafe_bindings.isdisjoint({"isinstance", "builtins.isinstance"})
417
418
  or has_wildcard_import
418
419
  ):
419
420
  return []
@@ -463,6 +464,7 @@ class PreferMatchTypeDispatch(ProjectRule):
463
464
  )
464
465
  findings.extend(_review_dispatch_findings(context, local_classes, unsafe_bindings, findings))
465
466
  findings.extend(_reuse_or_construct_findings(context, all_nodes, local_classes, findings))
467
+ findings.extend(_guarded_dispatch_findings(context, local_classes, unsafe_bindings, findings))
466
468
  if findings and context.session.python_target.has_declared_support_before(path, (3, 10)):
467
469
  return []
468
470
  findings = list({(finding.line, finding.col): finding for finding in findings}.values())
@@ -470,6 +472,57 @@ class PreferMatchTypeDispatch(ProjectRule):
470
472
  return findings
471
473
 
472
474
 
475
+ def _guarded_dispatch_findings(
476
+ context: PythonFileContext,
477
+ local_classes: frozenset[str],
478
+ unsafe_bindings: frozenset[str],
479
+ existing: list[Diagnostic],
480
+ ) -> list[Diagnostic]:
481
+ used = {finding.line for finding in existing}
482
+ findings: list[Diagnostic] = []
483
+ for candidates in _review_sequences(context, used):
484
+ branches = list(candidates)
485
+ if not any(isinstance(node.test, ast.BoolOp) and isinstance(node.test.op, ast.And) for node in branches):
486
+ continue
487
+ parsed = [_guarded_type_branch(node.test, context.imports, local_classes, unsafe_bindings) for node in branches]
488
+ if _parsed_dispatch(parsed) is None:
489
+ continue
490
+ used.update(branch.lineno for branch in branches)
491
+ first = branches[0]
492
+ findings.append(
493
+ Diagnostic(
494
+ context.path,
495
+ first.lineno,
496
+ first.col_offset + 1,
497
+ "SARJ080",
498
+ "Use match/case class patterns with guards for this type dispatch; preserve guard order "
499
+ "and fallbacks. This recommendation has no automatic rewrite.",
500
+ severity=Severity.WARNING,
501
+ )
502
+ )
503
+ return findings
504
+
505
+
506
+ def _guarded_type_branch(
507
+ test: ast.expr,
508
+ imports: ImportIndex,
509
+ local_classes: frozenset[str],
510
+ unsafe_bindings: frozenset[str],
511
+ ) -> _TypeBranch | None:
512
+ match test:
513
+ case ast.BoolOp(op=ast.And(), values=[first, *guards]):
514
+ if any(
515
+ isinstance(part, ast.Call | ast.NamedExpr | ast.Await | ast.Yield | ast.YieldFrom)
516
+ for guard in guards
517
+ for part in ast.walk(guard)
518
+ ):
519
+ return None
520
+ test = first
521
+ case _:
522
+ pass
523
+ return _type_branch(test, imports, local_classes, unsafe_bindings)
524
+
525
+
473
526
  def _reuse_or_construct_findings(
474
527
  context: PythonFileContext,
475
528
  all_nodes: tuple[ast.AST, ...],
@@ -531,7 +584,7 @@ def _normalization_reference(
531
584
  if not _normalization_arguments_are_inert(construction):
532
585
  return None
533
586
  rebound = any(
534
- set(binding_names(child)) & {subject, target, kind}
587
+ not {subject, target, kind}.isdisjoint(binding_names(child))
535
588
  for statement in [*node.body[1:], *node.orelse[1:]]
536
589
  for child in ast.walk(statement)
537
590
  )
@@ -692,7 +745,7 @@ def _review_dispatch_proven(branches: Iterable[ast.If], evidence: _ReviewEvidenc
692
745
  has_model_or_enum = False
693
746
  for node in branches:
694
747
  branch = _review_branch(node, evidence)
695
- if branch is None or (subject is not None and branch.subject != subject) or seen & branch.types:
748
+ if branch is None or (subject is not None and branch.subject != subject) or not seen.isdisjoint(branch.types):
696
749
  return None
697
750
  subject = branch.subject
698
751
  seen.update(branch.types)
@@ -1060,7 +1113,7 @@ def _terminal_prefix(
1060
1113
  if not isinstance(statement, ast.If) or statement.orelse or not body_terminates(statement.body):
1061
1114
  break
1062
1115
  branch = _type_branch(statement.test, imports, local_classes, unsafe_bindings)
1063
- if branch is None or (subject is not None and branch.subject != subject) or bool(seen & branch.types):
1116
+ if branch is None or (subject is not None and branch.subject != subject) or not seen.isdisjoint(branch.types):
1064
1117
  break
1065
1118
  run.append(statement)
1066
1119
  subject = branch.subject
@@ -1083,9 +1136,12 @@ def _dispatch(
1083
1136
  local_classes: frozenset[str],
1084
1137
  unsafe_bindings: frozenset[str],
1085
1138
  ) -> _Dispatch | None:
1086
- if len(branches) < _MIN_BRANCHES:
1139
+ return _parsed_dispatch([_type_branch(branch.test, imports, local_classes, unsafe_bindings) for branch in branches])
1140
+
1141
+
1142
+ def _parsed_dispatch(parsed: list[_TypeBranch | None]) -> _Dispatch | None:
1143
+ if len(parsed) < _MIN_BRANCHES:
1087
1144
  return None
1088
- parsed = [_type_branch(branch.test, imports, local_classes, unsafe_bindings) for branch in branches]
1089
1145
  if any(branch is None for branch in parsed):
1090
1146
  return None
1091
1147
  typed = [branch for branch in parsed if branch is not None]
@@ -1094,12 +1150,12 @@ def _dispatch(
1094
1150
  return None
1095
1151
  seen: set[str] = set()
1096
1152
  for branch in typed:
1097
- if seen & branch.types:
1153
+ if not seen.isdisjoint(branch.types):
1098
1154
  return None
1099
1155
  seen.update(branch.types)
1100
1156
  if len(seen) < _MIN_BRANCHES:
1101
1157
  return None
1102
- return _Dispatch(subjects.pop(), len(branches))
1158
+ return _Dispatch(subjects.pop(), len(parsed))
1103
1159
 
1104
1160
 
1105
1161
  def _two_arm_ast_projection_findings(
@@ -1257,7 +1313,7 @@ def _or_type_branch(
1257
1313
  return None
1258
1314
  combined_types: set[str] = set()
1259
1315
  for part in branches:
1260
- if combined_types & part.types:
1316
+ if not combined_types.isdisjoint(part.types):
1261
1317
  return None
1262
1318
  combined_types.update(part.types)
1263
1319
  return _TypeBranch(branches[0].subject, frozenset(combined_types))
@@ -1269,12 +1325,13 @@ def _type_references(
1269
1325
  local_classes: frozenset[str],
1270
1326
  unsafe_bindings: frozenset[str],
1271
1327
  ) -> frozenset[str] | None:
1272
- if isinstance(expression, ast.Tuple):
1273
- parts = expression.elts
1274
- elif isinstance(expression, ast.BinOp) and isinstance(expression.op, ast.BitOr):
1275
- parts = _flatten_union(expression)
1276
- else:
1277
- parts = [expression]
1328
+ match expression:
1329
+ case ast.Tuple(elts=parts):
1330
+ pass
1331
+ case ast.BinOp(op=ast.BitOr()):
1332
+ parts = _flatten_union(expression)
1333
+ case _:
1334
+ parts = [expression]
1278
1335
  references = [_type_reference(part, imports, local_classes, unsafe_bindings) for part in parts]
1279
1336
  if any(reference is None for reference in references):
1280
1337
  return None
@@ -523,7 +523,7 @@ def _is_excluded_path(path: Path) -> bool:
523
523
  lowered = {part.lower() for part in path.parts}
524
524
  path_tokens = {token for part in path.parts for token in part.lower().removesuffix(".py").split("_")}
525
525
  return (
526
- bool(lowered & _MIGRATION_PARTS)
526
+ not _MIGRATION_PARTS.isdisjoint(lowered)
527
527
  or bool((lowered | path_tokens) & _OPERATIONAL_PATH_PARTS)
528
528
  or _is_external_adapter_path(path)
529
529
  )
@@ -61,7 +61,7 @@ class PreferSetIsdisjoint(ProjectRule):
61
61
  limitations=(
62
62
  "Safe fixes require both operands to be comment-free set literals containing only native primitive constants. Dynamic/custom elements and nonliteral operands remain review-only.",
63
63
  "Explicit unshadowed built-in bool calls are predicates even in assignments and returns. Raw stored or returned intersections remain values, not predicates.",
64
- "Set receivers must come from a literal, comprehension, constructor, dominating local assignment, or an unchanged parameter's directly declared first-party set/frozenset field.",
64
+ "Set receivers and iterable operands may also come from a singly bound module-level frozenset constructor. Dynamic namespaces, global/nonlocal writes and local shadowing are excluded. Other receivers require a literal, comprehension, constructor, dominating local assignment, or an unchanged parameter's directly declared first-party set/frozenset field.",
65
65
  "Dictionary key-view receivers require a literal/comprehension/constructor or one unreassigned, dominating local binding. Custom mappings and unproven parameters are excluded.",
66
66
  "Declared fields rely on the annotated contract. Unknown or union field types, properties, explicit owner/field reassignment, branch-merged bindings, stored intersections, and generated files are excluded. Captured bindings in deferred lambda/generator bodies and starred intersection arguments are excluded. The other operand must be a known iterable.",
67
67
  "Nonliteral intersections remain suggestions because short-circuiting may make custom element equality or hashing side effects observable.",
@@ -131,11 +131,12 @@ class PreferSetIsdisjoint(ProjectRule):
131
131
  rebound_names = frozenset(
132
132
  node.id for node in context.nodes(ast.Name) if isinstance(node.ctx, (ast.Store, ast.Del))
133
133
  )
134
+ shadowed = _shadowed_builtins(tree, node_index=context.node_index)
135
+ module_sets = _module_frozensets(context, shadowed)
134
136
  fields = {
135
- node: declared_set_fields(node, project, context, rebound_names)
137
+ node: declared_set_fields(node, project, context, rebound_names) | (module_sets - _stored_names(node))
136
138
  for node in context.nodes(ast.FunctionDef, ast.AsyncFunctionDef)
137
139
  }
138
- shadowed = _shadowed_builtins(tree, node_index=context.node_index)
139
140
  scanner = _Scanner(path, context.source_lines, shadowed, fields, proven_dict_key_views(tree, shadowed))
140
141
  scanner.scan_body(tree.body, set())
141
142
  scanner.diagnostics.sort(key=lambda item: (item.line, item.col))
@@ -313,19 +314,45 @@ class _Scanner:
313
314
 
314
315
 
315
316
  def _is_intersection(node: ast.expr, exact: set[str], shadowed: frozenset[str], key_views: set[ast.Call]) -> bool:
316
- if isinstance(node, ast.BinOp) and isinstance(node.op, ast.BitAnd):
317
- return (_is_exact_set(node.left, exact, shadowed) or node.left in key_views) and _is_proven_iterable(
318
- node.right, exact, shadowed
319
- )
320
- return (
321
- isinstance(node, ast.Call)
322
- and isinstance(node.func, ast.Attribute)
323
- and node.func.attr == "intersection"
324
- and len(node.args) == 1
325
- and not isinstance(node.args[0], ast.Starred)
326
- and not node.keywords
327
- and _is_exact_set(node.func.value, exact, shadowed)
317
+ match node:
318
+ case ast.BinOp(left=left, op=ast.BitAnd(), right=right):
319
+ return (_is_exact_set(left, exact, shadowed) or left in key_views) and _is_proven_iterable(
320
+ right, exact, shadowed
321
+ )
322
+ case ast.Call(func=ast.Attribute(value=receiver, attr="intersection"), args=[argument], keywords=[]) if (
323
+ not isinstance(argument, ast.Starred)
324
+ ):
325
+ return _is_exact_set(receiver, exact, shadowed)
326
+ case _:
327
+ return False
328
+
329
+
330
+ def _module_frozensets(context: PythonFileContext, shadowed: frozenset[str]) -> set[str]:
331
+ inventory = context.binding_inventory
332
+ if context.dynamic_namespace or inventory.wildcard or "frozenset" in shadowed:
333
+ return set()
334
+ blocked = (
335
+ inventory.external_bindings
336
+ | inventory.mutated
337
+ | {name for scope, bindings in inventory.bindings.items() if scope is not context.tree for name in bindings}
328
338
  )
339
+ names: set[str] = set()
340
+ for name, bindings in inventory.bindings.get(context.tree, {}).items():
341
+ if len(bindings) != 1 or name in blocked:
342
+ continue
343
+ parent = inventory.parents.get(bindings[0])
344
+ if parent is None or inventory.parents.get(parent) is not context.tree:
345
+ continue
346
+ match parent:
347
+ case ast.Assign(targets=[ast.Name()], value=value) | ast.AnnAssign(target=ast.Name(), value=value):
348
+ match value:
349
+ case ast.Call(func=ast.Name(id="frozenset"), args=[] | [_], keywords=[]):
350
+ names.add(name)
351
+ case _:
352
+ pass
353
+ case _:
354
+ pass
355
+ return names
329
356
 
330
357
 
331
358
  def _is_builtin_bool_call(node: ast.expr, shadowed: frozenset[str]) -> bool:
@@ -82,22 +82,25 @@ def _scope_binding_counts(statements: list[ast.stmt]) -> dict[str, int]:
82
82
 
83
83
  def _node_binding_names(node: ast.AST) -> set[str]:
84
84
  names: set[str] = set()
85
- if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef, ast.ClassDef)):
86
- names.add(node.name)
87
- elif isinstance(node, (ast.Import, ast.ImportFrom)):
88
- names.update(alias.asname or alias.name.split(".")[0] for alias in node.names)
89
- elif isinstance(node, (ast.Assign, ast.Delete)):
90
- names.update(*(_bound_target_names(target) for target in node.targets))
91
- elif isinstance(node, (ast.AnnAssign, ast.AugAssign, ast.NamedExpr, ast.For, ast.AsyncFor)):
92
- names.update(_bound_target_names(node.target))
93
- elif isinstance(node, (ast.ExceptHandler, ast.MatchAs, ast.MatchStar)) and node.name is not None:
94
- names.add(node.name)
95
- elif isinstance(node, ast.MatchMapping) and node.rest is not None:
96
- names.add(node.rest)
97
- elif isinstance(node, (ast.With, ast.AsyncWith)):
98
- names.update(
99
- *(_bound_target_names(item.optional_vars) for item in node.items if item.optional_vars is not None)
100
- )
85
+ match node:
86
+ case ast.FunctionDef() | ast.AsyncFunctionDef() | ast.ClassDef():
87
+ names.add(node.name)
88
+ case ast.Import() | ast.ImportFrom():
89
+ names.update(alias.asname or alias.name.split(".")[0] for alias in node.names)
90
+ case ast.Assign() | ast.Delete():
91
+ names.update(*(_bound_target_names(target) for target in node.targets))
92
+ case ast.AnnAssign() | ast.AugAssign() | ast.NamedExpr() | ast.For() | ast.AsyncFor():
93
+ names.update(_bound_target_names(node.target))
94
+ case ast.ExceptHandler() | ast.MatchAs() | ast.MatchStar() if node.name is not None:
95
+ names.add(node.name)
96
+ case ast.MatchMapping() if node.rest is not None:
97
+ names.add(node.rest)
98
+ case ast.With() | ast.AsyncWith():
99
+ names.update(
100
+ *(_bound_target_names(item.optional_vars) for item in node.items if item.optional_vars is not None)
101
+ )
102
+ case _:
103
+ pass
101
104
  return names
102
105
 
103
106
 
@@ -137,25 +140,28 @@ def _is_first_party_production_module(module: str, path: Path, facts: FirstParty
137
140
 
138
141
 
139
142
  def _is_test_support_module_part(part: str) -> bool:
140
- return part in _TEST_MODULE_PARTS or bool(_TEST_SUPPORT_TOKENS & set(part.split("_")))
143
+ return part in _TEST_MODULE_PARTS or not _TEST_SUPPORT_TOKENS.isdisjoint(part.split("_"))
141
144
 
142
145
 
143
146
  def _is_membership_contract(name: str) -> bool:
144
- return bool(_MEMBERSHIP_TOKENS & set(name.lower().split("_")))
147
+ return not _MEMBERSHIP_TOKENS.isdisjoint(name.lower().split("_"))
145
148
 
146
149
 
147
150
  def _pytest_bindings(tree: ast.Module, binding_counts: dict[str, int]) -> _PytestBindings:
148
151
  modules: set[str] = set()
149
152
  marks: set[str] = set()
150
153
  for node in tree.body:
151
- if isinstance(node, ast.Import):
152
- _collect_pytest_modules(node, binding_counts, modules)
153
- elif isinstance(node, ast.ImportFrom) and node.module == "pytest":
154
- marks.update(
155
- local
156
- for alias in node.names
157
- if alias.name == "mark" and binding_counts.get(local := alias.asname or alias.name, 0) == 1
158
- )
154
+ match node:
155
+ case ast.Import():
156
+ _collect_pytest_modules(node, binding_counts, modules)
157
+ case ast.ImportFrom() if node.module == "pytest":
158
+ marks.update(
159
+ local
160
+ for alias in node.names
161
+ if alias.name == "mark" and binding_counts.get(local := alias.asname or alias.name, 0) == 1
162
+ )
163
+ case _:
164
+ pass
159
165
  return _PytestBindings(modules, marks)
160
166
 
161
167
 
@@ -316,7 +316,7 @@ _IMPORTED_VALUES = frozenset(
316
316
 
317
317
  def _is_service_role(node: ast.ClassDef, context: PythonFileContext) -> bool:
318
318
  parts = frozenset(context.path.parts)
319
- if parts & _NON_SERVICE_DIRECTORIES or node.name.endswith(_NON_SERVICE_SUFFIXES):
319
+ if not _NON_SERVICE_DIRECTORIES.isdisjoint(parts) or node.name.endswith(_NON_SERVICE_SUFFIXES):
320
320
  return False
321
321
  for keyword in node.keywords:
322
322
  if keyword.arg is None:
@@ -333,7 +333,7 @@ def _is_service_role(node: ast.ClassDef, context: PythonFileContext) -> bool:
333
333
  continue
334
334
  return False
335
335
  return (
336
- bool(parts & BOUNDARY_DIRECTORIES)
336
+ not BOUNDARY_DIRECTORIES.isdisjoint(parts)
337
337
  or node.name.endswith(BOUNDARY_SUFFIXES)
338
338
  or (
339
339
  any(marker in context.source for marker in ("run_in_executor", "to_thread", "httpx", "Callable"))
@@ -573,7 +573,7 @@ def _is_class_var(annotation: ast.expr, imports: ImportIndex, aliases: dict[str,
573
573
 
574
574
 
575
575
  def _is_ordinal_field_name(name: str) -> bool:
576
- return bool(_ORDINAL_NAME_TOKENS & set(name.lower().split("_")))
576
+ return not _ORDINAL_NAME_TOKENS.isdisjoint(name.lower().split("_"))
577
577
 
578
578
 
579
579
  def _describes_smaller_exception(description: str, minimum: int) -> bool:
@@ -321,7 +321,7 @@ def _bound_resource_update(
321
321
  if not isinstance(owner, ast.ClassDef):
322
322
  return False
323
323
  ancestors = _local_ancestors(owner, classes)
324
- if ancestors is None or _BULK_OPERATIONS & surface.uncertain:
324
+ if ancestors is None or not _BULK_OPERATIONS.isdisjoint(surface.uncertain):
325
325
  return False
326
326
  if any(_BULK_OPERATIONS & scope_bound_names(candidate.body) for candidate in ancestors):
327
327
  return False