sarj-python-lint 1.151.1__tar.gz → 1.153.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.151.1 → sarj_python_lint-1.153.0}/PKG-INFO +2 -2
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/pyproject.toml +2 -2
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_docs.py +9 -2
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_parallel.py +4 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_python_target.py +4 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/benchmark.py +4 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_comments.py +26 -2
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_nullable_outcome.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_prose_budget.py +4 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +5 -3
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +8 -5
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_comment_cruft.py +2 -23
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +8 -7
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +4 -2
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_offset_pagination.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_select_star.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_test_comments.py +11 -4
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +7 -6
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +72 -15
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +42 -15
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +32 -26
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +4 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +2 -2
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +1 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +4 -1
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/.gitignore +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/LICENSE +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/README.md +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/__main__.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_security.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_file_context.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_rule_descriptors.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/application_logging.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/cast_access.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/json_boundary.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rule_base.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_httpx_clients.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_logging.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_registry.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_sdk_metadata_fields.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_sdk_prerequisite.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_sql.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_nonlocal_statement.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_value_error_forwarder.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_defaultdict.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_exception_propagation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_required_prerequisite.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_single_parametrize_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/sql_literals.py +0 -0
- {sarj_python_lint-1.151.1 → sarj_python_lint-1.153.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.153.0
|
|
4
4
|
Summary: Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults
|
|
5
5
|
Project-URL: Homepage, https://code-standards.sarj.ai/rules/python/
|
|
6
6
|
Project-URL: Documentation, https://code-standards.sarj.ai/rules/python/
|
|
@@ -20,7 +20,7 @@ Requires-Python: >=3.14
|
|
|
20
20
|
Requires-Dist: packaging==26.3
|
|
21
21
|
Requires-Dist: ruff>=0.17.2
|
|
22
22
|
Requires-Dist: sarj-rule-contracts==0.8.1
|
|
23
|
-
Requires-Dist: sarj-sql-lint==0.50.
|
|
23
|
+
Requires-Dist: sarj-sql-lint==0.50.2
|
|
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.
|
|
3
|
+
version = "1.153.0"
|
|
4
4
|
description = "Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "sarj-ai" }]
|
|
@@ -15,7 +15,7 @@ classifiers = [
|
|
|
15
15
|
"Programming Language :: Python :: 3.14",
|
|
16
16
|
"Topic :: Software Development :: Quality Assurance",
|
|
17
17
|
]
|
|
18
|
-
dependencies = ["sarj-rule-contracts==0.8.1", "sarj-sql-lint==0.50.
|
|
18
|
+
dependencies = ["sarj-rule-contracts==0.8.1", "sarj-sql-lint==0.50.2", "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"
|
|
@@ -19,6 +19,9 @@ from sarj_python_lint.rules._prose_budget import groups
|
|
|
19
19
|
from sarj_python_lint.rules.no_unnecessary_docstring import module_docstring_may_escape
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
_TRIPLE_QUOTE_WIDTH = 3
|
|
23
|
+
|
|
24
|
+
|
|
22
25
|
if TYPE_CHECKING:
|
|
23
26
|
from sarj_python_lint._file_context import PythonFileContext
|
|
24
27
|
from sarj_python_lint.rule_base import Diagnostic
|
|
@@ -259,7 +262,11 @@ class DocstringFixes:
|
|
|
259
262
|
return None
|
|
260
263
|
start, end = bounds
|
|
261
264
|
literal = self.context.source[start:end]
|
|
262
|
-
if
|
|
265
|
+
if (
|
|
266
|
+
literal[:_TRIPLE_QUOTE_WIDTH] not in {'"""', "'''"}
|
|
267
|
+
or literal[-_TRIPLE_QUOTE_WIDTH:] != literal[:_TRIPLE_QUOTE_WIDTH]
|
|
268
|
+
or "\\" in literal
|
|
269
|
+
):
|
|
263
270
|
return None
|
|
264
271
|
return start, end, literal
|
|
265
272
|
|
|
@@ -311,7 +318,7 @@ class DocstringFixes:
|
|
|
311
318
|
document = document[:start] + document[end:]
|
|
312
319
|
if not document.strip():
|
|
313
320
|
return self._remove(owner, expression)
|
|
314
|
-
quote = literal[2][:
|
|
321
|
+
quote = literal[2][:_TRIPLE_QUOTE_WIDTH]
|
|
315
322
|
newline = "\r\n" if "\r\n" in literal[2] else "\n"
|
|
316
323
|
document = document.rstrip() + "\n" + " " * expression.col_offset
|
|
317
324
|
replacement = quote + document.replace("\n", newline) + quote
|
|
@@ -14,6 +14,9 @@ from sarj_python_lint.rules._paths import clear_path_caches
|
|
|
14
14
|
from sarj_python_lint.rules._project_index import ProjectIndexSet
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
_BUFFERED_ITEMS_PER_WORKER = 4
|
|
18
|
+
|
|
19
|
+
|
|
17
20
|
if TYPE_CHECKING:
|
|
18
21
|
from sarj_python_lint._prepared_sources import PreparedSourceSnapshot
|
|
19
22
|
from sarj_python_lint.rules._project_index import ProjectSourceSnapshot
|
|
@@ -182,7 +185,7 @@ def check_parallel(
|
|
|
182
185
|
)
|
|
183
186
|
for path, source in loaded.items()
|
|
184
187
|
)
|
|
185
|
-
for result in pool.map(_check_file, items, chunksize=1, buffersize=workers *
|
|
188
|
+
for result in pool.map(_check_file, items, chunksize=1, buffersize=workers * _BUFFERED_ITEMS_PER_WORKER):
|
|
186
189
|
# Drain actual results after either replay signal so a later worker
|
|
187
190
|
# failure cannot be disguised as a clean serial replay.
|
|
188
191
|
if needs_serial:
|
{sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/_python_target.py
RENAMED
|
@@ -10,6 +10,9 @@ from packaging.specifiers import InvalidSpecifier, SpecifierSet
|
|
|
10
10
|
from packaging.version import InvalidVersion, Version
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
_VERSION_COMPONENTS = 3
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
_MAX_ANCESTORS = 24
|
|
14
17
|
_PROJECT_BOUNDARIES = ("pyproject.toml", "setup.py", "setup.cfg")
|
|
15
18
|
_INSTALLED_ROOTS = frozenset({"site-packages", "dist-packages"})
|
|
@@ -146,7 +149,7 @@ def _has_legacy_witness(declaration: str, minimum: tuple[int, int]) -> bool:
|
|
|
146
149
|
continue
|
|
147
150
|
if boundary.epoch:
|
|
148
151
|
continue
|
|
149
|
-
release = (*boundary.release, 0, 0)[:
|
|
152
|
+
release = (*boundary.release, 0, 0)[:_VERSION_COMPONENTS]
|
|
150
153
|
candidates.add(Version(".".join(map(str, release))))
|
|
151
154
|
candidates.add(Version(f"{release[0]}.{release[1]}.{release[2] + 1}"))
|
|
152
155
|
return any(
|
|
@@ -17,6 +17,9 @@ from sarj_python_lint.__main__ import analyze, expand_paths
|
|
|
17
17
|
from sarj_python_lint.rules import REGISTRY
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
_BYTES_PER_KIB = 1024
|
|
21
|
+
|
|
22
|
+
|
|
20
23
|
if TYPE_CHECKING:
|
|
21
24
|
from collections.abc import Sequence
|
|
22
25
|
|
|
@@ -56,7 +59,7 @@ def peak_memory_bytes() -> int | None:
|
|
|
56
59
|
except ImportError:
|
|
57
60
|
return None
|
|
58
61
|
peak = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
|
|
59
|
-
return peak if sys.platform == "darwin" else peak *
|
|
62
|
+
return peak if sys.platform == "darwin" else peak * _BYTES_PER_KIB
|
|
60
63
|
|
|
61
64
|
|
|
62
65
|
def measure(
|
{sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_comments.py
RENAMED
|
@@ -4,6 +4,7 @@ import ast
|
|
|
4
4
|
import io
|
|
5
5
|
import re
|
|
6
6
|
import tokenize
|
|
7
|
+
import tomllib
|
|
7
8
|
from types import MappingProxyType
|
|
8
9
|
from typing import TYPE_CHECKING, NamedTuple
|
|
9
10
|
|
|
@@ -162,6 +163,7 @@ def has_narration_qualifier(body: str) -> bool:
|
|
|
162
163
|
|
|
163
164
|
# Below this length an inflection strip would eat the word itself.
|
|
164
165
|
_MIN_STEM_LENGTH = 3
|
|
166
|
+
_NO_CODE_LINE = 1 << 30
|
|
165
167
|
|
|
166
168
|
_WORD_RE = re.compile(r"[A-Za-z_][A-Za-z0-9_]*|\d+")
|
|
167
169
|
_CAMEL_RE = re.compile(r"[A-Z]+(?=[A-Z][a-z])|[A-Z]?[a-z]+|[A-Z]+|\d+")
|
|
@@ -350,6 +352,28 @@ class PositionedComment(NamedTuple):
|
|
|
350
352
|
body: str
|
|
351
353
|
|
|
352
354
|
|
|
355
|
+
_SCRIPT_METADATA_RE = re.compile(r"^# /// script\n(?P<content>(?:#(?: .*)?\n)+)# ///(?=\n|$)", re.MULTILINE)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
def script_metadata_lines(source: str, standalone: Sequence[PositionedComment]) -> frozenset[int]:
|
|
359
|
+
normalized = "\n".join(source.splitlines())
|
|
360
|
+
matches = list(_SCRIPT_METADATA_RE.finditer(normalized))
|
|
361
|
+
if len(matches) != 1:
|
|
362
|
+
return frozenset()
|
|
363
|
+
match = matches[0]
|
|
364
|
+
first = normalized.count("\n", 0, match.start()) + 1
|
|
365
|
+
lines = frozenset(range(first, first + match.group().count("\n") + 1))
|
|
366
|
+
top_level = {line for line, col, _ in standalone if col == 0}
|
|
367
|
+
if not lines <= top_level:
|
|
368
|
+
return frozenset()
|
|
369
|
+
content = "\n".join(line[2:] if line.startswith("# ") else "" for line in match.group("content").splitlines())
|
|
370
|
+
try:
|
|
371
|
+
tomllib.loads(content)
|
|
372
|
+
except tomllib.TOMLDecodeError:
|
|
373
|
+
return frozenset()
|
|
374
|
+
return lines
|
|
375
|
+
|
|
376
|
+
|
|
353
377
|
class _OrderedComment(NamedTuple):
|
|
354
378
|
line: int
|
|
355
379
|
column: int
|
|
@@ -414,7 +438,7 @@ def _scan_memo(source: str) -> _Scan:
|
|
|
414
438
|
try:
|
|
415
439
|
result = _scan(source)
|
|
416
440
|
except UnicodeError:
|
|
417
|
-
result = _Scan([], [], set(),
|
|
441
|
+
result = _Scan([], [], set(), _NO_CODE_LINE, [])
|
|
418
442
|
_last_scan = _ScanMemo(source, result, cached.comment_lines if cached is not None else None)
|
|
419
443
|
return result
|
|
420
444
|
|
|
@@ -424,7 +448,7 @@ def _scan(source: str) -> _Scan:
|
|
|
424
448
|
trailing: list[PositionedComment] = []
|
|
425
449
|
ordered: _Ordered = []
|
|
426
450
|
nested: set[int] = set()
|
|
427
|
-
first_code_line =
|
|
451
|
+
first_code_line = _NO_CODE_LINE
|
|
428
452
|
prev_end_row = 0
|
|
429
453
|
depth = 0
|
|
430
454
|
readline = io.StringIO(source).readline
|
|
@@ -190,7 +190,7 @@ def _outcome_tag(annotation: ast.expr, facts: AnnotationOrigins) -> bool:
|
|
|
190
190
|
return False
|
|
191
191
|
members = node.slice.elts if isinstance(node.slice, ast.Tuple) else [node.slice]
|
|
192
192
|
values = {member.value for member in members if isinstance(member, ast.Constant) and isinstance(member.value, str)}
|
|
193
|
-
return
|
|
193
|
+
return not values.isdisjoint(_SUCCESS_TAGS) and not values.isdisjoint(_ERROR_TAGS)
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
def _failure_field(name: str, annotation: ast.expr, facts: AnnotationOrigins) -> bool:
|
{sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/_prose_budget.py
RENAMED
|
@@ -13,6 +13,9 @@ from sarj_python_lint.rules._docstrings import PROMPT_DECORATOR_MARKERS, decorat
|
|
|
13
13
|
from sarj_python_lint.rules._paths import is_generated
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
_FENCE_MARKER_WIDTH = 3
|
|
17
|
+
|
|
18
|
+
|
|
16
19
|
if TYPE_CHECKING:
|
|
17
20
|
from pathlib import Path
|
|
18
21
|
|
|
@@ -457,7 +460,7 @@ def _without_fenced_examples(doc: str) -> list[str]:
|
|
|
457
460
|
fence: str | None = None
|
|
458
461
|
for raw in doc.splitlines():
|
|
459
462
|
stripped = raw.lstrip()
|
|
460
|
-
marker = stripped[:
|
|
463
|
+
marker = stripped[:_FENCE_MARKER_WIDTH] if stripped.startswith(("```", "~~~")) else None
|
|
461
464
|
if fence is not None:
|
|
462
465
|
visible.append("")
|
|
463
466
|
if marker == fence:
|
|
@@ -149,7 +149,7 @@ def _is_shared_support(path: Path) -> bool:
|
|
|
149
149
|
path.name == "conftest.py"
|
|
150
150
|
or path.stem.lower() in _SHARED_SUPPORT_NAMES
|
|
151
151
|
or bool(_SUPPORT_STEM_RE.search(path.stem.lower()))
|
|
152
|
-
or
|
|
152
|
+
or not _NON_INFRA_ROOT_NAMES.isdisjoint(parts)
|
|
153
153
|
or _support_below_test_root(parts)
|
|
154
154
|
or _non_collected_module_below_test_root(path, parts)
|
|
155
155
|
)
|
|
@@ -160,8 +160,10 @@ def _support_below_test_root(parts: list[str]) -> bool:
|
|
|
160
160
|
if not test_roots:
|
|
161
161
|
return False
|
|
162
162
|
below_root = parts[test_roots[-1] + 1 : -1]
|
|
163
|
-
return
|
|
163
|
+
return not _SHARED_SUPPORT_NAMES.isdisjoint(below_root)
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
def _non_collected_module_below_test_root(path: Path, parts: list[str]) -> bool:
|
|
167
|
-
return
|
|
167
|
+
return not _TEST_ROOT_NAMES.isdisjoint(parts) and not (
|
|
168
|
+
path.name.startswith("test") or path.name.endswith("_test.py")
|
|
169
|
+
)
|
|
@@ -31,6 +31,9 @@ from sarj_python_lint.rules._fixed_record import builds_fixed_record
|
|
|
31
31
|
from sarj_python_lint.rules._paths import is_test_path
|
|
32
32
|
|
|
33
33
|
|
|
34
|
+
_HTTP_STATUS_CLASS_WIDTH = 100
|
|
35
|
+
|
|
36
|
+
|
|
34
37
|
if TYPE_CHECKING:
|
|
35
38
|
from collections.abc import Mapping
|
|
36
39
|
|
|
@@ -894,11 +897,11 @@ def _status_code(node: ast.expr | None, index: FastapiIndex) -> int | None:
|
|
|
894
897
|
|
|
895
898
|
def _response_codes(node: ast.Dict, index: FastapiIndex) -> set[int]:
|
|
896
899
|
if any(key is None for key in node.keys):
|
|
897
|
-
return set(range(
|
|
900
|
+
return set(range(_MIN_HTTP_STATUS, _MAX_HTTP_STATUS + 1))
|
|
898
901
|
codes: set[int] = set()
|
|
899
902
|
for key in node.keys:
|
|
900
903
|
if key is None:
|
|
901
|
-
return set(range(
|
|
904
|
+
return set(range(_MIN_HTTP_STATUS, _MAX_HTTP_STATUS + 1))
|
|
902
905
|
code = _status_code(key, index)
|
|
903
906
|
if code is not None:
|
|
904
907
|
codes.add(code)
|
|
@@ -906,15 +909,15 @@ def _response_codes(node: ast.Dict, index: FastapiIndex) -> set[int]:
|
|
|
906
909
|
if isinstance(key, ast.Constant) and isinstance(key.value, str):
|
|
907
910
|
normalized = key.value.upper()
|
|
908
911
|
if normalized == "DEFAULT":
|
|
909
|
-
return set(range(
|
|
912
|
+
return set(range(_MIN_HTTP_STATUS, _MAX_HTTP_STATUS + 1))
|
|
910
913
|
if normalized.isdigit() and len(normalized) == _STATUS_CODE_DIGITS:
|
|
911
914
|
codes.add(int(normalized))
|
|
912
915
|
continue
|
|
913
916
|
if re.fullmatch(r"[1-5]XX", normalized):
|
|
914
|
-
start = int(normalized[0]) *
|
|
917
|
+
start = int(normalized[0]) * _HTTP_STATUS_CLASS_WIDTH
|
|
915
918
|
codes.update(range(start, start + 100))
|
|
916
919
|
continue
|
|
917
|
-
return set(range(
|
|
920
|
+
return set(range(_MIN_HTTP_STATUS, _MAX_HTTP_STATUS + 1))
|
|
918
921
|
return codes
|
|
919
922
|
|
|
920
923
|
|
|
@@ -540,4 +540,4 @@ def _signature_declaration(
|
|
|
540
540
|
_known_decorator(decorator, function, context, semantics, mutated_members)
|
|
541
541
|
for decorator in function.decorator_list
|
|
542
542
|
}
|
|
543
|
-
return
|
|
543
|
+
return not _OVERLOAD_DECORATORS.isdisjoint(decorators) or not decorators <= _KNOWN_DECORATORS
|
{sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_comment_cruft.py
RENAMED
|
@@ -5,7 +5,6 @@ from io import StringIO
|
|
|
5
5
|
from pathlib import PurePosixPath
|
|
6
6
|
import re
|
|
7
7
|
import tokenize
|
|
8
|
-
import tomllib
|
|
9
8
|
from typing import TYPE_CHECKING, ClassVar, override
|
|
10
9
|
|
|
11
10
|
from sarj_python_lint.rule_base import (
|
|
@@ -26,6 +25,7 @@ from sarj_python_lint.rules._comments import (
|
|
|
26
25
|
has_legal_notice,
|
|
27
26
|
is_protected,
|
|
28
27
|
nested_comment_lines,
|
|
28
|
+
script_metadata_lines,
|
|
29
29
|
standalone_comments,
|
|
30
30
|
statement_comment_walls,
|
|
31
31
|
)
|
|
@@ -238,27 +238,6 @@ _CODING_COOKIE_RE = re.compile(r"coding[:=]\s*[-_.a-zA-Z0-9]+")
|
|
|
238
238
|
# Only `>>>` arms a doctest block.
|
|
239
239
|
_DOCTEST_PROMPT = ">>>"
|
|
240
240
|
|
|
241
|
-
_SCRIPT_METADATA_RE = re.compile(r"^# /// script\n(?P<content>(?:#(?: .*)?\n)+)# ///(?=\n|$)", re.MULTILINE)
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
def _script_metadata_lines(source: str, standalone: Sequence[PositionedComment]) -> frozenset[int]:
|
|
245
|
-
normalized = "\n".join(source.splitlines())
|
|
246
|
-
matches = list(_SCRIPT_METADATA_RE.finditer(normalized))
|
|
247
|
-
if len(matches) != 1:
|
|
248
|
-
return frozenset()
|
|
249
|
-
match = matches[0]
|
|
250
|
-
first = normalized.count("\n", 0, match.start()) + 1
|
|
251
|
-
lines = frozenset(range(first, first + match.group().count("\n") + 1))
|
|
252
|
-
top_level = {line for line, col, _ in standalone if col == 0}
|
|
253
|
-
if not lines <= top_level:
|
|
254
|
-
return frozenset()
|
|
255
|
-
content = "\n".join(line[2:] if line.startswith("# ") else "" for line in match.group("content").splitlines())
|
|
256
|
-
try:
|
|
257
|
-
tomllib.loads(content)
|
|
258
|
-
except tomllib.TOMLDecodeError:
|
|
259
|
-
return frozenset()
|
|
260
|
-
return lines
|
|
261
|
-
|
|
262
241
|
|
|
263
242
|
def _is_coding_cookie(body: str) -> bool:
|
|
264
243
|
return bool(_CODING_COOKIE_RE.search(body))
|
|
@@ -578,7 +557,7 @@ class NoCommentCruft(Rule):
|
|
|
578
557
|
standalone, first_code_line = standalone_comments(source)
|
|
579
558
|
except tokenize.TokenError, IndentationError, SyntaxError:
|
|
580
559
|
return []
|
|
581
|
-
skip =
|
|
560
|
+
skip = script_metadata_lines(source, standalone)
|
|
582
561
|
standalone = [comment for comment in standalone if comment.line not in skip]
|
|
583
562
|
diags = {finding.line: finding for finding in _trailing_exception_comments(context)}
|
|
584
563
|
by_line = {line: (col, body) for line, col, body in standalone}
|
|
@@ -23,8 +23,8 @@ if TYPE_CHECKING:
|
|
|
23
23
|
|
|
24
24
|
_CREATE_WORDS: Final = frozenset({"create", "add", "new"})
|
|
25
25
|
_MESSAGE = (
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"Name the collection (POST /tickets) instead of ending the path in create, add or new. "
|
|
27
|
+
"Keep a reasoned exact exception for an external RPC contract."
|
|
28
28
|
)
|
|
29
29
|
|
|
30
30
|
|
|
@@ -33,13 +33,14 @@ class NoCreateVerbInPostPath(Rule):
|
|
|
33
33
|
id = "no-create-verb-in-post-path"
|
|
34
34
|
code = "SARJ500"
|
|
35
35
|
documentation = RuleDocumentation(
|
|
36
|
-
default_level=Severity.
|
|
36
|
+
default_level=Severity.ERROR,
|
|
37
37
|
summary="POST routes name their collection instead of ending in a create, add or new segment.",
|
|
38
38
|
rationale=(
|
|
39
|
-
"The
|
|
40
|
-
"
|
|
39
|
+
"The organization uses resource-oriented paths for predictable collection and item APIs. "
|
|
40
|
+
"A trailing create, add or new segment repeats the operation in the path. HTTP POST itself supports "
|
|
41
|
+
"resource-specific processing and does not require creation semantics."
|
|
41
42
|
),
|
|
42
|
-
remediation="
|
|
43
|
+
remediation="Use the collection path for resource creation. Preserve deliberate external RPC contracts with a reasoned exact suppression; review client compatibility before changing a published path.",
|
|
43
44
|
category=RuleCategory.ARCHITECTURE,
|
|
44
45
|
autofix=AutofixPolicy.NONE,
|
|
45
46
|
limitations=(
|
|
@@ -92,7 +93,7 @@ class NoCreateVerbInPostPath(Rule):
|
|
|
92
93
|
route.decorator.col_offset + 1,
|
|
93
94
|
self.code,
|
|
94
95
|
_MESSAGE,
|
|
95
|
-
severity=Severity.
|
|
96
|
+
severity=Severity.ERROR,
|
|
96
97
|
)
|
|
97
98
|
for route in route_decorators(context)
|
|
98
99
|
if "post" in route.methods
|
|
@@ -43,7 +43,7 @@ class NoMagicArithmetic(Rule):
|
|
|
43
43
|
id = "no-magic-arithmetic"
|
|
44
44
|
code = "SARJ570"
|
|
45
45
|
documentation = RuleDocumentation(
|
|
46
|
-
default_level=Severity.
|
|
46
|
+
default_level=Severity.ERROR,
|
|
47
47
|
summary="Name nontrivial numeric factors and operational limits.",
|
|
48
48
|
rationale="Unnamed conversion factors, frame sizes and timing limits hide units and can drift across related operations.",
|
|
49
49
|
remediation="Extract a meaningfully named constant or use validated configuration. Reuse an existing constant when it represents the same unit or limit.",
|
|
@@ -106,7 +106,7 @@ class NoMagicArithmetic(Rule):
|
|
|
106
106
|
node.col_offset + 1,
|
|
107
107
|
self.code,
|
|
108
108
|
"Name this numeric factor or operational limit with its meaning and units, or use validated configuration.",
|
|
109
|
-
severity=Severity.
|
|
109
|
+
severity=Severity.ERROR,
|
|
110
110
|
)
|
|
111
111
|
)
|
|
112
112
|
return findings
|
|
@@ -135,6 +135,8 @@ def _runtime(node: ast.AST, context: PythonFileContext) -> bool:
|
|
|
135
135
|
return current in parent.body
|
|
136
136
|
case ast.Lambda():
|
|
137
137
|
return current is parent.body
|
|
138
|
+
case ast.ClassDef():
|
|
139
|
+
return False
|
|
138
140
|
case _:
|
|
139
141
|
pass
|
|
140
142
|
current = parent
|
|
@@ -135,7 +135,7 @@ class NoOffsetPagination(Rule):
|
|
|
135
135
|
if (
|
|
136
136
|
not is_store_module(path)
|
|
137
137
|
or context.generated
|
|
138
|
-
or _MIGRATION_PARTS.
|
|
138
|
+
or not _MIGRATION_PARTS.isdisjoint(part.casefold() for part in path.parts)
|
|
139
139
|
):
|
|
140
140
|
return []
|
|
141
141
|
tree = context.tree
|
|
@@ -520,7 +520,7 @@ def _has_enough_duplicate_evidence(members: list[_Shape]) -> bool:
|
|
|
520
520
|
|
|
521
521
|
|
|
522
522
|
def _test_name_tokens(name: str) -> set[str]:
|
|
523
|
-
suffix = name[
|
|
523
|
+
suffix = name[len(_TEST_PREFIX) :].lstrip("_") if name.startswith(_TEST_PREFIX) else name
|
|
524
524
|
return {token for token in suffix.split("_") if token}
|
|
525
525
|
|
|
526
526
|
|
{sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_select_star.py
RENAMED
|
@@ -326,4 +326,4 @@ def _is_query_binding(target: ast.expr) -> bool:
|
|
|
326
326
|
return False
|
|
327
327
|
name = target.id if isinstance(target, ast.Name) else target.attr
|
|
328
328
|
tokens = frozenset(part for part in name.lower().split("_") if part)
|
|
329
|
-
return name == "q" or name.isupper() or
|
|
329
|
+
return name == "q" or name.isupper() or not tokens.isdisjoint(_QUERY_BINDING_TOKENS)
|
{sarj_python_lint-1.151.1 → sarj_python_lint-1.153.0}/src/sarj_python_lint/rules/no_test_comments.py
RENAMED
|
@@ -15,7 +15,7 @@ from sarj_python_lint.rule_base import (
|
|
|
15
15
|
RuleExample,
|
|
16
16
|
Severity,
|
|
17
17
|
)
|
|
18
|
-
from sarj_python_lint.rules._comments import PositionedComment, comment_runs, has_legal_notice
|
|
18
|
+
from sarj_python_lint.rules._comments import PositionedComment, comment_runs, has_legal_notice, script_metadata_lines
|
|
19
19
|
from sarj_python_lint.rules._paths import is_test_path, is_test_support_path
|
|
20
20
|
from sarj_python_lint.rules._pytest import collected_tests
|
|
21
21
|
from sarj_python_lint.rules._suppression_comments import scan_comments_or_none
|
|
@@ -30,7 +30,7 @@ if TYPE_CHECKING:
|
|
|
30
30
|
|
|
31
31
|
_DIRECTIVE = re.compile(
|
|
32
32
|
r"^(?:!|.*?coding[:=]|(?:sarj-noqa|noqa|ruff|pyright|basedpyright|type|fmt|isort|pragma|"
|
|
33
|
-
r"mypy|pylint|
|
|
33
|
+
r"mypy|pylint|flake8|doctest|pytest|uv|region|endregion)\s*[:\[]|(?:nosec|nosemgrep)\b|language=|-\*-|(?:fmt|isort):|%%)",
|
|
34
34
|
re.IGNORECASE,
|
|
35
35
|
)
|
|
36
36
|
|
|
@@ -133,7 +133,14 @@ class NoTestComments(Rule):
|
|
|
133
133
|
if context.generated or context.tree is None or not _test_comment_source(context):
|
|
134
134
|
return []
|
|
135
135
|
comments = scan_comments_or_none(context.source) or ()
|
|
136
|
-
|
|
136
|
+
protected = _legal_comment_lines(comments) | script_metadata_lines(
|
|
137
|
+
context.source,
|
|
138
|
+
[
|
|
139
|
+
PositionedComment(comment.line, comment.col - 1, comment.body)
|
|
140
|
+
for comment in comments
|
|
141
|
+
if comment.standalone
|
|
142
|
+
],
|
|
143
|
+
)
|
|
137
144
|
return [
|
|
138
145
|
Diagnostic(
|
|
139
146
|
path=context.path,
|
|
@@ -145,7 +152,7 @@ class NoTestComments(Rule):
|
|
|
145
152
|
)
|
|
146
153
|
for comment in comments
|
|
147
154
|
if comment.body.strip()
|
|
148
|
-
and comment.line not in
|
|
155
|
+
and comment.line not in protected
|
|
149
156
|
and not _DIRECTIVE.search(comment.body)
|
|
150
157
|
and not has_legal_notice(comment.body)
|
|
151
158
|
and not context.suppressions.is_suppressed(comment.line, self.code)
|
|
@@ -338,12 +338,13 @@ def _type_branch(test: ast.expr, imports: ImportIndex) -> _TypeBranch | None:
|
|
|
338
338
|
|
|
339
339
|
|
|
340
340
|
def _exception_type_references(expression: ast.expr, imports: ImportIndex) -> frozenset[str] | None:
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
341
|
+
match expression:
|
|
342
|
+
case ast.Tuple(elts=parts):
|
|
343
|
+
pass
|
|
344
|
+
case ast.BinOp(op=ast.BitOr()):
|
|
345
|
+
parts = _flatten_union(expression)
|
|
346
|
+
case _:
|
|
347
|
+
parts = [expression]
|
|
347
348
|
references = [_exception_type_reference(part, imports) for part in parts]
|
|
348
349
|
if any(reference is None for reference in references):
|
|
349
350
|
return None
|