sarj-python-lint 1.139.0__tar.gz → 1.141.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/PKG-INFO +3 -3
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/pyproject.toml +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_inert.py +1 -1
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_prepared_sources.py +1 -1
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/interpreter_argv.py +1 -1
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +83 -4
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +7 -7
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +3 -3
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +44 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +3 -3
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +2 -2
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/.gitignore +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/LICENSE +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/README.md +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/__main__.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_security.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_file_context.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_parallel.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_python_target.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/application_logging.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/benchmark.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/cast_access.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/json_boundary.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rule_base.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_comments.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_httpx_clients.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_logging.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_nullable_outcome.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_registry.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_sql.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/sql_literals.py +0 -0
- {sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/suppression_policy.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sarj-python-lint
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.141.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.
|
|
23
|
-
Requires-Dist: sarj-sql-lint==0.
|
|
22
|
+
Requires-Dist: sarj-rule-contracts==0.8.1
|
|
23
|
+
Requires-Dist: sarj-sql-lint==0.48.0
|
|
24
24
|
Requires-Dist: sqlglot==30.24.0
|
|
25
25
|
Requires-Dist: typer==0.27.3
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sarj-python-lint"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.141.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.
|
|
18
|
+
dependencies = ["sarj-rule-contracts==0.8.1", "sarj-sql-lint==0.48.0", "packaging==26.3", "ruff>=0.17.2", "sqlglot==30.24.0", "typer==0.27.3"]
|
|
19
19
|
|
|
20
20
|
[project.scripts]
|
|
21
21
|
sarj-python-lint = "sarj_python_lint.__main__:main"
|
{sarj_python_lint-1.139.0 → sarj_python_lint-1.141.0}/src/sarj_python_lint/_prepared_sources.py
RENAMED
|
@@ -20,7 +20,7 @@ type ResolutionKey = tuple[Path, str | None, int]
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
# The sealed worker needs an observation available only to the parent.
|
|
23
|
-
class NeedsSerialSourceError(Exception):
|
|
23
|
+
class NeedsSerialSourceError(Exception): # sarj-noqa: SARJ542 -- Request serial source capture from the parent.
|
|
24
24
|
pass
|
|
25
25
|
|
|
26
26
|
|
|
@@ -22,6 +22,8 @@ _MAX_EXPANSION = 128
|
|
|
22
22
|
_MIN_VARIANTS = 2
|
|
23
23
|
_DISCRIMINATOR_SOURCES = frozenset({"pydantic", "pydantic.types"})
|
|
24
24
|
_FIELD_SOURCES = frozenset({"pydantic", "pydantic.fields"})
|
|
25
|
+
_CONFIG_SOURCES = frozenset({"pydantic", "pydantic.config"})
|
|
26
|
+
_PASSIVE_MODEL_CONFIG = frozenset({"frozen", "strict", "extra", "hide_input_in_errors"})
|
|
25
27
|
_NON_LITERAL_BUILTINS = frozenset(
|
|
26
28
|
{"str", "bytes", "int", "bool", "float", "complex", "object", "list", "dict", "tuple", "set", "frozenset", "type"}
|
|
27
29
|
)
|
|
@@ -439,7 +441,7 @@ class _DataUnions:
|
|
|
439
441
|
|
|
440
442
|
def _record(self, name: str) -> _Record | None:
|
|
441
443
|
if name not in self.records:
|
|
442
|
-
self.records[name] = _record(self.classes[name], self.context, self.provenance)
|
|
444
|
+
self.records[name] = _record(self.classes[name], self.context, self.provenance, self.classes)
|
|
443
445
|
return self.records[name]
|
|
444
446
|
|
|
445
447
|
def _has_discriminator(self, records: list[_Record], budget: _Budget) -> bool:
|
|
@@ -599,8 +601,13 @@ def _direct_initvar_field(field: ast.AnnAssign, context: PythonFileContext, prov
|
|
|
599
601
|
return False
|
|
600
602
|
|
|
601
603
|
|
|
602
|
-
def _record(
|
|
603
|
-
|
|
604
|
+
def _record(
|
|
605
|
+
node: ast.ClassDef,
|
|
606
|
+
context: PythonFileContext,
|
|
607
|
+
provenance: ResourceProvenance,
|
|
608
|
+
classes: dict[str, ast.ClassDef],
|
|
609
|
+
) -> _Record | None:
|
|
610
|
+
required = _record_required(node, context, provenance, classes)
|
|
604
611
|
if required is None:
|
|
605
612
|
return None
|
|
606
613
|
fields: dict[str, ast.AnnAssign] = {}
|
|
@@ -656,9 +663,16 @@ def _class_annotation_children(
|
|
|
656
663
|
return [(node.value, False), *((member, symbol != "Literal") for member in members)]
|
|
657
664
|
|
|
658
665
|
|
|
659
|
-
def _record_required(
|
|
666
|
+
def _record_required(
|
|
667
|
+
node: ast.ClassDef,
|
|
668
|
+
context: PythonFileContext,
|
|
669
|
+
provenance: ResourceProvenance,
|
|
670
|
+
classes: dict[str, ast.ClassDef],
|
|
671
|
+
) -> bool | None:
|
|
660
672
|
if record_parameters(node) is None:
|
|
661
673
|
return None
|
|
674
|
+
if _configuration_model_variant(node, context, provenance, classes):
|
|
675
|
+
return True
|
|
662
676
|
if any(not _untouched(base, provenance) for base in node.bases):
|
|
663
677
|
return None
|
|
664
678
|
decorators = [
|
|
@@ -687,6 +701,71 @@ def _record_required(node: ast.ClassDef, context: PythonFileContext, provenance:
|
|
|
687
701
|
return required
|
|
688
702
|
|
|
689
703
|
|
|
704
|
+
def _configuration_model_variant(
|
|
705
|
+
node: ast.ClassDef,
|
|
706
|
+
context: PythonFileContext,
|
|
707
|
+
provenance: ResourceProvenance,
|
|
708
|
+
classes: dict[str, ast.ClassDef],
|
|
709
|
+
) -> bool:
|
|
710
|
+
if len(node.bases) != 1 or node.keywords or node.decorator_list:
|
|
711
|
+
return False
|
|
712
|
+
return _configuration_model_base(node.bases[0], context, provenance, classes)
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
def _configuration_model_base(
|
|
716
|
+
base: ast.expr,
|
|
717
|
+
context: PythonFileContext,
|
|
718
|
+
provenance: ResourceProvenance,
|
|
719
|
+
classes: dict[str, ast.ClassDef],
|
|
720
|
+
) -> bool:
|
|
721
|
+
parent = classes.get(base.id) if isinstance(base, ast.Name) else None
|
|
722
|
+
if parent is None or parent.type_params or parent.decorator_list or parent.keywords or len(parent.bases) != 1:
|
|
723
|
+
return False
|
|
724
|
+
if (
|
|
725
|
+
_module_binding_escaped(parent.name, parent, provenance)
|
|
726
|
+
or not _untouched(parent.bases[0], provenance)
|
|
727
|
+
or not context.module_imports.resolves(parent.bases[0], sources=MODEL_SOURCES, symbol="BaseModel")
|
|
728
|
+
):
|
|
729
|
+
return False
|
|
730
|
+
assignments: list[ast.expr] = []
|
|
731
|
+
for member in parent.body:
|
|
732
|
+
if isinstance(member, ast.Pass) or (
|
|
733
|
+
isinstance(member, ast.Expr)
|
|
734
|
+
and isinstance(member.value, ast.Constant)
|
|
735
|
+
and isinstance(member.value.value, str)
|
|
736
|
+
):
|
|
737
|
+
continue
|
|
738
|
+
if not (
|
|
739
|
+
isinstance(member, ast.Assign)
|
|
740
|
+
and len(member.targets) == 1
|
|
741
|
+
and isinstance(member.targets[0], ast.Name)
|
|
742
|
+
and member.targets[0].id == "model_config"
|
|
743
|
+
):
|
|
744
|
+
return False
|
|
745
|
+
assignments.append(member.value)
|
|
746
|
+
if len(assignments) > 1:
|
|
747
|
+
return False
|
|
748
|
+
if not assignments:
|
|
749
|
+
return True
|
|
750
|
+
config = assignments[0]
|
|
751
|
+
return (
|
|
752
|
+
isinstance(config, ast.Call)
|
|
753
|
+
and _untouched(config.func, provenance)
|
|
754
|
+
and context.module_imports.resolves(config.func, sources=_CONFIG_SOURCES, symbol="ConfigDict")
|
|
755
|
+
and not config.args
|
|
756
|
+
and all(
|
|
757
|
+
keyword.arg in _PASSIVE_MODEL_CONFIG
|
|
758
|
+
and isinstance(keyword.value, ast.Constant)
|
|
759
|
+
and (
|
|
760
|
+
keyword.value.value in {"allow", "ignore", "forbid"}
|
|
761
|
+
if keyword.arg == "extra"
|
|
762
|
+
else type(keyword.value.value) is bool
|
|
763
|
+
)
|
|
764
|
+
for keyword in config.keywords
|
|
765
|
+
)
|
|
766
|
+
)
|
|
767
|
+
|
|
768
|
+
|
|
690
769
|
def _direct_dataclass(
|
|
691
770
|
node: ast.ClassDef, context: PythonFileContext, provenance: ResourceProvenance, decorators: list[ast.expr]
|
|
692
771
|
) -> bool | None:
|
|
@@ -32,7 +32,7 @@ class AsyncExecutorShutdown(Rule):
|
|
|
32
32
|
id = "async-executor-shutdown"
|
|
33
33
|
code = "SARJ540"
|
|
34
34
|
documentation: ClassVar[RuleDocumentation | None] = RuleDocumentation(
|
|
35
|
-
default_level=Severity.
|
|
35
|
+
default_level=Severity.ERROR,
|
|
36
36
|
summary="Run waiting executor shutdown outside the async event-loop thread.",
|
|
37
37
|
rationale="Executor.shutdown waits for workers by default; invoking it directly in an async function can block the event loop and delay unrelated service work or cancellation.",
|
|
38
38
|
remediation="Await asyncio.to_thread(executor.shutdown, wait=True), or use the application's explicit nonblocking shutdown policy after arranging worker ownership and completion.",
|
|
@@ -94,7 +94,7 @@ class AsyncExecutorShutdown(Rule):
|
|
|
94
94
|
line=call.lineno,
|
|
95
95
|
col=call.col_offset + 1,
|
|
96
96
|
code=self.code,
|
|
97
|
-
severity=Severity.
|
|
97
|
+
severity=Severity.ERROR,
|
|
98
98
|
message="waiting Executor.shutdown runs on the event-loop thread; await an offloaded shutdown after arranging worker ownership",
|
|
99
99
|
)
|
|
100
100
|
)
|
|
@@ -40,7 +40,7 @@ class AsyncSubprocessCancellationCleanup(Rule):
|
|
|
40
40
|
id: str = "async-subprocess-cancellation-cleanup"
|
|
41
41
|
code: str = "SARJ537"
|
|
42
42
|
documentation: ClassVar[RuleDocumentation | None] = RuleDocumentation(
|
|
43
|
-
default_level=Severity.
|
|
43
|
+
default_level=Severity.ERROR,
|
|
44
44
|
summary="Settle locally owned asyncio subprocesses when their caller is cancelled.",
|
|
45
45
|
rationale="Cancelling an asyncio process wait does not terminate its child; a locally owned subprocess can keep running with unsettled pipes and exit status.",
|
|
46
46
|
remediation="Arrange cancellation cleanup that settles the owned child and preserves caller cancellation under the application's termination and pipe-handling policy.",
|
|
@@ -108,7 +108,7 @@ def _async_process_diagnostics(context: PythonFileContext, code: str) -> list[Di
|
|
|
108
108
|
line=call.lineno,
|
|
109
109
|
col=call.col_offset + 1,
|
|
110
110
|
code=code,
|
|
111
|
-
severity=Severity.
|
|
111
|
+
severity=Severity.ERROR,
|
|
112
112
|
message="cancelling this unguarded wait can leave its locally owned subprocess unsettled; add cancellation cleanup that settles the child and preserves caller cancellation",
|
|
113
113
|
)
|
|
114
114
|
)
|
|
@@ -31,7 +31,7 @@ class CancelOwnedTaskWithoutJoin(Rule):
|
|
|
31
31
|
id = "cancel-owned-task-without-join"
|
|
32
32
|
code = "SARJ536"
|
|
33
33
|
documentation: ClassVar[RuleDocumentation | None] = RuleDocumentation(
|
|
34
|
-
default_level=Severity.
|
|
34
|
+
default_level=Severity.ERROR,
|
|
35
35
|
summary="Join a cancelled locally owned task before releasing its lifecycle.",
|
|
36
36
|
rationale="Task.cancel requests cancellation without waiting for the child to finish; an async lifespan can release resources while its child still runs cancellation cleanup.",
|
|
37
37
|
remediation="Await the owned task or an appropriate gather/TaskGroup settlement before releasing resources. Preserve cancellation of the owner and choose an explicit policy for unexpected child errors and repeated cancellation.",
|
|
@@ -90,7 +90,7 @@ class CancelOwnedTaskWithoutJoin(Rule):
|
|
|
90
90
|
line=call.lineno,
|
|
91
91
|
col=call.col_offset + 1,
|
|
92
92
|
code=self.code,
|
|
93
|
-
severity=Severity.
|
|
93
|
+
severity=Severity.ERROR,
|
|
94
94
|
message="cancel() does not settle this lifespan-owned task; join its completion before releasing the lifecycle's resources",
|
|
95
95
|
)
|
|
96
96
|
)
|
|
@@ -72,7 +72,7 @@ class FailedProbeZeroThreshold(Rule):
|
|
|
72
72
|
id = "failed-probe-zero-threshold"
|
|
73
73
|
code = "SARJ538"
|
|
74
74
|
documentation = RuleDocumentation(
|
|
75
|
-
default_level=Severity.
|
|
75
|
+
default_level=Severity.ERROR,
|
|
76
76
|
summary="Do not let a failed subprocess count probe meet its threshold through a zero fallback.",
|
|
77
77
|
rationale="A failed observation is different from an observed count of zero. Coalescing the error sentinel can make a recovery comparison succeed when its baseline is zero.",
|
|
78
78
|
remediation="Check the probe result for None before comparing it, or make an intentional zero-baseline skip policy explicit.",
|
|
@@ -131,7 +131,7 @@ class FailedProbeZeroThreshold(Rule):
|
|
|
131
131
|
line=fallback.lineno,
|
|
132
132
|
col=fallback.col_offset + 1,
|
|
133
133
|
code=self.code,
|
|
134
|
-
severity=Severity.
|
|
134
|
+
severity=Severity.ERROR,
|
|
135
135
|
message="this subprocess probe's error-derived None becomes zero and can satisfy the recovery comparison; reject None explicitly or declare the zero-baseline skip policy",
|
|
136
136
|
)
|
|
137
137
|
)
|
|
@@ -65,7 +65,7 @@ class NanHiddenByBuiltinMin(Rule):
|
|
|
65
65
|
id = "nan-hidden-by-builtin-min"
|
|
66
66
|
code = "SARJ539"
|
|
67
67
|
documentation = RuleDocumentation(
|
|
68
|
-
default_level=Severity.
|
|
68
|
+
default_level=Severity.ERROR,
|
|
69
69
|
summary="Validate floating candidates before a built-in min/max can hide a NaN.",
|
|
70
70
|
rationale="Python's min/max compares operands in order. A later NaN can be ignored, leaving a finite result that passes a finiteness check even though an original candidate was invalid.",
|
|
71
71
|
remediation="Check every floating candidate before reducing it, or use a deliberately NaN-propagating reduction and validate its result.",
|
|
@@ -129,7 +129,7 @@ class NanHiddenByBuiltinMin(Rule):
|
|
|
129
129
|
line=reduced.lineno,
|
|
130
130
|
col=reduced.col_offset + 1,
|
|
131
131
|
code=self.code,
|
|
132
|
-
severity=Severity.
|
|
132
|
+
severity=Severity.ERROR,
|
|
133
133
|
message="a later floating NaN can be hidden by this built-in min/max before its result is checked for finiteness; validate every candidate first",
|
|
134
134
|
)
|
|
135
135
|
return [findings[key] for key in sorted(findings)]
|
|
@@ -89,7 +89,7 @@ class NoCustomControlFlowException(Rule):
|
|
|
89
89
|
id = "no-custom-control-flow-exception"
|
|
90
90
|
code = "SARJ542"
|
|
91
91
|
documentation = RuleDocumentation(
|
|
92
|
-
default_level=Severity.
|
|
92
|
+
default_level=Severity.ERROR,
|
|
93
93
|
summary="Return coded typed outcomes for expected domain failures instead of exception-only contracts.",
|
|
94
94
|
rationale=(
|
|
95
95
|
"A marker, fixed-message or payload-bearing custom exception creates another control-flow type without declaring failure data in "
|
|
@@ -112,14 +112,14 @@ class NoCustomControlFlowException(Rule):
|
|
|
112
112
|
category=RuleCategory.ARCHITECTURE,
|
|
113
113
|
autofix=AutofixPolicy.NONE,
|
|
114
114
|
limitations=(
|
|
115
|
-
"This review
|
|
115
|
+
"This blocking review policy checks stable module-level Exception/ValueError markers and fixed-message subclasses with a source-visible direct raise. It also reviews typed payload constructors limited to assignments and super().__init__ argument formatting, when raised by a simple rejection guard in an explicitly annotated function. Constructor parameters must be typed and nonvariadic, with at least one used; calls must supply their required arguments. Base ancestry must be source-proven; an opaque external base is not inferred from its name or message.",
|
|
116
116
|
"Payload guards can prepare one literal or simple formatted message before raising. Guards under try/except/finally, with, loops and match are excluded, as are generators, decorated or special-method functions, quoted return annotations and import-proven NoReturn/Never functions, including simple nongeneric module aliases. Constructor calls, arbitrary computations, extra methods or behavior, decorated/generic constructors and unknown argument expansion abstain. Source-visible formatting is not a purity proof and never authorizes an automatic rewrite.",
|
|
117
117
|
"Direct module-level from-imports, including renamed and relative imports, are followed to stable first-party exception definitions using the existing bounded local-source resolver. An imported raise must be a simple guard in an explicitly annotated ordinary function, with source-proven Exception/ValueError ancestry and compatible constructor arguments. Import-proven typing.final/typing_extensions.final class decorators preserve this proof. The rule reports once per function and originating exception, at an unsuppressed raise. Source-definition suppressions are also respected.",
|
|
118
|
-
"Imported discovery does not follow re-exports, module-attribute raises, local imports, aliases, unknown or inherited constructors, custom allocation or inherited subclass hooks (including assigned bindings), external source, generated/test/vendor definitions, registrations or namespace mutations. Source ancestry is bounded to eight classes and imported definition modules to 32 per file. A guarded raise is evidence to review, not proof of business expectedness. Preserve genuine infrastructure failure contracts even when a
|
|
118
|
+
"Imported discovery does not follow re-exports, module-attribute raises, local imports, aliases, unknown or inherited constructors, custom allocation or inherited subclass hooks (including assigned bindings), external source, generated/test/vendor definitions, registrations or namespace mutations. Source ancestry is bounded to eight classes and imported definition modules to 32 per file. A guarded raise is evidence to review, not proof of business expectedness. Preserve genuine infrastructure failure contracts even when a finding matches. Never convert a transaction rejection to a return without reviewing rollback, cleanup, logging, retries and side-effect order. Optional absence and independent outcomes remain valid.",
|
|
119
119
|
"Raising a ValueError-derived marker from an import-proven Pydantic field/model validator or legacy validator preserves that rejection protocol. Direct synchronous module callbacks used only as Annotated validator metadata on plain direct BaseModel fields, and stable nonescaping direct nested helpers, also preserve rejection; lexical helper ownership is bounded to 32 levels. Unknown external bases and visible mutations or escapes of the class or a local base to registrations, callbacks or other value consumers abstain; HTTPException and other framework-required exception types remain valid.",
|
|
120
120
|
"Expectedness is not inferred from a name, message or prefix. Genuine exceptional markers may also match and require review rather than conversion. Cross-module callers and registrations, indirect raises, dynamically mutated namespaces and class aliases are not inferred. Only simple stable module assignment aliases and nongeneric annotation aliases consumed directly by model fields are followed. Explicit string annotations, custom model hooks, async/generator callbacks, escaped helpers and broader call graphs are not followed. Generic lexical resolution can miss a module marker shadowed only in a method's class namespace.",
|
|
121
|
-
"Tests, generated and vendor code are excluded. No automatic rewrite is safe: a result return must preserve failure handling and transaction/resource unwinding. SARJ435 separately reviews joined-string reason identities.",
|
|
122
|
-
"The examples illustrate an existing project Result abstraction; do not introduce another Result library or require these class/tag names. SARJ510 owns explicit data discriminators and SARJ548 reviews discarded tagged outcomes; the native type checker owns exhaustive handling. A tag alone cannot guarantee JSON support for arbitrary T/E: qualify the concrete payloads with their codec. Keep established wire discriminators, legitimate absence and independent outcomes. This
|
|
121
|
+
"Tests, generated and vendor code are excluded. Resolve the blocking review with a typed outcome or an exact-code suppression explaining the required exception protocol. No automatic rewrite is safe: a result return must preserve failure handling and transaction/resource unwinding. SARJ435 separately reviews joined-string reason identities.",
|
|
122
|
+
"The examples illustrate an existing project Result abstraction; do not introduce another Result library or require these class/tag names. SARJ510 owns explicit data discriminators and SARJ548 reviews discarded tagged outcomes; the native type checker owns exhaustive handling. A tag alone cannot guarantee JSON support for arbitrary T/E: qualify the concrete payloads with their codec. Keep established wire discriminators, legitimate absence and independent outcomes. This policy does not mechanically ban scalar unions or require every function to return Result.",
|
|
123
123
|
),
|
|
124
124
|
examples=(
|
|
125
125
|
RuleExample(
|
|
@@ -412,7 +412,7 @@ class NoCustomControlFlowException(Rule):
|
|
|
412
412
|
"If this is an expected domain outcome, return a typed tagged result with a stable error code and the required context, and "
|
|
413
413
|
"format the message at the consumer; preserve exceptional failures, validation, framework contracts "
|
|
414
414
|
"and transaction/resource unwinding.",
|
|
415
|
-
severity=Severity.
|
|
415
|
+
severity=Severity.ERROR,
|
|
416
416
|
)
|
|
417
417
|
)
|
|
418
418
|
for raised, marker in _imported_raises(context, contexts):
|
|
@@ -428,7 +428,7 @@ class NoCustomControlFlowException(Rule):
|
|
|
428
428
|
"If this is an expected domain outcome, return a typed tagged success/failure union with a stable error code "
|
|
429
429
|
"and the required context; update callers to handle, propagate or translate each variant and format messages "
|
|
430
430
|
"at the consumer. Preserve public adapters, cancellation and transaction/resource unwinding.",
|
|
431
|
-
severity=Severity.
|
|
431
|
+
severity=Severity.ERROR,
|
|
432
432
|
)
|
|
433
433
|
)
|
|
434
434
|
return findings
|
|
@@ -46,7 +46,7 @@ class NoDefaultedEnvironmentSetting(Rule):
|
|
|
46
46
|
id = "no-defaulted-environment-setting"
|
|
47
47
|
code = "SARJ497"
|
|
48
48
|
documentation = RuleDocumentation(
|
|
49
|
-
default_level=Severity.
|
|
49
|
+
default_level=Severity.ERROR,
|
|
50
50
|
summary="A settings field that names the deployment environment must not declare a default.",
|
|
51
51
|
rationale=(
|
|
52
52
|
"A defaulted environment setting lets a deployment that forgot the variable start as the default "
|
|
@@ -157,7 +157,7 @@ class NoDefaultedEnvironmentSetting(Rule):
|
|
|
157
157
|
self.code,
|
|
158
158
|
"This environment setting has a default, so a deployment missing the variable starts as that "
|
|
159
159
|
"environment. Remove the default so startup fails instead.",
|
|
160
|
-
severity=Severity.
|
|
160
|
+
severity=Severity.ERROR,
|
|
161
161
|
)
|
|
162
162
|
for field in model.body
|
|
163
163
|
if isinstance(field, ast.AnnAssign) and _is_defaulted_environment(field, facts)
|
|
@@ -82,7 +82,7 @@ class NoDiscardedTaggedOutcome(ProjectRule):
|
|
|
82
82
|
id = "no-discarded-tagged-outcome"
|
|
83
83
|
code = "SARJ548"
|
|
84
84
|
documentation = RuleDocumentation(
|
|
85
|
-
default_level=Severity.
|
|
85
|
+
default_level=Severity.ERROR,
|
|
86
86
|
summary="Handle a returned tagged outcome instead of discarding it.",
|
|
87
87
|
rationale=(
|
|
88
88
|
"A tagged return union makes possible outcomes visible in the type contract. Discarding the value "
|
|
@@ -96,7 +96,7 @@ class NoDiscardedTaggedOutcome(ProjectRule):
|
|
|
96
96
|
category=RuleCategory.CORRECTNESS,
|
|
97
97
|
autofix=AutofixPolicy.NONE,
|
|
98
98
|
limitations=(
|
|
99
|
-
"
|
|
99
|
+
"Blocking review policy for standalone synchronous calls and directly awaited async calls to stable source-visible module functions. The return must resolve to at least two direct Pydantic, dataclass or required TypedDict variants sharing a string or Boolean Literal discriminator with disjoint values. No name such as Result or Error establishes proof.",
|
|
100
100
|
"Module-local and prepared-project absolute imports, quoted bare aliases and PEP 604 returns, unquoted typing.Union and Annotated, and bounded type aliases are supported. Simple same-module callable assignment aliases are followed only through unique, earlier bindings with no escapes or mutations. Ordinary PEP 695 function parameters and explicitly specialized records/aliases are supported when tags and variant identities are independent of payload parameters. Parameter-dependent variants/tags, bounded/defaulted/variadic parameters, incorrect arity, quoted typing-wrapper combinations, unknown receivers, decorated functions, re-exports, optional/scalar branches, inheritance, dynamic namespaces, rebound or escaped callable identities, generator functions and unsupported annotations abstain.",
|
|
101
101
|
"Named assignments, returned, passed or conditionally consumed results are preserved. A direct assignment to the single underscore target is an explicit discard and is reviewed. An unawaited async call belongs to coroutine checks. Direct class-body execution, generated sources and opaque providers are excluded. Assignment aliases of imported functions, callbacks, factories and forward alias declarations remain outside the proof. This rule identifies discarding; it does not prove that an assignment handles every variant or infer expected failure from a record name.",
|
|
102
102
|
"String or Boolean Literal tags must be direct instance fields on every variant and retain their original class-scope binding. Existing Boolean wire discriminators remain valid; the analyzer does not rename tags or impose Success/Error class names. Quoted field tags remain outside the proof; quoted module return annotations retain their source declaration anchor. Dynamic fields, optional TypedDict fields, other tag types, computed Literal values and multi-field discriminator hierarchies are not inferred. A discriminator does not prove JSON serialization for arbitrary payloads. No automatic rewrite changes call behavior or error handling.",
|
|
@@ -194,7 +194,7 @@ class NoDiscardedTaggedOutcome(ProjectRule):
|
|
|
194
194
|
statement.col_offset + 1,
|
|
195
195
|
self.code,
|
|
196
196
|
"This call returns a tagged outcome that is discarded; use or forward it and handle its variants explicitly.",
|
|
197
|
-
severity=Severity.
|
|
197
|
+
severity=Severity.ERROR,
|
|
198
198
|
)
|
|
199
199
|
for statement in context.nodes(ast.Expr, ast.Assign, ast.AnnAssign)
|
|
200
200
|
if _direct_discard(statement)
|
|
@@ -54,7 +54,7 @@ class NoDuplicateFieldValidatorBody(Rule):
|
|
|
54
54
|
id = "no-duplicate-field-validator-body"
|
|
55
55
|
code = "SARJ496"
|
|
56
56
|
documentation = RuleDocumentation(
|
|
57
|
-
default_level=Severity.
|
|
57
|
+
default_level=Severity.ERROR,
|
|
58
58
|
summary="Pydantic field validators in one model repeat the same body.",
|
|
59
59
|
rationale=(
|
|
60
60
|
"Two field validators with the same mode and the same body are one validation rule written twice; "
|
|
@@ -119,7 +119,7 @@ class NoDuplicateFieldValidatorBody(Rule):
|
|
|
119
119
|
self.code,
|
|
120
120
|
f"Field validator `{method.name}` repeats the body of `{first}`. List both fields in one "
|
|
121
121
|
"field_validator and branch on info.field_name where they differ.",
|
|
122
|
-
severity=Severity.
|
|
122
|
+
severity=Severity.ERROR,
|
|
123
123
|
)
|
|
124
124
|
)
|
|
125
125
|
return diagnostics
|
|
@@ -43,7 +43,7 @@ class NoExceptionTextIn500Detail(Rule):
|
|
|
43
43
|
id = "no-exception-text-in-500-detail"
|
|
44
44
|
code = "SARJ505"
|
|
45
45
|
documentation = RuleDocumentation(
|
|
46
|
-
default_level=Severity.
|
|
46
|
+
default_level=Severity.ERROR,
|
|
47
47
|
summary="HTTP 500 exception details must not carry exception text or tracebacks.",
|
|
48
48
|
rationale=(
|
|
49
49
|
"An unexpected exception's text can contain SQL, file paths, hostnames, provider responses or personal "
|
|
@@ -111,7 +111,7 @@ class NoExceptionTextIn500Detail(Rule):
|
|
|
111
111
|
return []
|
|
112
112
|
imports = context.imports
|
|
113
113
|
return [
|
|
114
|
-
Diagnostic(context.path, node.lineno, node.col_offset + 1, self.code, _MESSAGE, severity=Severity.
|
|
114
|
+
Diagnostic(context.path, node.lineno, node.col_offset + 1, self.code, _MESSAGE, severity=Severity.ERROR)
|
|
115
115
|
for node in context.nodes(ast.Call)
|
|
116
116
|
if imports.resolved_symbol(node.func, sources=_HTTP_EXCEPTION_MODULES) == "HTTPException"
|
|
117
117
|
and http_status(_argument(node, 0, "status_code")) == _SERVER_ERROR
|
|
@@ -95,7 +95,7 @@ class NoRedundantLocalAlias(Rule):
|
|
|
95
95
|
id = "no-redundant-local-alias"
|
|
96
96
|
code = "SARJ531"
|
|
97
97
|
documentation: ClassVar[RuleDocumentation | None] = RuleDocumentation(
|
|
98
|
-
default_level=Severity.
|
|
98
|
+
default_level=Severity.ERROR,
|
|
99
99
|
summary="Remove a local alias used only for its matching keyword argument.",
|
|
100
100
|
rationale="An extra local binding makes readers trace two names for one value when the keyword already communicates its role.",
|
|
101
101
|
remediation="Apply the safe fix where offered; otherwise pass the original local to the matching keyword and remove the unannotated alias after review.",
|
|
@@ -256,7 +256,7 @@ class NoRedundantLocalAlias(Rule):
|
|
|
256
256
|
col=target.col_offset + 1,
|
|
257
257
|
code=self.code,
|
|
258
258
|
message=f"Local `{target_spelling}` only forwards `{source_spelling}` to `{target_spelling}=`; pass `{source_spelling}` directly and remove the alias.",
|
|
259
|
-
severity=Severity.
|
|
259
|
+
severity=Severity.ERROR,
|
|
260
260
|
fixes=fixes.for_alias(assignment, use),
|
|
261
261
|
)
|
|
262
262
|
)
|
|
@@ -50,7 +50,7 @@ class NoRedundantSqlAlias(Rule):
|
|
|
50
50
|
id = "no-redundant-sql-alias"
|
|
51
51
|
code = "SARJ543"
|
|
52
52
|
documentation = RuleDocumentation(
|
|
53
|
-
default_level=Severity.
|
|
53
|
+
default_level=Severity.ERROR,
|
|
54
54
|
summary="Remove SQL aliases that repeat the original relation or column name.",
|
|
55
55
|
rationale="A self-alias adds syntax without naming a distinct role or result field. It obscures useful aliases among repeated names.",
|
|
56
56
|
remediation="Remove an alias whose PostgreSQL identifier equals the original table or bare column name. Keep role aliases for self joins, renamed outputs, quoted case distinctions and alias column lists.",
|
|
@@ -136,7 +136,7 @@ class NoRedundantSqlAlias(Rule):
|
|
|
136
136
|
node.col_offset + 1,
|
|
137
137
|
self.code,
|
|
138
138
|
"Remove SQL aliases that repeat the original table or bare-column name; preserve distinct roles, quoted case, and alias column lists.",
|
|
139
|
-
severity=Severity.
|
|
139
|
+
severity=Severity.ERROR,
|
|
140
140
|
)
|
|
141
141
|
for node, redundant in candidates.items()
|
|
142
142
|
if redundant and not context.suppressions.is_suppressed(node.lineno, self.code)
|
|
@@ -33,7 +33,7 @@ class NoSlashCollectionRootUnderPrefix(Rule):
|
|
|
33
33
|
id = "no-slash-collection-root-under-prefix"
|
|
34
34
|
code = "SARJ503"
|
|
35
35
|
documentation = RuleDocumentation(
|
|
36
|
-
default_level=Severity.
|
|
36
|
+
default_level=Severity.ERROR,
|
|
37
37
|
summary="A collection-root route under a literal router prefix uses an empty path instead of a slash.",
|
|
38
38
|
rationale=(
|
|
39
39
|
'With `APIRouter(prefix="/items")`, a "/" route serves `/items/`, so a caller of `/items` gets a 307 '
|
|
@@ -93,7 +93,7 @@ class NoSlashCollectionRootUnderPrefix(Rule):
|
|
|
93
93
|
route.decorator.col_offset + 1,
|
|
94
94
|
self.code,
|
|
95
95
|
_MESSAGE,
|
|
96
|
-
severity=Severity.
|
|
96
|
+
severity=Severity.ERROR,
|
|
97
97
|
)
|
|
98
98
|
for route in route_decorators(context)
|
|
99
99
|
if route.path == "/" and _is_literal_prefix(route.prefix)
|
|
@@ -94,7 +94,7 @@ class NoUnobservedTaskException(Rule):
|
|
|
94
94
|
id = "no-unobserved-task-exception"
|
|
95
95
|
code = "SARJ574"
|
|
96
96
|
documentation: ClassVar[RuleDocumentation | None] = RuleDocumentation(
|
|
97
|
-
default_level=Severity.
|
|
97
|
+
default_level=Severity.ERROR,
|
|
98
98
|
summary="Observe the outcome of every stored asyncio task.",
|
|
99
99
|
rationale=(
|
|
100
100
|
"A failed task that nothing awaits, gathers or inspects reports its exception only as "
|
|
@@ -153,7 +153,7 @@ class NoUnobservedTaskException(Rule):
|
|
|
153
153
|
line=call.lineno,
|
|
154
154
|
col=call.col_offset + 1,
|
|
155
155
|
code=self.code,
|
|
156
|
-
severity=Severity.
|
|
156
|
+
severity=Severity.ERROR,
|
|
157
157
|
message=_MESSAGE,
|
|
158
158
|
)
|
|
159
159
|
for call in context.nodes(ast.Call)
|
|
@@ -108,8 +108,8 @@ class PreferDiscriminatedModelUnion(Rule):
|
|
|
108
108
|
autofix=AutofixPolicy.NONE,
|
|
109
109
|
limitations=(
|
|
110
110
|
"Nullable outcome records without a proven validator dependency are reviewed separately by prefer-outcome-variants (SARJ571).",
|
|
111
|
-
"Declared module-level unions of at least two source-visible direct dataclasses, Pydantic BaseModels or TypedDicts require a shared disjoint Literal field. PEP 604, typing Union, Optional, Annotated, forward references and bounded local aliases are supported; a None branch is allowed.",
|
|
112
|
-
"The explicit-tag policy is a modeling preference: nominal variants already support isinstance narrowing. Explicitly specialized PEP 695 records and direct generic union declarations support ordinary payload parameters. Parameter-dependent tag domains remain uncertain; bounded, defaulted or variadic parameters, bare generic records and specialization through another generic union alias abstain. Scalar/container unions, inline annotations, inherited variants, behavior classes, unresolved variants and dynamic or ambiguous namespaces are excluded. Imported tag aliases are not resolved; an explicit literal field paired with an unresolved imported or local class domain abstains, as do opaque explicit Literal domains. Qualified imported domains and unsupported computed aliases remain uncertain rather than proving a missing tag.",
|
|
111
|
+
"Declared module-level unions of at least two source-visible direct dataclasses, Pydantic BaseModels or TypedDicts require a shared disjoint Literal field. Undecorated variants with one local Pydantic base containing only pass, docstrings or a literal ConfigDict for frozen, strict, extra and hide_input_in_errors are also supported. PEP 604, typing Union, Optional, Annotated, forward references and bounded local aliases are supported; a None branch is allowed.",
|
|
112
|
+
"The explicit-tag policy is a modeling preference: nominal variants already support isinstance narrowing. Explicitly specialized PEP 695 records and direct generic union declarations support ordinary payload parameters. Parameter-dependent tag domains remain uncertain; bounded, defaulted or variadic parameters, bare generic records and specialization through another generic union alias abstain. Scalar/container unions, inline annotations, other inherited variants, behavior classes, unresolved variants and dynamic or ambiguous namespaces are excluded. Imported tag aliases are not resolved; an explicit literal field paired with an unresolved imported or local class domain abstains, as do opaque explicit Literal domains. Qualified imported domains and unsupported computed aliases remain uncertain rather than proving a missing tag.",
|
|
113
113
|
"String, bytes, integer, Boolean and None tag values are supported. Boolean and integer Literal values retain their distinct static types; use identity checks when equality would conflate their runtime values. A bounded hierarchy of shared literal fields may distinguish nested groups; overlapping tags without a further discriminator still fail. Nested Literal domains and transparent Final, ReadOnly, Annotated and local alias wrappers are supported. TypedDict tags must be required; dataclass ClassVar tags must have a value. Direct import-proven InitVar annotations without defaults are constructor inputs rather than instance tags; quoted, wrapped, locally aliased or defaulted InitVar forms remain uncertain. Import-proven typing final decorators preserve record recognition. Explicit Pydantic callable Discriminators, bounded stable reusable metadata, single-value plain local class namespaces, literal immutable tuple projections and imported pydantic.types constructors are respected; source-proven string field names, including local bindings and concatenation, still need Literal fields. Source-proven string discriminator writes through stable aliases invalidate callable coverage; opaque mutation, helper escapes and excessive alias graphs abstain. Module bindings are independent of unrelated local parameters and their attribute writes; class annotation shadows and global rebinding remain excluded. Other runtime configuration and default correctness remain separate contracts. No automatic field addition is safe for every constructor or serializer.",
|
|
114
114
|
"For nullable-field dependencies, only stable direct module-level import-proven Pydantic BaseModel subclasses with pure direct after model validators are inspected.",
|
|
115
115
|
"Bounded paths may contain finite tag comparisons or literal-container membership, None identity tests, Boolean combinations, nested guards and returns of the same instance. Every rejection region must prove one tag-dependent nullable-field requirement; joint missing-field or independent-tag-axis conditions abstain.",
|
|
@@ -212,6 +212,48 @@ class PreferDiscriminatedModelUnion(Rule):
|
|
|
212
212
|
expected_count=1,
|
|
213
213
|
public=True,
|
|
214
214
|
),
|
|
215
|
+
RuleExample(
|
|
216
|
+
example_id="configuration-only-model-base",
|
|
217
|
+
scenario="configuration-base-discriminator",
|
|
218
|
+
title="A shared configuration-only base does not identify empty variants",
|
|
219
|
+
outcome=ExampleOutcome.MATCH,
|
|
220
|
+
files=(
|
|
221
|
+
ExampleFile.python(
|
|
222
|
+
"app/observations.py",
|
|
223
|
+
"from typing import TypeAlias\nfrom pydantic import BaseModel, ConfigDict\n"
|
|
224
|
+
"class Contract(BaseModel):\n"
|
|
225
|
+
" model_config = ConfigDict(frozen=True, strict=True, extra='forbid')\n"
|
|
226
|
+
"class Present(Contract):\n body: bytes\n"
|
|
227
|
+
"class Missing(Contract):\n pass\n"
|
|
228
|
+
"class Unavailable(Contract):\n pass\n"
|
|
229
|
+
"Read: TypeAlias = Present | Missing | Unavailable\n",
|
|
230
|
+
),
|
|
231
|
+
),
|
|
232
|
+
focus_path=PurePosixPath("app/observations.py"),
|
|
233
|
+
expected_count=1,
|
|
234
|
+
public=True,
|
|
235
|
+
),
|
|
236
|
+
RuleExample(
|
|
237
|
+
example_id="tagged-configuration-only-model-base",
|
|
238
|
+
scenario="configuration-base-discriminator",
|
|
239
|
+
title="Tags distinguish observations sharing a configuration-only base",
|
|
240
|
+
outcome=ExampleOutcome.NO_MATCH,
|
|
241
|
+
files=(
|
|
242
|
+
ExampleFile.python(
|
|
243
|
+
"app/observations.py",
|
|
244
|
+
"from typing import Literal, TypeAlias\nfrom pydantic import BaseModel, ConfigDict\n"
|
|
245
|
+
"class Contract(BaseModel):\n"
|
|
246
|
+
" model_config = ConfigDict(frozen=True, strict=True, extra='forbid')\n"
|
|
247
|
+
"class Present(Contract):\n kind: Literal['present'] = 'present'\n body: bytes\n"
|
|
248
|
+
"class Missing(Contract):\n kind: Literal['missing'] = 'missing'\n"
|
|
249
|
+
"class Unavailable(Contract):\n kind: Literal['unavailable'] = 'unavailable'\n"
|
|
250
|
+
"Read: TypeAlias = Present | Missing | Unavailable\n",
|
|
251
|
+
),
|
|
252
|
+
),
|
|
253
|
+
focus_path=PurePosixPath("app/observations.py"),
|
|
254
|
+
expected_count=0,
|
|
255
|
+
public=True,
|
|
256
|
+
),
|
|
215
257
|
RuleExample(
|
|
216
258
|
example_id="tagged-generic-result",
|
|
217
259
|
scenario="generic-outcome-discriminator",
|
|
@@ -38,7 +38,7 @@ class PreferOptionalComposite(Rule):
|
|
|
38
38
|
id = "prefer-optional-composite"
|
|
39
39
|
code = "SARJ541"
|
|
40
40
|
documentation = RuleDocumentation(
|
|
41
|
-
default_level=Severity.
|
|
41
|
+
default_level=Severity.ERROR,
|
|
42
42
|
summary="Review related optional fields as one optional composite value.",
|
|
43
43
|
rationale=(
|
|
44
44
|
"Several nullable fields with a common record prefix can scatter one optional value across "
|
|
@@ -54,7 +54,7 @@ class PreferOptionalComposite(Rule):
|
|
|
54
54
|
category=RuleCategory.MAINTAINABILITY,
|
|
55
55
|
autofix=AutofixPolicy.NONE,
|
|
56
56
|
limitations=(
|
|
57
|
-
"This is a
|
|
57
|
+
"This is a blocking modeling review policy, not proof of an all-or-nothing invariant or an invalid runtime state. A shared underscore-delimited prefix and at least two explicitly nullable fields are the deterministic trigger; independent same-prefix settings can also match and should remain independent when that is their contract. Resolve the finding with a reviewed composite or an exact-code suppression explaining the independent or compatibility contract.",
|
|
58
58
|
"Checks stable direct module-level source-declared Pydantic BaseModels, plain direct dataclasses and TypedDicts. This advisory relationship follows unshadowed runtime model imports and explicit namespace writes, without proving the runtime effects of unrelated callbacks. PEP 604, Optional, Union, Annotated, quoted annotations and bounded module type aliases are recognized; container-element nullability alone is not field nullability. Runtime ClassVar metadata and dataclass InitVar/KW_ONLY metadata are excluded; dataclasses retain Annotated metadata wrappers and PEP 695 metadata aliases as fields. A required or unresolved same-prefix sibling prevents grouping that broader prefix.",
|
|
59
59
|
"Larger overlapping groups take precedence, with the longest common prefix for the same field set. Each field belongs to at most one finding. Inherited/generic models, unknown decorators or namespaces, replaced annotation providers, rebound owners, tests, generated and vendor code are excluded.",
|
|
60
60
|
"The rule does not infer relationships from shared suffixes, enforce non-null child fields or automatically nest public models. SARJ510 owns proven tag-dependent variant payloads.",
|
|
@@ -139,7 +139,7 @@ def _model_diagnostics(model: ast.ClassDef, context: PythonFileContext, code: st
|
|
|
139
139
|
f"Review {model.name}'s nullable {prefix}_ fields ({names}) as one optional composite. "
|
|
140
140
|
"Preserve independent child nullability and valid partial states; names alone do not "
|
|
141
141
|
"prove an all-or-nothing invariant or authorize a wire/storage change.",
|
|
142
|
-
severity=Severity.
|
|
142
|
+
severity=Severity.ERROR,
|
|
143
143
|
)
|
|
144
144
|
)
|
|
145
145
|
return findings
|
|
@@ -29,7 +29,7 @@ class PsycopgSqlFormatFieldMismatch(Rule):
|
|
|
29
29
|
id = "psycopg-sql-format-field-mismatch"
|
|
30
30
|
code = "SARJ576"
|
|
31
31
|
documentation: ClassVar[RuleDocumentation | None] = RuleDocumentation(
|
|
32
|
-
default_level=Severity.
|
|
32
|
+
default_level=Severity.ERROR,
|
|
33
33
|
summary="Give psycopg SQL.format an argument for every replacement field.",
|
|
34
34
|
rationale=(
|
|
35
35
|
"psycopg SQL.format reads every unescaped brace in the template as a replacement field and raises on "
|
|
@@ -139,7 +139,7 @@ class PsycopgSqlFormatFieldMismatch(Rule):
|
|
|
139
139
|
col=call.col_offset + 1,
|
|
140
140
|
code=self.code,
|
|
141
141
|
message=_message(mismatch),
|
|
142
|
-
severity=Severity.
|
|
142
|
+
severity=Severity.ERROR,
|
|
143
143
|
)
|
|
144
144
|
for call, mismatch in sql_format_mismatches(context)
|
|
145
145
|
if not context.suppressions.is_suppressed(call.lineno, self.code)
|