sarj-python-lint 1.162.0__tar.gz → 1.163.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.162.0 → sarj_python_lint-1.163.0}/PKG-INFO +1 -1
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/pyproject.toml +1 -1
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_rule_descriptors.py +9 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_registry.py +2 -0
- sarj_python_lint-1.163.0/src/sarj_python_lint/rules/no_swallowed_exception.py +284 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/.gitignore +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/LICENSE +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/README.md +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/__main__.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_security.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_file_context.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_parallel.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_python_target.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/application_logging.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/benchmark.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/cast_access.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/json_boundary.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rule_base.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_comments.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_domain_boundaries.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_finite_literal_dispatch.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_httpx_clients.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_logging.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_nullable_outcome.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_sdk_metadata_fields.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_sdk_prerequisite.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_sql.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_suite_flow.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/exit_stack_requires_lifecycle_owner.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/inline_single_use_local.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_nonlocal_statement.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_value_error_forwarder.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_defaultdict.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_exception_propagation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_named_literal_alias.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_next_over_search_loop.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_required_prerequisite.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_result_over_nullable_exception.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_single_parametrize_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_walrus_none_guard.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/pytest_test_size_budget.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/server_proxied_file_upload.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/sql_literals.py +0 -0
- {sarj_python_lint-1.162.0 → sarj_python_lint-1.163.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.163.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/
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_rule_descriptors.py
RENAMED
|
@@ -7,6 +7,15 @@ from sarj_python_lint.rule_metadata import RuleDescriptor
|
|
|
7
7
|
|
|
8
8
|
SCHEMA_VERSION = 1
|
|
9
9
|
DESCRIPTORS: tuple[RuleDescriptor, ...] = (
|
|
10
|
+
RuleDescriptor(
|
|
11
|
+
rule_id=RuleId("no-swallowed-exception"),
|
|
12
|
+
module="sarj_python_lint.rules.no_swallowed_exception",
|
|
13
|
+
class_name="NoSwallowedException",
|
|
14
|
+
code="SARJ597",
|
|
15
|
+
description="Surface caught operational failures instead of recording them only at debug level.",
|
|
16
|
+
aliases=(),
|
|
17
|
+
enabled_by_default=True,
|
|
18
|
+
),
|
|
10
19
|
RuleDescriptor(
|
|
11
20
|
rule_id=RuleId("server-proxied-file-upload"),
|
|
12
21
|
module="sarj_python_lint.rules.server_proxied_file_upload",
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_registry.py
RENAMED
|
@@ -263,6 +263,7 @@ from sarj_python_lint.rules.no_redundant_sql_alias import NoRedundantSqlAlias
|
|
|
263
263
|
from sarj_python_lint.rules.no_shallow_record_type_guard import NoShallowRecordTypeGuard
|
|
264
264
|
from sarj_python_lint.rules.no_shared_mutable_default import NoSharedMutableDefault
|
|
265
265
|
from sarj_python_lint.rules.no_slash_collection_root_under_prefix import NoSlashCollectionRootUnderPrefix
|
|
266
|
+
from sarj_python_lint.rules.no_swallowed_exception import NoSwallowedException
|
|
266
267
|
from sarj_python_lint.rules.no_sys_path_mutation import NoSysPathMutation
|
|
267
268
|
from sarj_python_lint.rules.no_unknown_pydantic_validator_field import NoUnknownPydanticValidatorField
|
|
268
269
|
from sarj_python_lint.rules.no_unobserved_task_exception import NoUnobservedTaskException
|
|
@@ -319,6 +320,7 @@ from sarj_python_lint.rules.test_without_explicit_oracle import NoExplicitTestOr
|
|
|
319
320
|
|
|
320
321
|
_AUTHORING_REGISTRY: Mapping[str, type[Rule]] = MappingProxyType(
|
|
321
322
|
{
|
|
323
|
+
NoSwallowedException.id: NoSwallowedException,
|
|
322
324
|
ServerProxiedFileUpload.id: ServerProxiedFileUpload,
|
|
323
325
|
InlineSingleUseLocal.id: InlineSingleUseLocal,
|
|
324
326
|
PreferResultOverNullableException.id: PreferResultOverNullableException,
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import ast
|
|
4
|
+
from pathlib import PurePosixPath
|
|
5
|
+
from typing import TYPE_CHECKING, final, override
|
|
6
|
+
|
|
7
|
+
from sarj_python_lint.rule_base import (
|
|
8
|
+
AutofixPolicy,
|
|
9
|
+
Diagnostic,
|
|
10
|
+
ExampleFile,
|
|
11
|
+
ExampleOutcome,
|
|
12
|
+
Rule,
|
|
13
|
+
RuleCategory,
|
|
14
|
+
RuleDocumentation,
|
|
15
|
+
RuleExample,
|
|
16
|
+
Severity,
|
|
17
|
+
)
|
|
18
|
+
from sarj_python_lint.rules._logging import is_logger_expr
|
|
19
|
+
from sarj_python_lint.rules._paths import is_test_path, is_test_support_path
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
if TYPE_CHECKING:
|
|
23
|
+
from collections.abc import Iterator, Mapping
|
|
24
|
+
|
|
25
|
+
from sarj_python_lint._file_context import PythonFileContext
|
|
26
|
+
from sarj_python_lint.rules._imports import ImportIndex
|
|
27
|
+
|
|
28
|
+
_RUFF_OWNED_BROAD_HANDLERS = frozenset({"Exception", "BaseException"})
|
|
29
|
+
_DELIBERATE_CONTROL_SIGNALS = frozenset(
|
|
30
|
+
{
|
|
31
|
+
"AttributeError",
|
|
32
|
+
"FileExistsError",
|
|
33
|
+
"FileNotFoundError",
|
|
34
|
+
"GeneratorExit",
|
|
35
|
+
"ImportError",
|
|
36
|
+
"IndexError",
|
|
37
|
+
"KeyError",
|
|
38
|
+
"KeyboardInterrupt",
|
|
39
|
+
"LookupError",
|
|
40
|
+
"ModuleNotFoundError",
|
|
41
|
+
"StopAsyncIteration",
|
|
42
|
+
"StopIteration",
|
|
43
|
+
"SystemExit",
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _builtin_exception_names(root: type[BaseException]) -> Iterator[str]:
|
|
49
|
+
yield root.__name__
|
|
50
|
+
for child in root.__subclasses__():
|
|
51
|
+
if child.__module__ == "builtins" and not child.__name__.startswith("_"):
|
|
52
|
+
yield from _builtin_exception_names(child)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
_BUILTIN_EXCEPTIONS = frozenset(_builtin_exception_names(BaseException))
|
|
56
|
+
_HIDDEN_LEVELS = frozenset({"debug", "trace"})
|
|
57
|
+
_MESSAGE = (
|
|
58
|
+
"This handler records {caught} only at debug level and continues; let it propagate, return a typed failure, "
|
|
59
|
+
"or log it at warning/error with the exception attached."
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
_SOURCE = """\
|
|
63
|
+
import logging
|
|
64
|
+
|
|
65
|
+
from google.api_core.exceptions import GoogleAPIError
|
|
66
|
+
|
|
67
|
+
logger = logging.getLogger(__name__)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def delete_object(store, path: str) -> None:
|
|
71
|
+
try:
|
|
72
|
+
store.delete(path=path)
|
|
73
|
+
except (GoogleAPIError, OSError) as error:
|
|
74
|
+
{handler}
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
@final
|
|
79
|
+
class NoSwallowedException(Rule):
|
|
80
|
+
id = "no-swallowed-exception"
|
|
81
|
+
code = "SARJ597"
|
|
82
|
+
documentation = RuleDocumentation(
|
|
83
|
+
default_level=Severity.WARNING,
|
|
84
|
+
summary="Surface caught operational failures instead of recording them only at debug level.",
|
|
85
|
+
rationale=(
|
|
86
|
+
"A handler that catches a specific failure, writes it only to a debug or trace log and then continues "
|
|
87
|
+
"makes the failure invisible: production log levels drop the record, the caller observes success and "
|
|
88
|
+
"no traceback survives. Leaked resources and partial cleanups then go unnoticed."
|
|
89
|
+
),
|
|
90
|
+
remediation=(
|
|
91
|
+
"Let the error propagate, or handle it explicitly with a typed result the caller must inspect. For "
|
|
92
|
+
"deliberate best-effort cleanup, record it at warning or error level with the exception attached, for "
|
|
93
|
+
"example logger.exception(...), logger.warning(..., exc_info=True) or "
|
|
94
|
+
"logger.opt(exception=error).warning(...)."
|
|
95
|
+
),
|
|
96
|
+
category=RuleCategory.CORRECTNESS,
|
|
97
|
+
autofix=AutofixPolicy.NONE,
|
|
98
|
+
limitations=(
|
|
99
|
+
(
|
|
100
|
+
"Only handlers whose whole body is debug/trace logging, optionally with pass, an ellipsis, continue "
|
|
101
|
+
"or a bare return from a function annotated -> None, are reported. A logging call with exc_info or "
|
|
102
|
+
"a loguru opt(exception=...) receiver attaches the exception and is accepted. Info-level records "
|
|
103
|
+
"and handlers without any log call are out of scope: on the evaluated corpora they were deliberate "
|
|
104
|
+
"control flow such as fallbacks, retries and disconnects."
|
|
105
|
+
),
|
|
106
|
+
(
|
|
107
|
+
"Bare, Exception and BaseException handlers belong to Ruff BLE001, S110 and S112. CancelledError "
|
|
108
|
+
"belongs to SARJ458. ImportError probes, process control, iteration protocol, expected lookups "
|
|
109
|
+
"(KeyError, IndexError, LookupError, AttributeError, FileNotFoundError, FileExistsError) and "
|
|
110
|
+
"exception classes defined in the same module are treated as deliberate signals."
|
|
111
|
+
),
|
|
112
|
+
(
|
|
113
|
+
"Exception types must be builtins or imported names; aliases, tuples bound to variables and dynamic "
|
|
114
|
+
"expressions abstain. Logger receivers are recognised by name. contextlib.suppress, code after the "
|
|
115
|
+
"try statement, tests, test support and generated files are not analysed."
|
|
116
|
+
),
|
|
117
|
+
),
|
|
118
|
+
examples=(
|
|
119
|
+
RuleExample(
|
|
120
|
+
example_id="debug-only-cleanup",
|
|
121
|
+
title="A cleanup failure is visible only at debug level",
|
|
122
|
+
outcome=ExampleOutcome.MATCH,
|
|
123
|
+
files=(
|
|
124
|
+
ExampleFile.python(
|
|
125
|
+
"storage/cleanup.py",
|
|
126
|
+
_SOURCE.format(
|
|
127
|
+
handler=' logger.debug("cleanup unavailable", extra={"error": type(error).__name__})'
|
|
128
|
+
),
|
|
129
|
+
),
|
|
130
|
+
),
|
|
131
|
+
focus_path=PurePosixPath("storage/cleanup.py"),
|
|
132
|
+
expected_count=1,
|
|
133
|
+
public=True,
|
|
134
|
+
),
|
|
135
|
+
RuleExample(
|
|
136
|
+
example_id="warning-with-traceback",
|
|
137
|
+
title="Best-effort cleanup is recorded with the exception attached",
|
|
138
|
+
outcome=ExampleOutcome.NO_MATCH,
|
|
139
|
+
files=(
|
|
140
|
+
ExampleFile.python(
|
|
141
|
+
"storage/cleanup.py",
|
|
142
|
+
_SOURCE.format(handler=' logger.warning("cleanup failed", exc_info=error)'),
|
|
143
|
+
),
|
|
144
|
+
),
|
|
145
|
+
focus_path=PurePosixPath("storage/cleanup.py"),
|
|
146
|
+
expected_count=0,
|
|
147
|
+
public=True,
|
|
148
|
+
),
|
|
149
|
+
RuleExample(
|
|
150
|
+
example_id="propagate",
|
|
151
|
+
title="The failure propagates to the owner",
|
|
152
|
+
outcome=ExampleOutcome.NO_MATCH,
|
|
153
|
+
files=(
|
|
154
|
+
ExampleFile.python(
|
|
155
|
+
"storage/cleanup.py",
|
|
156
|
+
"def delete_object(store, path: str) -> None:\n store.delete(path=path)\n",
|
|
157
|
+
),
|
|
158
|
+
),
|
|
159
|
+
focus_path=PurePosixPath("storage/cleanup.py"),
|
|
160
|
+
expected_count=0,
|
|
161
|
+
public=False,
|
|
162
|
+
),
|
|
163
|
+
),
|
|
164
|
+
)
|
|
165
|
+
description = documentation.summary
|
|
166
|
+
|
|
167
|
+
@override
|
|
168
|
+
def check_context(self, context: PythonFileContext) -> list[Diagnostic]:
|
|
169
|
+
source = context.symbol_source
|
|
170
|
+
if "except" not in source or not ("debug" in source or "trace" in source):
|
|
171
|
+
return []
|
|
172
|
+
if context.generated or is_test_path(context.path) or is_test_support_path(context.path):
|
|
173
|
+
return []
|
|
174
|
+
tree = context.tree
|
|
175
|
+
if tree is None or context.has_wildcard_import:
|
|
176
|
+
return []
|
|
177
|
+
local_classes = frozenset(node.name for node in tree.body if isinstance(node, ast.ClassDef))
|
|
178
|
+
parents = context.parents
|
|
179
|
+
diagnostics: list[Diagnostic] = []
|
|
180
|
+
for node in context.nodes(ast.Try, ast.TryStar):
|
|
181
|
+
for handler in node.handlers:
|
|
182
|
+
caught = _caught_names(handler.type, context.imports, local_classes)
|
|
183
|
+
if caught is None or not _hidden_body(
|
|
184
|
+
handler.body, _enclosing_function(node, parents), context.imports
|
|
185
|
+
):
|
|
186
|
+
continue
|
|
187
|
+
if context.suppressions.is_suppressed(handler.lineno, self.code):
|
|
188
|
+
continue
|
|
189
|
+
diagnostics.append(
|
|
190
|
+
Diagnostic(
|
|
191
|
+
path=context.path,
|
|
192
|
+
line=handler.lineno,
|
|
193
|
+
col=handler.col_offset + 1,
|
|
194
|
+
code=self.code,
|
|
195
|
+
message=_MESSAGE.format(caught=", ".join(caught)),
|
|
196
|
+
severity=Severity.WARNING,
|
|
197
|
+
)
|
|
198
|
+
)
|
|
199
|
+
return sorted(diagnostics, key=lambda item: (item.line, item.col))
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
def _caught_names(
|
|
203
|
+
expression: ast.expr | None, imports: ImportIndex, local_classes: frozenset[str]
|
|
204
|
+
) -> tuple[str, ...] | None:
|
|
205
|
+
match expression:
|
|
206
|
+
case None:
|
|
207
|
+
return None
|
|
208
|
+
case ast.Tuple():
|
|
209
|
+
elements = expression.elts
|
|
210
|
+
case _:
|
|
211
|
+
elements = [expression]
|
|
212
|
+
names: list[str] = []
|
|
213
|
+
for element in elements:
|
|
214
|
+
if (name := _operational_failure(element, imports, local_classes)) is None:
|
|
215
|
+
return None
|
|
216
|
+
names.append(name)
|
|
217
|
+
return tuple(names)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
def _operational_failure(expression: ast.expr, imports: ImportIndex, local_classes: frozenset[str]) -> str | None:
|
|
221
|
+
ignored = _RUFF_OWNED_BROAD_HANDLERS | _DELIBERATE_CONTROL_SIGNALS
|
|
222
|
+
match expression:
|
|
223
|
+
case ast.Name(id=name) if imports.builtin_is_unshadowed(name):
|
|
224
|
+
return None if name in ignored or name not in _BUILTIN_EXCEPTIONS else name
|
|
225
|
+
case ast.Name(id=name) if name in local_classes:
|
|
226
|
+
return None
|
|
227
|
+
case _:
|
|
228
|
+
qualified = imports.resolved_qualified_name(expression)
|
|
229
|
+
if qualified is None or qualified.rsplit(".", 1)[-1] in ignored | {"CancelledError"}:
|
|
230
|
+
return None
|
|
231
|
+
return ast.unparse(expression)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
def _enclosing_function(
|
|
235
|
+
node: ast.AST, parents: Mapping[ast.AST, ast.AST]
|
|
236
|
+
) -> ast.FunctionDef | ast.AsyncFunctionDef | None:
|
|
237
|
+
current = parents.get(node)
|
|
238
|
+
while current is not None:
|
|
239
|
+
match current:
|
|
240
|
+
case ast.FunctionDef() | ast.AsyncFunctionDef():
|
|
241
|
+
return current
|
|
242
|
+
case ast.ClassDef() | ast.Lambda():
|
|
243
|
+
return None
|
|
244
|
+
case _:
|
|
245
|
+
current = parents.get(current)
|
|
246
|
+
return None
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
def _hidden_body(
|
|
250
|
+
body: list[ast.stmt], function: ast.FunctionDef | ast.AsyncFunctionDef | None, imports: ImportIndex
|
|
251
|
+
) -> bool:
|
|
252
|
+
logged = False
|
|
253
|
+
for statement in body:
|
|
254
|
+
match statement:
|
|
255
|
+
case ast.Pass() | ast.Continue() | ast.Expr(value=ast.Constant()):
|
|
256
|
+
continue
|
|
257
|
+
case ast.Return(value=None) | ast.Return(value=ast.Constant(value=None)) if _returns_none(function):
|
|
258
|
+
continue
|
|
259
|
+
case ast.Expr(value=ast.Call() as call) if _hidden_log(call, imports):
|
|
260
|
+
logged = True
|
|
261
|
+
case _:
|
|
262
|
+
return False
|
|
263
|
+
return logged
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
def _returns_none(function: ast.FunctionDef | ast.AsyncFunctionDef | None) -> bool:
|
|
267
|
+
return function is not None and isinstance(function.returns, ast.Constant) and function.returns.value is None
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def _hidden_log(call: ast.Call, imports: ImportIndex) -> bool:
|
|
271
|
+
if not isinstance(call.func, ast.Attribute) or call.func.attr not in _HIDDEN_LEVELS:
|
|
272
|
+
return False
|
|
273
|
+
if any(keyword.arg is None or keyword.arg == "exc_info" for keyword in call.keywords):
|
|
274
|
+
return False
|
|
275
|
+
receiver = call.func.value
|
|
276
|
+
while (
|
|
277
|
+
isinstance(receiver, ast.Call)
|
|
278
|
+
and isinstance(receiver.func, ast.Attribute)
|
|
279
|
+
and receiver.func.attr in {"bind", "opt"}
|
|
280
|
+
):
|
|
281
|
+
if any(keyword.arg is None or keyword.arg == "exception" for keyword in receiver.keywords):
|
|
282
|
+
return False
|
|
283
|
+
receiver = receiver.func.value
|
|
284
|
+
return is_logger_expr(receiver) or imports.resolved_qualified_name(receiver) == "loguru.logger"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_analysis_session.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_aliases.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_annotations.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_comments.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_enums.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_inert.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_parameters.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_repeated.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_security.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_autofix_tests.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_closed_sql_literal.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_prepared_sources.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/_python_target.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/application_logging.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/interpreter_argv.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_ast_index.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_ast_names.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_ast_position.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_async_lifecycle.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_closed_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_comments.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_copy_on_write.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_dict_key_views.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_docstrings.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_exports.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_fastapi.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_fastapi_access.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_first_party.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_fixed_record.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_generic_payload.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_httpx_clients.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_imports.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_local_alias_fix.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_local_source.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_logging.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_nominal_project.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_numeric_proof.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_postgres.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_project_index.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_prose_budget.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_route_shapes.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_runtime_names.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_set_fields.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_store_sql.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_store_writes.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_suite_flow.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_test_assertions.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.162.0 → sarj_python_lint-1.163.0}/src/sarj_python_lint/rules/_test_provenance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|