sarj-python-lint 1.159.1__tar.gz → 1.161.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 (362) hide show
  1. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/PKG-INFO +3 -3
  2. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/pyproject.toml +2 -2
  3. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/__init__.py +0 -2
  4. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/__main__.py +0 -14
  5. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix.py +10 -22
  6. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -1
  7. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_docs.py +0 -1
  8. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_file_context.py +0 -2
  9. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_parallel.py +0 -13
  10. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_prepared_sources.py +0 -6
  11. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_ratchet_cli.py +0 -4
  12. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_rule_descriptors.py +64 -2
  13. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_secret_names.py +0 -4
  14. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_source.py +0 -1
  15. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/cast_access.py +0 -5
  16. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/interpreter_argv.py +1 -7
  17. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/ratchet.py +0 -1
  18. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rule_base.py +0 -3
  19. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rule_metadata.py +0 -1
  20. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -1
  21. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_ast_index.py +0 -10
  22. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_comments.py +0 -17
  23. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -10
  24. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -1
  25. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_docstrings.py +0 -10
  26. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_fastapi.py +0 -4
  27. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -1
  28. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_finite_literal_dispatch.py +0 -7
  29. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_first_party.py +0 -17
  30. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -2
  31. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_imports.py +0 -3
  32. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_local_source.py +0 -2
  33. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_logging.py +0 -3
  34. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -6
  35. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_paths.py +0 -7
  36. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_project_index.py +31 -41
  37. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -1
  38. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -1
  39. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_pytest.py +0 -3
  40. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_registry.py +14 -0
  41. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -1
  42. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -1
  43. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -1
  44. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_sdk_prerequisite.py +0 -1
  45. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_sql.py +0 -2
  46. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_store_writes.py +0 -2
  47. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_test_composition.py +0 -2
  48. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -2
  49. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -2
  50. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -10
  51. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +1 -1
  52. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -5
  53. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/excessive_commentary.py +57 -32
  54. sarj_python_lint-1.161.0/src/sarj_python_lint/rules/exit_stack_requires_lifecycle_owner.py +254 -0
  55. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -1
  56. sarj_python_lint-1.161.0/src/sarj_python_lint/rules/inline_single_use_local.py +458 -0
  57. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -19
  58. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +1 -16
  59. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -2
  60. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -1
  61. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -1
  62. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_comment_cruft.py +2 -26
  63. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +1 -1
  64. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +0 -1
  65. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -1
  66. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -2
  67. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -3
  68. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -4
  69. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -1
  70. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -1
  71. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -2
  72. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -1
  73. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +2 -2
  74. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -2
  75. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -1
  76. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -1
  77. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -1
  78. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +25 -6
  79. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -1
  80. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -2
  81. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -4
  82. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -1
  83. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -16
  84. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_restated_comment.py +1 -14
  85. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -2
  86. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +4 -8
  87. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -3
  88. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_test_comments.py +2 -2
  89. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -4
  90. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -10
  91. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -30
  92. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -1
  93. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -2
  94. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -1
  95. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -4
  96. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -23
  97. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -1
  98. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -13
  99. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -1
  100. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +259 -3
  101. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -9
  102. sarj_python_lint-1.161.0/src/sarj_python_lint/rules/prefer_named_literal_alias.py +122 -0
  103. sarj_python_lint-1.161.0/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +354 -0
  104. sarj_python_lint-1.161.0/src/sarj_python_lint/rules/prefer_next_over_search_loop.py +216 -0
  105. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -6
  106. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -4
  107. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -1
  108. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -4
  109. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_required_prerequisite.py +0 -2
  110. sarj_python_lint-1.161.0/src/sarj_python_lint/rules/prefer_result_over_nullable_exception.py +229 -0
  111. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -3
  112. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_str_enum.py +2 -30
  113. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -1
  114. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +23 -5
  115. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +80 -47
  116. sarj_python_lint-1.161.0/src/sarj_python_lint/rules/prefer_walrus_none_guard.py +122 -0
  117. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -2
  118. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -5
  119. sarj_python_lint-1.161.0/src/sarj_python_lint/rules/pytest_test_size_budget.py +218 -0
  120. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +1 -1
  121. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/redundant_docstring.py +1 -1
  122. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -6
  123. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -1
  124. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +73 -3
  125. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +0 -1
  126. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -15
  127. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -24
  128. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -3
  129. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -6
  130. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/stepdown.py +0 -10
  131. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -2
  132. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -1
  133. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -2
  134. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -2
  135. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -7
  136. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/suppression_policy.py +0 -1
  137. sarj_python_lint-1.159.1/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -182
  138. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/.gitignore +0 -0
  139. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/LICENSE +0 -0
  140. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/README.md +0 -0
  141. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_analysis_session.py +0 -0
  142. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
  143. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
  144. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
  145. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
  146. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
  147. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
  148. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
  149. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
  150. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
  151. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_security.py +0 -0
  152. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
  153. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
  154. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
  155. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_filesystem.py +0 -0
  156. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_fixes.py +0 -0
  157. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_python_target.py +0 -0
  158. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/_version.py +0 -0
  159. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/application_logging.py +0 -0
  160. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/autofix.py +0 -0
  161. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/benchmark.py +0 -0
  162. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/json_boundary.py +0 -0
  163. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/py.typed +0 -0
  164. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/__init__.py +0 -0
  165. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
  166. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
  167. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
  168. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
  169. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
  170. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
  171. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
  172. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
  173. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
  174. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
  175. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_domain_boundaries.py +0 -0
  176. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_exports.py +0 -0
  177. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
  178. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
  179. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_httpx_clients.py +0 -0
  180. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
  181. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
  182. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
  183. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
  184. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
  185. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
  186. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
  187. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
  188. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_nullable_outcome.py +0 -0
  189. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
  190. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
  191. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
  192. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
  193. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
  194. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
  195. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
  196. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_sdk_metadata_fields.py +0 -0
  197. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
  198. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
  199. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
  200. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
  201. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_suite_flow.py +0 -0
  202. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
  203. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
  204. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
  205. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
  206. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
  207. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
  208. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
  209. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
  210. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
  211. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
  212. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
  213. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
  214. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
  215. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
  216. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
  217. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
  218. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
  219. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
  220. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
  221. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
  222. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
  223. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
  224. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
  225. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
  226. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
  227. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
  228. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
  229. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
  230. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
  231. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
  232. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
  233. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
  234. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
  235. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
  236. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
  237. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
  238. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
  239. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
  240. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
  241. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
  242. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
  243. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
  244. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
  245. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
  246. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
  247. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
  248. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
  249. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
  250. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
  251. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
  252. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
  253. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
  254. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
  255. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
  256. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +0 -0
  257. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
  258. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
  259. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
  260. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_nonlocal_statement.py +0 -0
  261. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
  262. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
  263. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
  264. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
  265. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
  266. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
  267. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
  268. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
  269. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
  270. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
  271. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
  272. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
  273. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
  274. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
  275. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
  276. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
  277. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
  278. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
  279. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
  280. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
  281. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
  282. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
  283. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
  284. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
  285. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
  286. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
  287. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_value_error_forwarder.py +0 -0
  288. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
  289. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
  290. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
  291. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
  292. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
  293. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
  294. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
  295. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
  296. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
  297. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_defaultdict.py +0 -0
  298. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
  299. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
  300. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_exception_propagation.py +0 -0
  301. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
  302. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
  303. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
  304. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
  305. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
  306. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
  307. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
  308. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
  309. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
  310. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
  311. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
  312. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
  313. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
  314. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
  315. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
  316. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
  317. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_pydantic_field_bounds.py +0 -0
  318. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
  319. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
  320. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
  321. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
  322. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
  323. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
  324. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
  325. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
  326. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
  327. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_single_parametrize_contract.py +0 -0
  328. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
  329. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
  330. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
  331. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
  332. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
  333. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
  334. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
  335. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +0 -0
  336. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
  337. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
  338. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
  339. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
  340. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
  341. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
  342. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
  343. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
  344. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
  345. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
  346. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
  347. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
  348. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
  349. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
  350. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
  351. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
  352. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
  353. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
  354. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
  355. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
  356. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
  357. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
  358. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
  359. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
  360. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
  361. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
  362. {sarj_python_lint-1.159.1 → sarj_python_lint-1.161.0}/src/sarj_python_lint/sql_literals.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: sarj-python-lint
3
- Version: 1.159.1
3
+ Version: 1.161.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/
@@ -19,8 +19,8 @@ Classifier: Topic :: Software Development :: Quality Assurance
19
19
  Requires-Python: >=3.14
20
20
  Requires-Dist: packaging==26.3
21
21
  Requires-Dist: ruff>=0.17.2
22
- Requires-Dist: sarj-rule-contracts==0.8.2
23
- Requires-Dist: sarj-sql-lint==0.50.4
22
+ Requires-Dist: sarj-rule-contracts==0.8.3
23
+ Requires-Dist: sarj-sql-lint==0.50.5
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.159.1"
3
+ version = "1.161.0"
4
4
  description = "Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "sarj-ai" }]
@@ -15,7 +15,7 @@ classifiers = [
15
15
  "Programming Language :: Python :: 3.14",
16
16
  "Topic :: Software Development :: Quality Assurance",
17
17
  ]
18
- dependencies = ["sarj-rule-contracts==0.8.2", "sarj-sql-lint==0.50.4", "packaging==26.3", "ruff>=0.17.2", "sqlglot==30.31.0", "typer==0.27.3"]
18
+ dependencies = ["sarj-rule-contracts==0.8.3", "sarj-sql-lint==0.50.5", "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"
@@ -23,8 +23,6 @@ def __getattr__(name: str) -> object:
23
23
  globals( # sarj-noqa: SARJ557 -- Preserve the lazy public module namespace and historical star-import exports.
24
24
  )["AnalysisSession"] = _AnalysisSession
25
25
  if name == "__all__":
26
- # Star imports previously exposed the complete post-session public namespace.
27
- # Discover it on demand instead of freezing a narrower list of exports.
28
26
  return tuple(
29
27
  public
30
28
  for public in globals( # sarj-noqa: SARJ557 -- Preserve the lazy public module namespace and historical star-import exports.
@@ -73,9 +73,7 @@ SKIP_DIR_NAMES = frozenset(
73
73
  }
74
74
  )
75
75
 
76
- # Bound resource use, but never turn an unanalyzed selected file into success.
77
76
  _MAX_FILE_BYTES = 500_000
78
- # Spawned workers rebuild the project index; small remainders stay serial.
79
77
  FROZEN_HANDOFF_MIN_FILES = 64
80
78
 
81
79
 
@@ -162,7 +160,6 @@ def _check(
162
160
  resolutions = session.local_source.saturated_resolutions()
163
161
  if resolutions is None:
164
162
  continue
165
- # A refused handoff leaves this session untouched; finish serially.
166
163
  handoff = False
167
164
  frozen = _frozen_diagnostics(
168
165
  rules, dict(pending[index + 1 :]), session, resolutions, jobs=jobs, source_inputs=source_inputs
@@ -238,8 +235,6 @@ def _frozen_diagnostics(
238
235
  jobs: int,
239
236
  source_inputs: PreparedSourceInputs | None,
240
237
  ) -> list[Diagnostic] | None:
241
- # Serial order fills the resolution cache once. Afterwards each file sees the
242
- # same full cache whatever ran before it, so workers can check the rest.
243
238
  from sarj_python_lint._parallel import FrozenResolutions, check_parallel # ruff: ignore[import-outside-top-level] -- serial API users do not need multiprocessing.
244
239
 
245
240
  if session.project is not None and not session.project.value_origins_complete:
@@ -309,16 +304,10 @@ _DIAGNOSTIC_PRECEDENCE = MappingProxyType(
309
304
  "SARJ089": frozenset({"SARJ551"}),
310
305
  "SARJ092": frozenset({"SARJ086", "SARJ087", "SARJ420"}),
311
306
  "SARJ093": frozenset({"SARJ034"}),
312
- # Visible FastAPI operations have a route-aware contract diagnostic. Keep the annotation diagnostics when
313
- # SARJ094 is absent, including when a concrete response_model makes the route contract complete.
314
307
  "SARJ094": frozenset({"SARJ008", "SARJ447", "SARJ568"}),
315
308
  "SARJ095": frozenset({"SARJ468"}),
316
309
  "SARJ099": frozenset({"SARJ420"}),
317
- # A proven external or nested request boundary already requires schema validation at this field read. Retain
318
- # standalone shape advice when that more specific rule is unselected or locally suppressed.
319
310
  "SARJ411": frozenset({"SARJ521", "SARJ535"}),
320
- # Any-valued mappings are the stronger correctness failure. SARJ008 still owns every fixed dictionary return
321
- # when selected alone, while an all-rules run emits one actionable diagnostic for this overlap.
322
311
  "SARJ447": frozenset({"SARJ008"}),
323
312
  "SARJ450": frozenset({"SARJ521", "SARJ535"}),
324
313
  "SARJ521": frozenset({"SARJ535"}),
@@ -513,7 +502,6 @@ def _suppressed_diagnostics(
513
502
 
514
503
  def _suppressed_codes(codes: dict[str, set[Severity]]) -> set[tuple[str, Severity]]:
515
504
  suppressed = _precedence_suppressions(codes)
516
- # SARJ094 warning staging owns the overlapping return failure; its blocking twin would defeat that policy.
517
505
  if "SARJ094" in codes:
518
506
  suppressed.update(_route_contract_suppressions(codes))
519
507
  if _typed_docstring_warning_is_superseded(codes):
@@ -656,8 +644,6 @@ def _apply_baseline(
656
644
  path_key = normalize_path(d.path)
657
645
  key = (path_key, d.code)
658
646
  seen[key] += 1
659
- # The raw lookup preserves compatibility with baselines written before
660
- # repository-relative keys were introduced.
661
647
  allowance = max(
662
648
  baseline.get(path_key, {}).get(d.code, 0),
663
649
  baseline.get(str(d.path), {}).get(d.code, 0),
@@ -78,12 +78,11 @@ def _type_parameter_reference(node: ast.AST, context: PythonFileContext) -> bool
78
78
 
79
79
 
80
80
  _COMMENT_CODES = frozenset({"SARJ016", "SARJ089"})
81
- _WALRUS_CODES = frozenset({"SARJ081", "SARJ432"})
81
+ _WALRUS_CODES = frozenset({"SARJ081", "SARJ432", "SARJ589"})
82
82
  _JWT_POSITIONAL_PREFIX_ARGUMENTS = 3
83
83
  _STREAM_MIN_BODY_LENGTH = 3
84
84
  _CONSTANT_TRUE_DEPTH_LIMIT = 32
85
85
  _INERT_DEFAULT_NODE_LIMIT: Final = 128
86
- # Bound accepted revisions; each rule still owns its work and replacement size.
87
86
  _MAX_FIX_PASSES: Final = 256
88
87
  _TRIPLE_QUOTE_LENGTH: Final = 3
89
88
  _PURE_STRING_TRANSFORMS: Final[dict[str, str]] = {
@@ -207,8 +206,7 @@ def _at(node: _Located, diagnostic: Diagnostic) -> bool:
207
206
 
208
207
 
209
208
  def _comment_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
210
- token = source.comments.get(diagnostic.line)
211
- if token is None:
209
+ if (token := source.comments.get(diagnostic.line)) is None:
212
210
  return []
213
211
  body = token.string.removeprefix("#").strip()
214
212
  if (
@@ -422,8 +420,7 @@ def _regex_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
422
420
  continue
423
421
  if _SIMPLE_VALIDATION_PATTERN.fullmatch(pattern.value) is None or not _literal_without_newline(subject):
424
422
  continue
425
- replacement = _strict_end_literal(source.segment(pattern))
426
- if replacement is not None:
423
+ if (replacement := _strict_end_literal(source.segment(pattern))) is not None:
427
424
  return [source.replace(pattern, replacement)]
428
425
  return []
429
426
 
@@ -996,8 +993,7 @@ def _self_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
996
993
  if source.comments_between(annotation.lineno, _last_line(annotation)):
997
994
  continue
998
995
  shadowed = _type_parameter_names(method, source.context)
999
- alias = next((name for name in aliases if name not in shadowed), None)
1000
- if alias is not None:
996
+ if (alias := next((name for name in aliases if name not in shadowed), None)) is not None:
1001
997
  return [source.replace(annotation, alias)]
1002
998
  return []
1003
999
 
@@ -1010,8 +1006,7 @@ def _jwt_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
1010
1006
  qualified = source.context.imports.resolved_qualified_name(call.func)
1011
1007
  if qualified is None or not provenance.imported(call.func, qualified):
1012
1008
  continue
1013
- option = next((keyword for keyword in call.keywords if keyword.arg == "options"), None)
1014
- if option is None:
1009
+ if (option := next((keyword for keyword in call.keywords if keyword.arg == "options"), None)) is None:
1015
1010
  added = ast.keyword(
1016
1011
  arg="options",
1017
1012
  value=ast.Dict(
@@ -1046,14 +1041,12 @@ def _jwt_options(options: ast.expr) -> ast.Dict | None:
1046
1041
  names.append(key.value)
1047
1042
  if len(names) != len(set(names)):
1048
1043
  return None
1049
- required_index = next((index for index, name in enumerate(names) if name == "require"), None)
1050
- if required_index is None:
1044
+ if (required_index := next((index for index, name in enumerate(names) if name == "require"), None)) is None:
1051
1045
  return ast.Dict(
1052
1046
  keys=[*options.keys, ast.Constant(value="require")],
1053
1047
  values=[*options.values, ast.List(elts=[ast.Constant(value="exp")], ctx=ast.Load())],
1054
1048
  )
1055
- sequence = _jwt_required_sequence(options.values[required_index])
1056
- if sequence is None:
1049
+ if (sequence := _jwt_required_sequence(options.values[required_index])) is None:
1057
1050
  return None
1058
1051
  values = list(options.values)
1059
1052
  values[required_index] = sequence
@@ -1130,8 +1123,7 @@ def _printf_fix(source: _Source, diagnostic: Diagnostic) -> list[TextEdit]:
1130
1123
  continue
1131
1124
  if source.comments_between(message.lineno, _last_line(message)):
1132
1125
  continue
1133
- template = _printf_template(message.value, call.args[index + 1 :], source.context)
1134
- if template is not None:
1126
+ if (template := _printf_template(message.value, call.args[index + 1 :], source.context)) is not None:
1135
1127
  return [source.replace(message, repr(template))]
1136
1128
  return []
1137
1129
 
@@ -1223,8 +1215,7 @@ def _literal_collection_scope(
1223
1215
  return False
1224
1216
  if not isinstance(loop.iter, (ast.List, ast.Tuple)) or len(loop.body) != 1 or loop.orelse:
1225
1217
  return False
1226
- names = _literal_iteration_names(loop.target, loop.iter.elts)
1227
- if names is None:
1218
+ if (names := _literal_iteration_names(loop.target, loop.iter.elts)) is None:
1228
1219
  return False
1229
1220
  return _literal_collection_mutation(name, value, loop.body[0], names, source)
1230
1221
  case _:
@@ -1253,8 +1244,7 @@ def _literal_iteration_names(target: ast.expr, values: list[ast.expr]) -> frozen
1253
1244
  sequences.append(value)
1254
1245
  names: set[str] = set()
1255
1246
  for index, item in enumerate(target.elts):
1256
- bound = _literal_iteration_names(item, [sequence.elts[index] for sequence in sequences])
1257
- if bound is None:
1247
+ if (bound := _literal_iteration_names(item, [sequence.elts[index] for sequence in sequences])) is None:
1258
1248
  return None
1259
1249
  names.update(bound)
1260
1250
  return frozenset(names)
@@ -1517,7 +1507,6 @@ def fix_source(path: Path, source: str, *, rule_ids: Sequence[str] | None = None
1517
1507
  if any(character in source for character in "\v\f\x1c\x1d\x1e\x85\u2028\u2029") or "\r" in source.replace(
1518
1508
  "\r\n", ""
1519
1509
  ):
1520
- # These contract-backed builders use aligned physical-line buffers and token coordinates.
1521
1510
  rules = [rule for rule in rules if rule.code in {"SARJ531", "SARJ567"}]
1522
1511
  seen: set[bytes] = set()
1523
1512
  applied_codes: set[str] = set()
@@ -1530,7 +1519,6 @@ def fix_source(path: Path, source: str, *, rule_ids: Sequence[str] | None = None
1530
1519
  candidates = _candidate_edits(context, diagnostics)
1531
1520
  if not candidates:
1532
1521
  return current
1533
- # Batch independent candidates; overlapping candidates get fresh offsets on the next pass.
1534
1522
  selected_pass = _coherent_edits(candidates)
1535
1523
  updated = _apply_validated_edits(path, current, selected_pass.edits)
1536
1524
  if updated == current:
@@ -207,7 +207,6 @@ def _existing_factory(profile: _Profile) -> bool:
207
207
  factory = profile.factory
208
208
  match factory.decorator_list, factory.body:
209
209
  case [ast.Attribute(value=ast.Name(id="pytest"), attr="fixture")], [ast.Return(value=ast.Name(id=returned))]:
210
- # The canonical fixture decorator is the only permitted decoration.
211
210
  undecorated = ast.FunctionDef(
212
211
  name=factory.name,
213
212
  args=factory.args,
@@ -310,7 +310,6 @@ class DocstringFixes:
310
310
  else frozenset({"Returns", "Return", "Yields", "Yield"})
311
311
  )
312
312
  ranges = [(start, end) for name, start, end in section_ranges(value.value) if name in wanted]
313
- # Other section headings may carry independent contracts; only the detector-owned heading can be removed.
314
313
  if len(ranges) != 1:
315
314
  return []
316
315
  document = value.value
@@ -65,7 +65,6 @@ class PythonFileContext:
65
65
 
66
66
  @cached_property
67
67
  def _shared_module(self) -> SharedModule:
68
- # Registering the tree lets every `walk`/`nodes` call on it reuse this index.
69
68
  return share_module(self._valid_tree())
70
69
 
71
70
  @cached_property
@@ -157,7 +156,6 @@ class PythonFileContext:
157
156
  def resource_provenance(self) -> ResourceProvenance:
158
157
  from sarj_python_lint.rules._resource_provenance import ResourceProvenance # ruff: ignore[import-outside-top-level] -- file-owned binding facts are lazy.
159
158
 
160
- # The owner caches this analysis; borrowing prevents a reference cycle.
161
159
  return ResourceProvenance(self, borrow_context=True)
162
160
 
163
161
  @cached_property
@@ -34,8 +34,6 @@ class _WorkerState:
34
34
  needs_serial: bool = False
35
35
 
36
36
 
37
- # A full resolution cache never admits another key, so every later file
38
- # observes exactly these entries in any order. Module keys keep their own limit.
39
37
  @dataclass(frozen=True, slots=True)
40
38
  class FrozenResolutions:
41
39
  resolutions: tuple[tuple[_ResolutionKey, Path | None], ...]
@@ -68,7 +66,6 @@ def _initialize(
68
66
  )
69
67
  session = AnalysisSession() if source_inputs is None else AnalysisSession(source_inputs=source_inputs)
70
68
  if frozen is not None:
71
- # The parent's preparation lookups are already part of this full cache.
72
69
  session.local_source.restore_resolutions(frozen.resolutions)
73
70
  _state = _WorkerState(rules, session, resolutions=session.local_source.cache_keys().resolutions)
74
71
  try:
@@ -140,8 +137,6 @@ def check_parallel(
140
137
  source_inputs: PreparedSourceInputs | None = None,
141
138
  frozen: FrozenResolutions | None = None,
142
139
  ) -> list[Diagnostic] | None:
143
- # Workers share the complete immutable snapshot. Choose serial fallback before replay exhausts resolution quota;
144
- # frozen caches need only module-quota checks.
145
140
  if frozen is None and len(loaded) >= LOCAL_SOURCE_CACHE_LIMIT:
146
141
  return None
147
142
  source_snapshot = None if source_inputs is None else source_inputs.source_snapshot()
@@ -158,7 +153,6 @@ def check_parallel(
158
153
  initializer=_initialize,
159
154
  initargs=(
160
155
  rule_types,
161
- # A frozen handoff also carries the parent's memoized whole-project facts.
162
156
  project.source_snapshot(with_facts=frozen is not None) if project is not None else None,
163
157
  source_snapshot,
164
158
  frozen,
@@ -169,7 +163,6 @@ def check_parallel(
169
163
  modules: set[Path] = set() if frozen is None else set(frozen.modules)
170
164
  needs_serial = False
171
165
  try:
172
- # Keep workers busy while an earlier file delays ordered results.
173
166
  items = (
174
167
  (
175
168
  path,
@@ -182,14 +175,10 @@ def check_parallel(
182
175
  for path, source in loaded.items()
183
176
  )
184
177
  for result in pool.map(_check_file, items, chunksize=1, buffersize=workers * _BUFFERED_ITEMS_PER_WORKER):
185
- # Drain actual results after either replay signal so a later worker
186
- # failure cannot be disguised as a clean serial replay.
187
178
  if needs_serial:
188
179
  continue
189
180
  resolutions.update(result.resolutions)
190
181
  modules.update(result.modules)
191
- # A worker cannot hit either order-dependent limit when the whole
192
- # union stays strictly below it. At the boundary, discard all output.
193
182
  if (
194
183
  result.needs_serial
195
184
  or len(resolutions) >= LOCAL_SOURCE_CACHE_LIMIT
@@ -203,6 +192,4 @@ def check_parallel(
203
192
  diagnostics.extend(result.diagnostics)
204
193
  return None if needs_serial else diagnostics
205
194
  finally:
206
- # Bound queued work and reap before fallback/error return. Running file
207
- # checks finish normally; group cancellation belongs to the supervisor.
208
195
  pool.shutdown(wait=True, cancel_futures=True)
@@ -19,15 +19,12 @@ LOCAL_MODULE_MAX_BYTES = 256_000
19
19
  type ResolutionKey = tuple[Path, str | None, int]
20
20
 
21
21
 
22
- # The sealed worker needs an observation available only to the parent.
23
22
  class NeedsSerialSourceError(Exception): # sarj-noqa: SARJ542 -- Request serial source capture from the parent.
24
23
  pass
25
24
 
26
25
 
27
26
  @dataclass(frozen=True, slots=True)
28
27
  class CapturedSource:
29
- # Larger project units keep their text and actual byte size on the wire;
30
- # local analysis must decline them without a second full raw body.
31
28
  path: Path
32
29
  raw_size: int
33
30
  snapshot: SourceSnapshot | None = field(default=None, repr=False)
@@ -132,7 +129,6 @@ class PreparedSourceInputs:
132
129
  return None
133
130
  if self.sealed:
134
131
  raise NeedsSerialSourceError
135
- # Unknown/conflicting byte views retain the parent's legacy bounded read.
136
132
  with path.open("rb") as stream:
137
133
  raw = stream.read(LOCAL_MODULE_MAX_BYTES + 1)
138
134
  if len(raw) > LOCAL_MODULE_MAX_BYTES:
@@ -140,7 +136,6 @@ class PreparedSourceInputs:
140
136
  return SourceSnapshot(path, raw)
141
137
 
142
138
  def remember_module(self, path: Path, snapshot: SourceSnapshot) -> None:
143
- # Called only after the local decoder and parser have admitted a module.
144
139
  if not self.sealed and path not in self._conflicts:
145
140
  self.remember(path, CapturedSource.from_snapshot(snapshot))
146
141
 
@@ -153,7 +148,6 @@ class PreparedSourceInputs:
153
148
  return self._resolutions[key]
154
149
  if not self.resolves_unrecorded:
155
150
  raise NeedsSerialSourceError
156
- # The parent resolves an unrecorded key from the same filesystem; bytes stay sealed.
157
151
  return resolve()
158
152
 
159
153
  def record_resolution(self, key: ResolutionKey, result: Path | None) -> None:
@@ -102,8 +102,6 @@ def _run(args: _Options) -> int:
102
102
  return 2
103
103
 
104
104
  if args.update:
105
- # A first seed has nothing to raise: every ceiling is 0 only because no baseline exists yet, and refusing that
106
- # would make the tool unusable on the run that adopts it.
107
105
  return _update(
108
106
  measurement,
109
107
  baseline,
@@ -153,8 +151,6 @@ def _ruff_selector_aliases() -> dict[str, str]:
153
151
  code = raw_item.get("code")
154
152
  name = raw_item.get("name")
155
153
  if code is None and isinstance(name, str):
156
- # Ruff accepts the name as the stable selector until it allocates a code, so preserve that suppression
157
- # identity rather than rejecting a valid Ruff directive.
158
154
  canonical = name.lower()
159
155
  aliases[canonical] = canonical
160
156
  continue
@@ -1,4 +1,3 @@
1
- # Generated from the eager source registry; use maintain rules sync to update.
2
1
  from __future__ import annotations
3
2
 
4
3
  from sarj_rule_contracts import RuleId
@@ -8,6 +7,69 @@ from sarj_python_lint.rule_metadata import RuleDescriptor
8
7
 
9
8
  SCHEMA_VERSION = 1
10
9
  DESCRIPTORS: tuple[RuleDescriptor, ...] = (
10
+ RuleDescriptor(
11
+ rule_id=RuleId("inline-single-use-local"),
12
+ module="sarj_python_lint.rules.inline_single_use_local",
13
+ class_name="InlineSingleUseLocal",
14
+ code="SARJ592",
15
+ description="Inline a local that only feeds the immediately following statement.",
16
+ aliases=(),
17
+ enabled_by_default=True,
18
+ ),
19
+ RuleDescriptor(
20
+ rule_id=RuleId("prefer-result-over-nullable-exception"),
21
+ module="sarj_python_lint.rules.prefer_result_over_nullable_exception",
22
+ class_name="PreferResultOverNullableException",
23
+ code="SARJ591",
24
+ description="Return a tagged Success | Failure outcome instead of a nullable exception value.",
25
+ aliases=(),
26
+ enabled_by_default=True,
27
+ ),
28
+ RuleDescriptor(
29
+ rule_id=RuleId("prefer-next-over-search-loop"),
30
+ module="sarj_python_lint.rules.prefer_next_over_search_loop",
31
+ class_name="PreferNextOverSearchLoop",
32
+ code="SARJ590",
33
+ description="Replace a first-match search loop with next() over a generator expression.",
34
+ aliases=(),
35
+ enabled_by_default=True,
36
+ ),
37
+ RuleDescriptor(
38
+ rule_id=RuleId("prefer-walrus-none-guard"),
39
+ module="sarj_python_lint.rules.prefer_walrus_none_guard",
40
+ class_name="PreferWalrusNoneGuard",
41
+ code="SARJ589",
42
+ description="Bind a compact synchronous lookup in its immediately following terminal None guard.",
43
+ aliases=(),
44
+ enabled_by_default=True,
45
+ ),
46
+ RuleDescriptor(
47
+ rule_id=RuleId("exit-stack-requires-lifecycle-owner"),
48
+ module="sarj_python_lint.rules.exit_stack_requires_lifecycle_owner",
49
+ class_name="ExitStackRequiresLifecycleOwner",
50
+ code="SARJ588",
51
+ description="Own exit stacks only where resource lifetime is handed to the caller or the process root.",
52
+ aliases=(),
53
+ enabled_by_default=True,
54
+ ),
55
+ RuleDescriptor(
56
+ rule_id=RuleId("pytest-test-size-budget"),
57
+ module="sarj_python_lint.rules.pytest_test_size_budget",
58
+ class_name="PytestTestSizeBudget",
59
+ code="SARJ587",
60
+ description="Keep collected pytest tests within 15 statements, without branches or verifying loops.",
61
+ aliases=(),
62
+ enabled_by_default=True,
63
+ ),
64
+ RuleDescriptor(
65
+ rule_id=RuleId("prefer-named-literal-alias"),
66
+ module="sarj_python_lint.rules.prefer_named_literal_alias",
67
+ class_name="PreferNamedLiteralAlias",
68
+ code="SARJ586",
69
+ description="Name multi-member Literal annotations with a reusable type alias.",
70
+ aliases=(),
71
+ enabled_by_default=True,
72
+ ),
11
73
  RuleDescriptor(
12
74
  rule_id=RuleId("prefer-exception-propagation"),
13
75
  module="sarj_python_lint.rules.prefer_exception_propagation",
@@ -922,7 +984,7 @@ DESCRIPTORS: tuple[RuleDescriptor, ...] = (
922
984
  module="sarj_python_lint.rules.excessive_commentary",
923
985
  class_name="ExcessiveCommentary",
924
986
  code="SARJ434",
925
- description="Keep necessary comments within two lines and 40 words; delete redundant narration.",
987
+ description="Production code carries no ordinary comments; express intent in names, types and code.",
926
988
  aliases=(),
927
989
  enabled_by_default=True,
928
990
  ),
@@ -21,14 +21,12 @@ SECRET_WORDS = frozenset(
21
21
  "digest",
22
22
  "hash",
23
23
  "apikey",
24
- # Keep this vocabulary aligned with the TypeScript helper.
25
24
  "bearer",
26
25
  }
27
26
  )
28
27
 
29
28
  _SECRET_WORDS = SECRET_WORDS
30
29
 
31
- # A trailing word in this set makes the identifier metadata, not a credential.
32
30
  _INNOCUOUS_WORDS = frozenset(
33
31
  {
34
32
  "count",
@@ -56,10 +54,8 @@ _INNOCUOUS_WORDS = frozenset(
56
54
  }
57
55
  )
58
56
 
59
- # A leading predicate makes the identifier a boolean flag, not a credential.
60
57
  _FLAG_PREFIXES = frozenset({"is", "has", "was", "are", "can", "should"})
61
58
 
62
- # Split camel case, capitals, and digit runs within each underscore-delimited component.
63
59
  _CAMEL_RE = re.compile(r"[A-Z]+(?=[A-Z][a-z])|[A-Z]?[a-z]+|[A-Z]+|\d+")
64
60
  _SEGMENT_RE = re.compile(r"[^A-Za-z0-9]+")
65
61
 
@@ -34,5 +34,4 @@ def python_source_lines(source: str) -> list[str]:
34
34
 
35
35
 
36
36
  def symbol_prefilter_source(source: str) -> str:
37
- # Only necessary symbol gates may use this view; parse and locate original source.
38
37
  return source if source.isascii() else unicodedata.normalize("NFKC", source)
@@ -114,7 +114,6 @@ def _lexical_scopes(node: ast.AST, provenance: ResourceProvenance) -> Iterator[a
114
114
  scope = _evaluation_scope(node, provenance)
115
115
  immediate = True
116
116
  while scope is not None:
117
- # Ordinary nested code blocks do not capture class locals.
118
117
  if immediate or not isinstance(scope, ast.ClassDef):
119
118
  yield scope
120
119
  immediate = False
@@ -131,7 +130,6 @@ def _evaluation_scope(node: ast.AST, provenance: ResourceProvenance) -> ast.AST
131
130
  iterable = scope.generators[0].iter
132
131
  if iterable is not node and not provenance.contains(iterable, node):
133
132
  break
134
- # A comprehension's first iterable is evaluated in the enclosing scope.
135
133
  node, scope = scope, provenance.scope(scope)
136
134
  return scope
137
135
 
@@ -185,7 +183,6 @@ def _outside_parameter_scope(
185
183
  if isinstance(owner, ast.FunctionDef | ast.AsyncFunctionDef):
186
184
  outside.extend(owner.args.defaults)
187
185
  outside.extend(value for value in owner.args.kw_defaults if value is not None)
188
- # Defaults and decorators evaluate in the enclosing scope.
189
186
  return any(value is node or provenance.contains(value, node) for value in outside)
190
187
 
191
188
 
@@ -199,13 +196,11 @@ def _local_binding_overrides(name: str, node: ast.AST, owner: ast.AST, provenanc
199
196
 
200
197
 
201
198
  def _static_text(node: ast.expr, depth: int = 0) -> str | None:
202
- # Evaluate only bounded, side-effect-free string syntax, never runtime code.
203
199
  if depth > _MAX_LITERAL_DEPTH:
204
200
  return None
205
201
  if isinstance(node, ast.Constant) and isinstance(node.value, str):
206
202
  return node.value if len(node.value) <= _CAST_LENGTH else None
207
203
  if isinstance(node, ast.JoinedStr):
208
- # Parsing adjacent static f-strings folds them into one Constant.
209
204
  return _static_text(node.values[0], depth + 1) if len(node.values) == 1 else None
210
205
  if not isinstance(node, ast.BinOp) or not isinstance(node.op, ast.Add):
211
206
  return None
@@ -22,7 +22,6 @@ class InterpreterInvocation:
22
22
  kind: ProgramKind
23
23
  payload: str | None = None
24
24
  forwarded: tuple[str, ...] = ()
25
- # Runtime options do not change source-payload identity.
26
25
  execution_options: frozenset[str] = field(default=frozenset[str](), compare=False)
27
26
 
28
27
 
@@ -140,7 +139,6 @@ def unwrap_command(
140
139
  continue
141
140
  if command not in _WRAPPER_VALUES or (allowed_wrappers is not None and command not in allowed_wrappers):
142
141
  return current
143
- # dumb-init uses execvp; its child cannot be a shell builtin.
144
142
  allow_shell_builtins = allow_shell_builtins and command != "dumb-init"
145
143
  current = current[_value_wrapper_index(current, command) :]
146
144
  msg = "command wrapper nesting exceeds analysis bound"
@@ -177,7 +175,6 @@ def _value_wrapper_index(arguments: Sequence[str], command: str) -> int:
177
175
  if not argument.startswith("-") or argument == "-":
178
176
  break
179
177
  index += 2 if argument in _WRAPPER_VALUES[command] else 1
180
- # Timeout's positional duration precedes its executable.
181
178
  return index + int(command == "timeout")
182
179
 
183
180
 
@@ -210,7 +207,6 @@ def _env_wrapper_index(arguments: Sequence[str]) -> int:
210
207
  index += 1
211
208
  break
212
209
  index += _env_option_size(arguments, index)
213
- # After env assignments begin, option-looking words are executable operands, including after --.
214
210
  while index < len(arguments) and "=" in arguments[index]:
215
211
  if arguments[index].startswith("="):
216
212
  msg = "env assignment requires a nonempty variable name"
@@ -222,7 +218,7 @@ def _env_wrapper_index(arguments: Sequence[str]) -> int:
222
218
  def _env_option_size(arguments: Sequence[str], index: int) -> int:
223
219
  argument = arguments[index]
224
220
  if argument in {"--help", "--version"}:
225
- return len(arguments) - index # GNU env terminates without executing operands.
221
+ return len(arguments) - index
226
222
  if argument in {"-S", "--split-string"} or argument.startswith(("-S", "--split-string=")):
227
223
  msg = "env split-string has a separate unproven quoting grammar"
228
224
  raise UnprovableCommandError(msg)
@@ -344,7 +340,6 @@ def _ruby_option(arguments: Sequence[str], index: int) -> ParsedOption:
344
340
  if flag == "h":
345
341
  return ParsedOption(InterpreterInvocation("external"))
346
342
  if flag in "Fix":
347
- # These operands are attached only and consume the rest of this word.
348
343
  return ParsedOption()
349
344
  if flag == "e" or flag in _RUBY_VALUE_FLAGS:
350
345
  if cursor + 1 == len(argument) and _following_operand(arguments, index) is None:
@@ -483,7 +478,6 @@ def _shell_short_option(arguments: Sequence[str], index: int, values: frozenset[
483
478
  for flag in flags:
484
479
  if flag in values:
485
480
  operand = _following_operand(arguments, index + consumed - 1)
486
- # Bash shopt (-O) uses a separate versioned namespace; no native contract is proven here.
487
481
  if flag == "O" or operand not in _SHELL_NAMED_OPTIONS:
488
482
  return ParsedOption(InterpreterInvocation("unknown"))
489
483
  consumed += 1
@@ -204,7 +204,6 @@ def improvements(measurement: Measurement, baseline: Baseline) -> dict[str, Impr
204
204
 
205
205
 
206
206
  def seed(measurement: Measurement, baseline: Baseline) -> Baseline:
207
- # Recompute exceptions so a file loses grandfathering as soon as it reaches the ceiling.
208
207
  exceptions = {path: n for path, n in measurement.files.items() if n > baseline.per_file_ceiling}
209
208
  return Baseline(
210
209
  codes=dict(sorted(measurement.codes.items())),
@@ -33,12 +33,10 @@ if TYPE_CHECKING:
33
33
  from sarj_python_lint.rules._project_index import ProjectIndexSet
34
34
 
35
35
 
36
- # Each rule points directly to its executable examples.
37
36
  REPO_BLOB: Final = "https://github.com/sarj-ai/code-standards/blob/main"
38
37
  TESTS_DIR: Final = "packages/python/tests/rules"
39
38
 
40
39
 
41
- # Keep SARJ suppressions separate because Ruff removes unknown `noqa` codes.
42
40
  _SARJ_NOQA_RE = re.compile(
43
41
  r"#\s*sarj-noqa\b(?::\s*([A-Za-z0-9_, ]+))?",
44
42
  re.IGNORECASE,
@@ -96,7 +94,6 @@ class DiagnosticSubject(StrEnum):
96
94
 
97
95
  @dataclass(frozen=True, slots=True)
98
96
  class TextEdit:
99
- # Coordinates are one-based UTF-8 bytes after BOM removal; end positions are exclusive.
100
97
  start_line: int
101
98
  start_col: int
102
99
  end_line: int
@@ -131,7 +131,6 @@ def _authored_descriptor(rule_id: RuleId, rule: type[Rule]) -> RuleDescriptor:
131
131
 
132
132
  def render_authored_descriptors() -> str:
133
133
  lines = [
134
- "# Generated from the eager source registry; use maintain rules sync to update.",
135
134
  "from __future__ import annotations",
136
135
  "",
137
136
  "from sarj_rule_contracts import RuleId",
@@ -156,7 +156,6 @@ _BOUND_NAMES: WeakKeyDictionary[ast.stmt, frozenset[str]] = WeakKeyDictionary()
156
156
 
157
157
 
158
158
  def _bound_names(statement: ast.stmt) -> frozenset[str]:
159
- # Statements are immutable once parsed, and rules ask about the same scopes repeatedly.
160
159
  names = _BOUND_NAMES.get(statement)
161
160
  if names is None:
162
161
  collector = _ScopeBindings()