sarj-python-lint 1.152.0__tar.gz → 1.154.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.152.0 → sarj_python_lint-1.154.0}/PKG-INFO +3 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/pyproject.toml +2 -2
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/__main__.py +6 -9
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_docs.py +9 -2
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_file_context.py +7 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_parallel.py +6 -7
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_python_target.py +4 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_ratchet_cli.py +4 -6
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_rule_descriptors.py +4 -4
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/application_logging.py +3 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/benchmark.py +4 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/json_boundary.py +3 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_annotation_origins.py +31 -5
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_ast_index.py +2 -5
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_comments.py +26 -2
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_docstrings.py +4 -6
- sarj_python_lint-1.154.0/src/sarj_python_lint/rules/_domain_boundaries.py +357 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_fixed_record.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_project_index.py +4 -7
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_prose_budget.py +4 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +2 -4
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/excessive_commentary.py +95 -12
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +8 -5
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/mock_without_spec.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_comment_cruft.py +3 -26
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +8 -7
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +70 -4
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +4 -2
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +1 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_secret_in_log.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_test_comments.py +11 -4
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +88 -14
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +6 -9
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/over_mocked_test.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_exception_propagation.py +62 -22
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +8 -12
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_library_fake.py +2 -4
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +4 -8
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +62 -2
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +1 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_str_enum.py +4 -7
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +2 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +4 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +4 -6
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +4 -1
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/unused_mock_setup.py +1 -3
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/.gitignore +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/LICENSE +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/README.md +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_security.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/cast_access.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rule_base.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_declared_contracts.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_httpx_clients.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_logging.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_nullable_outcome.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_registry.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_sdk_metadata_fields.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_sdk_prerequisite.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_sql.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_value_models.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_nonlocal_statement.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_unscoped_async_client_factory.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_value_error_forwarder.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_defaultdict.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_required_prerequisite.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_single_parametrize_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/psycopg_sql_format_field_mismatch.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_hidden_settings_input.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/sql_literals.py +0 -0
- {sarj_python_lint-1.152.0 → sarj_python_lint-1.154.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.154.0
|
|
4
4
|
Summary: Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults
|
|
5
5
|
Project-URL: Homepage, https://code-standards.sarj.ai/rules/python/
|
|
6
6
|
Project-URL: Documentation, https://code-standards.sarj.ai/rules/python/
|
|
@@ -19,8 +19,8 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
19
19
|
Requires-Python: >=3.14
|
|
20
20
|
Requires-Dist: packaging==26.3
|
|
21
21
|
Requires-Dist: ruff>=0.17.2
|
|
22
|
-
Requires-Dist: sarj-rule-contracts==0.8.
|
|
23
|
-
Requires-Dist: sarj-sql-lint==0.50.
|
|
22
|
+
Requires-Dist: sarj-rule-contracts==0.8.2
|
|
23
|
+
Requires-Dist: sarj-sql-lint==0.50.3
|
|
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.154.0"
|
|
4
4
|
description = "Custom Python lint rules — AST-based, pre-commit-friendly, hypermodern defaults"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "sarj-ai" }]
|
|
@@ -15,7 +15,7 @@ classifiers = [
|
|
|
15
15
|
"Programming Language :: Python :: 3.14",
|
|
16
16
|
"Topic :: Software Development :: Quality Assurance",
|
|
17
17
|
]
|
|
18
|
-
dependencies = ["sarj-rule-contracts==0.8.
|
|
18
|
+
dependencies = ["sarj-rule-contracts==0.8.2", "sarj-sql-lint==0.50.3", "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"
|
|
@@ -309,19 +309,16 @@ _DIAGNOSTIC_PRECEDENCE = MappingProxyType(
|
|
|
309
309
|
"SARJ089": frozenset({"SARJ551"}),
|
|
310
310
|
"SARJ092": frozenset({"SARJ086", "SARJ087", "SARJ420"}),
|
|
311
311
|
"SARJ093": frozenset({"SARJ034"}),
|
|
312
|
-
# Visible FastAPI operations have a route-aware contract diagnostic.
|
|
313
|
-
#
|
|
314
|
-
# when a concrete response_model makes the route contract complete.
|
|
312
|
+
# Visible FastAPI operations have a route-aware contract diagnostic. Keep the annotation diagnostics when
|
|
313
|
+
# SARJ094 is absent, including when a concrete response_model makes the route contract complete.
|
|
315
314
|
"SARJ094": frozenset({"SARJ008", "SARJ447", "SARJ568"}),
|
|
316
315
|
"SARJ095": frozenset({"SARJ468"}),
|
|
317
316
|
"SARJ099": frozenset({"SARJ420"}),
|
|
318
|
-
# A proven external or nested request boundary already requires schema
|
|
319
|
-
#
|
|
320
|
-
# that more specific rule is unselected or locally suppressed.
|
|
317
|
+
# A proven external or nested request boundary already requires schema validation at this field read. Retain
|
|
318
|
+
# standalone shape advice when that more specific rule is unselected or locally suppressed.
|
|
321
319
|
"SARJ411": frozenset({"SARJ521", "SARJ535"}),
|
|
322
|
-
# Any-valued mappings are the stronger correctness failure. SARJ008
|
|
323
|
-
#
|
|
324
|
-
# an all-rules run emits one actionable diagnostic for this overlap.
|
|
320
|
+
# Any-valued mappings are the stronger correctness failure. SARJ008 still owns every fixed dictionary return
|
|
321
|
+
# when selected alone, while an all-rules run emits one actionable diagnostic for this overlap.
|
|
325
322
|
"SARJ447": frozenset({"SARJ008"}),
|
|
326
323
|
"SARJ450": frozenset({"SARJ521", "SARJ535"}),
|
|
327
324
|
"SARJ521": frozenset({"SARJ535"}),
|
|
@@ -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
|
|
@@ -22,6 +22,7 @@ if TYPE_CHECKING:
|
|
|
22
22
|
from pathlib import Path
|
|
23
23
|
|
|
24
24
|
from sarj_python_lint.rules._copy_on_write import CopyOnWriteAnalysis
|
|
25
|
+
from sarj_python_lint.rules._domain_boundaries import DomainBoundaries
|
|
25
26
|
from sarj_python_lint.rules._resource_provenance import ResourceProvenance
|
|
26
27
|
from sarj_python_lint.rules._store_sql import StoreQuery
|
|
27
28
|
from sarj_python_lint.rules._test_provenance import TestProvenance
|
|
@@ -119,6 +120,12 @@ class PythonFileContext:
|
|
|
119
120
|
def annotation_semantics(self) -> AnnotationSemantics:
|
|
120
121
|
return AnnotationSemantics.from_imports(self._valid_tree(), self.module_imports)
|
|
121
122
|
|
|
123
|
+
@cached_property
|
|
124
|
+
def domain_boundaries(self) -> DomainBoundaries:
|
|
125
|
+
from sarj_python_lint.rules._domain_boundaries import DomainBoundaries # ruff: ignore[import-outside-top-level] -- share scoped domain facts without a context import cycle.
|
|
126
|
+
|
|
127
|
+
return DomainBoundaries(self)
|
|
128
|
+
|
|
122
129
|
@cached_property
|
|
123
130
|
def dynamic_namespace(self) -> bool:
|
|
124
131
|
return dynamic_namespace_access(self.nodes(ast.AST), self.imports, self.parents)
|
|
@@ -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
|
|
@@ -137,12 +140,8 @@ def check_parallel(
|
|
|
137
140
|
source_inputs: PreparedSourceInputs | None = None,
|
|
138
141
|
frozen: FrozenResolutions | None = None,
|
|
139
142
|
) -> list[Diagnostic] | None:
|
|
140
|
-
#
|
|
141
|
-
#
|
|
142
|
-
# Select the untouched serial session before a large batch can require a
|
|
143
|
-
# complete parallel pass followed by the same quota-sensitive serial replay.
|
|
144
|
-
# A frozen resolution cache has already spent that quota, so its remaining
|
|
145
|
-
# files only need the module quota check below.
|
|
143
|
+
# Workers share the complete immutable snapshot. Choose serial fallback before replay exhausts resolution quota;
|
|
144
|
+
# frozen caches need only module-quota checks.
|
|
146
145
|
if frozen is None and len(loaded) >= LOCAL_SOURCE_CACHE_LIMIT:
|
|
147
146
|
return None
|
|
148
147
|
source_snapshot = None if source_inputs is None else source_inputs.source_snapshot()
|
|
@@ -182,7 +181,7 @@ def check_parallel(
|
|
|
182
181
|
)
|
|
183
182
|
for path, source in loaded.items()
|
|
184
183
|
)
|
|
185
|
-
for result in pool.map(_check_file, items, chunksize=1, buffersize=workers *
|
|
184
|
+
for result in pool.map(_check_file, items, chunksize=1, buffersize=workers * _BUFFERED_ITEMS_PER_WORKER):
|
|
186
185
|
# Drain actual results after either replay signal so a later worker
|
|
187
186
|
# failure cannot be disguised as a clean serial replay.
|
|
188
187
|
if needs_serial:
|
{sarj_python_lint-1.152.0 → sarj_python_lint-1.154.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(
|
|
@@ -102,9 +102,8 @@ def _run(args: _Options) -> int:
|
|
|
102
102
|
return 2
|
|
103
103
|
|
|
104
104
|
if args.update:
|
|
105
|
-
# A first seed has nothing to raise: every ceiling is 0 only because no
|
|
106
|
-
#
|
|
107
|
-
# on the run that adopts it.
|
|
105
|
+
# A first seed has nothing to raise: every ceiling is 0 only because no baseline exists yet, and refusing that
|
|
106
|
+
# would make the tool unusable on the run that adopts it.
|
|
108
107
|
return _update(
|
|
109
108
|
measurement,
|
|
110
109
|
baseline,
|
|
@@ -154,9 +153,8 @@ def _ruff_selector_aliases() -> dict[str, str]:
|
|
|
154
153
|
code = raw_item.get("code")
|
|
155
154
|
name = raw_item.get("name")
|
|
156
155
|
if code is None and isinstance(name, str):
|
|
157
|
-
# Ruff accepts the name as the stable selector until it allocates
|
|
158
|
-
#
|
|
159
|
-
# rejecting a valid Ruff directive.
|
|
156
|
+
# Ruff accepts the name as the stable selector until it allocates a code, so preserve that suppression
|
|
157
|
+
# identity rather than rejecting a valid Ruff directive.
|
|
160
158
|
canonical = name.lower()
|
|
161
159
|
aliases[canonical] = canonical
|
|
162
160
|
continue
|
{sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/_rule_descriptors.py
RENAMED
|
@@ -13,7 +13,7 @@ DESCRIPTORS: tuple[RuleDescriptor, ...] = (
|
|
|
13
13
|
module="sarj_python_lint.rules.prefer_exception_propagation",
|
|
14
14
|
class_name="PreferExceptionPropagation",
|
|
15
15
|
code="SARJ585",
|
|
16
|
-
description="
|
|
16
|
+
description="Propagate exceptions instead of replacing them with message-only generic errors.",
|
|
17
17
|
aliases=(),
|
|
18
18
|
enabled_by_default=True,
|
|
19
19
|
),
|
|
@@ -337,7 +337,7 @@ DESCRIPTORS: tuple[RuleDescriptor, ...] = (
|
|
|
337
337
|
module="sarj_python_lint.rules.no_custom_control_flow_exception",
|
|
338
338
|
class_name="NoCustomControlFlowException",
|
|
339
339
|
code="SARJ542",
|
|
340
|
-
description="
|
|
340
|
+
description="Enforce domain invariants at construction; represent expected rejection in typed outcomes.",
|
|
341
341
|
aliases=(),
|
|
342
342
|
enabled_by_default=True,
|
|
343
343
|
),
|
|
@@ -922,7 +922,7 @@ DESCRIPTORS: tuple[RuleDescriptor, ...] = (
|
|
|
922
922
|
module="sarj_python_lint.rules.excessive_commentary",
|
|
923
923
|
class_name="ExcessiveCommentary",
|
|
924
924
|
code="SARJ434",
|
|
925
|
-
description="
|
|
925
|
+
description="Keep necessary comments within two lines and 40 words; delete redundant narration.",
|
|
926
926
|
aliases=(),
|
|
927
927
|
enabled_by_default=True,
|
|
928
928
|
),
|
|
@@ -1930,7 +1930,7 @@ DESCRIPTORS: tuple[RuleDescriptor, ...] = (
|
|
|
1930
1930
|
module="sarj_python_lint.rules.prefer_nominal_id_types",
|
|
1931
1931
|
class_name="PreferNominalIdTypes",
|
|
1932
1932
|
code="SARJ093",
|
|
1933
|
-
description="
|
|
1933
|
+
description="Preserve established domain types and distinguish swappable identifier roles.",
|
|
1934
1934
|
aliases=(),
|
|
1935
1935
|
enabled_by_default=True,
|
|
1936
1936
|
),
|
{sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/application_logging.py
RENAMED
|
@@ -65,7 +65,9 @@ def application_logging_uses(path: Path, source: str, *, root: Path) -> tuple[Ap
|
|
|
65
65
|
raise ValueError(msg)
|
|
66
66
|
try:
|
|
67
67
|
relative = path.relative_to(root)
|
|
68
|
-
except
|
|
68
|
+
except (
|
|
69
|
+
ValueError
|
|
70
|
+
) as exc: # sarj-noqa: SARJ585 -- Containment errors must not expose absolute private repository paths.
|
|
69
71
|
msg = "logging policy source escapes repository root"
|
|
70
72
|
raise ValueError(msg) from exc
|
|
71
73
|
if relative.suffix not in {".py", ".pyi"} or len(source) > _MAX_SOURCE_CHARACTERS:
|
|
@@ -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(
|
|
@@ -5,7 +5,9 @@ from typing import TypeIs
|
|
|
5
5
|
def parse_json(text: str) -> object:
|
|
6
6
|
try:
|
|
7
7
|
return json.loads(text, object_pairs_hook=_unique_pairs, parse_constant=_invalid_constant) # pyright: ignore[reportAny] -- untyped stdlib parser boundary.
|
|
8
|
-
except
|
|
8
|
+
except (
|
|
9
|
+
RecursionError
|
|
10
|
+
) as error: # sarj-noqa: SARJ585 -- Bounded JSON decoding exposes depth rejection through ValueError.
|
|
9
11
|
message = "JSON nesting exceeds the supported depth"
|
|
10
12
|
raise ValueError(message) from error
|
|
11
13
|
|
|
@@ -33,7 +33,7 @@ class AnnotationOrigins:
|
|
|
33
33
|
value = self.context.annotation_semantics.aliases.get(node.id)
|
|
34
34
|
if value is None:
|
|
35
35
|
return None
|
|
36
|
-
binding = self.
|
|
36
|
+
binding = self.binding(node.id, at)
|
|
37
37
|
if not isinstance(binding, ast.Name):
|
|
38
38
|
return None
|
|
39
39
|
parent = self.context.parents.get(binding)
|
|
@@ -75,19 +75,45 @@ class AnnotationOrigins:
|
|
|
75
75
|
or type_parameter_shadow(root.id, at, self.context)
|
|
76
76
|
):
|
|
77
77
|
return None
|
|
78
|
-
binding = self.
|
|
78
|
+
binding = self.binding(root.id, at)
|
|
79
79
|
parent = self.context.parents.get(binding) if binding is not None else None
|
|
80
80
|
index = self.imports.get(parent) if isinstance(parent, ast.Import | ast.ImportFrom) else None
|
|
81
81
|
return index.resolved_qualified_name(node) if index is not None else None
|
|
82
82
|
|
|
83
83
|
def builtin(self, node: ast.expr, name: str, at: ast.AST) -> bool:
|
|
84
|
-
|
|
84
|
+
if not (
|
|
85
85
|
self.provenance.builtin_namespace_untouched
|
|
86
86
|
and isinstance(node, ast.Name)
|
|
87
87
|
and node.id == name
|
|
88
88
|
and not type_parameter_shadow(name, at, self.context)
|
|
89
|
-
and self.
|
|
90
|
-
)
|
|
89
|
+
and self.binding(name, at) is None
|
|
90
|
+
):
|
|
91
|
+
return False
|
|
92
|
+
scope = self.provenance.scope(self._lookup_at(at))
|
|
93
|
+
while scope is not None:
|
|
94
|
+
if name in self.provenance.bindings.get(scope, {}):
|
|
95
|
+
return False
|
|
96
|
+
scope = self.provenance.scope(scope)
|
|
97
|
+
return True
|
|
98
|
+
|
|
99
|
+
def binding(self, name: str, at: ast.AST) -> ast.AST | None:
|
|
100
|
+
if type_parameter_shadow(name, at, self.context):
|
|
101
|
+
return None
|
|
102
|
+
return self.provenance.binding(name, self._lookup_at(at))
|
|
103
|
+
|
|
104
|
+
def _lookup_at(self, at: ast.AST) -> ast.AST:
|
|
105
|
+
current = at
|
|
106
|
+
while (parent := self.context.parents.get(current)) is not None:
|
|
107
|
+
if isinstance(parent, ast.Lambda | ast.ListComp | ast.SetComp | ast.DictComp | ast.GeneratorExp):
|
|
108
|
+
return at
|
|
109
|
+
if isinstance(parent, ast.arg) and current is parent.annotation:
|
|
110
|
+
arguments = self.context.parents.get(parent)
|
|
111
|
+
function = self.context.parents.get(arguments) if arguments is not None else None
|
|
112
|
+
return function if isinstance(function, ast.FunctionDef | ast.AsyncFunctionDef) else at
|
|
113
|
+
if isinstance(parent, ast.FunctionDef | ast.AsyncFunctionDef) and current is parent.returns:
|
|
114
|
+
return parent
|
|
115
|
+
current = parent
|
|
116
|
+
return at
|
|
91
117
|
|
|
92
118
|
|
|
93
119
|
def type_parameter_shadow(name: str, at: ast.AST, context: PythonFileContext) -> bool:
|
{sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_ast_index.py
RENAMED
|
@@ -105,11 +105,8 @@ def walk(node: ast.AST, *, index: NodeIndex | None = None) -> Iterator[ast.AST]:
|
|
|
105
105
|
yield current
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
#
|
|
109
|
-
#
|
|
110
|
-
# module once, on first use. The registry is weak, so the index lives exactly as
|
|
111
|
-
# long as its owner. Unowned (usually synthetic) modules are walked directly:
|
|
112
|
-
# indexing costs more than one walk.
|
|
108
|
+
# SourceUnit owns a weakly registered SharedModule, indexing its immutable AST once. Unowned synthetic modules use
|
|
109
|
+
# direct walks.
|
|
113
110
|
@final
|
|
114
111
|
class SharedModule:
|
|
115
112
|
def __init__(self, tree: ast.Module) -> None:
|
{sarj_python_lint-1.152.0 → sarj_python_lint-1.154.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
|
{sarj_python_lint-1.152.0 → sarj_python_lint-1.154.0}/src/sarj_python_lint/rules/_docstrings.py
RENAMED
|
@@ -174,9 +174,8 @@ PROMPT_DECORATOR_MARKERS = frozenset(
|
|
|
174
174
|
}
|
|
175
175
|
)
|
|
176
176
|
|
|
177
|
-
# Class docstrings consumed as schema descriptions rather than reader-only
|
|
178
|
-
#
|
|
179
|
-
# the runtime base/decorator still has one of these stable framework surfaces.
|
|
177
|
+
# Class docstrings consumed as schema descriptions rather than reader-only prose. Final dotted names are intentional:
|
|
178
|
+
# imports can alias packages, while the runtime base/decorator still has one of these stable framework surfaces.
|
|
180
179
|
SCHEMA_BASE_NAMES = frozenset(
|
|
181
180
|
{
|
|
182
181
|
"BaseModel",
|
|
@@ -195,9 +194,8 @@ SCHEMA_BASE_NAMES = frozenset(
|
|
|
195
194
|
|
|
196
195
|
SCHEMA_DECORATOR_MARKERS = frozenset({"graphene", "msgspec", "pydantic", "strawberry"})
|
|
197
196
|
|
|
198
|
-
# Python/framework constructs that visibly publish or copy the decorated
|
|
199
|
-
#
|
|
200
|
-
# exist.
|
|
197
|
+
# Python/framework constructs that visibly publish or copy the decorated function's docstring. Generic decorators are
|
|
198
|
+
# not exempt merely because they exist.
|
|
201
199
|
FRAMEWORK_DOCSTRING_DECORATOR_MARKERS = PROMPT_DECORATOR_MARKERS | frozenset(
|
|
202
200
|
{"cached_property", "fixture", "property", "wraps"}
|
|
203
201
|
)
|