sarj-python-lint 1.136.0__tar.gz → 1.137.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.136.0 → sarj_python_lint-1.137.0}/PKG-INFO +1 -1
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/pyproject.toml +1 -1
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_rule_descriptors.py +9 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_declared_contracts.py +5 -5
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_registry.py +2 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_value_models.py +3 -3
- sarj_python_lint-1.137.0/src/sarj_python_lint/rules/require_hidden_settings_input.py +381 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/.gitignore +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/LICENSE +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/README.md +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/__init__.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/__main__.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_analysis_session.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_aliases.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_annotations.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_comments.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_declared_contracts.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_declared_tests.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_docs.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_enums.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_exhaustiveness.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_inert.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_parameters.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_repeated.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_security.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_sql_projection.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_tests.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_closed_sql_literal.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_file_context.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_filesystem.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_fixes.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_parallel.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_prepared_sources.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_python_target.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_ratchet_cli.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_secret_names.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_source.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_version.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/application_logging.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/autofix.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/benchmark.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/cast_access.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/interpreter_argv.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/json_boundary.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/py.typed +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/ratchet.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rule_base.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rule_metadata.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/__init__.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_annotation_origins.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_annotation_semantics.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_ast_index.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_ast_names.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_ast_position.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_async_lifecycle.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_binding_inventory.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_closed_helpers.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_comment_narration.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_comments.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_contract_annotation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_copy_on_write.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_data_union_discriminator.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_dict_key_views.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_docstrings.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_exports.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_fastapi.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_fastapi_access.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_first_party.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_fixed_record.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_fixture_contracts.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_generic_payload.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_imports.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_inert_model_annotation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_inherited_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_local_alias_fix.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_local_source.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_logging.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_loguru.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_mapping_shape_callbacks.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_namespace_access.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_native_namespace_capability.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_native_object_contracts.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_nominal_project.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_nullable_outcome.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_numeric_proof.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_opaque_contracts.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_paths.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_postgres.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_project_index.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_prose_budget.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_pydantic_field_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_pytest.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_pytest_contract_parameters.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_resolved_operation_signature.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_resource_provenance.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_route_shapes.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_runtime_bindings.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_runtime_names.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_runtime_registry.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_service_http_callbacks.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_set_fields.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_sql.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_static_json_alias.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_store_sql.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_store_writes.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_suppression_comments.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_test_assertions.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_test_composition.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_test_provenance.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_transactional_sql.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_type_guard_symbols.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/async_cleanup_registered_synchronously.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/async_executor_shutdown.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/async_mock_call_without_await_assertion.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/async_subprocess_cancellation_cleanup.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/cancel_owned_task_without_join.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/complex_postgres_query_requires_architecture_review.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/defect_xfail_requires_explicit_strict.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/delete_route_returns_no_content.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/docstring_args_restate_signature.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/docstring_returns_restate_signature.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/duplicate_adjacent_exception_handler.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/duplicate_closed_pure_helper.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/duplicate_pytest_fixture_params.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/excessive_commentary.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/failed_probe_zero_threshold.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/fakes_in_shared_location.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/fastapi_class_router_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/fastapi_explicit_openapi_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/fastapi_route_declares_security.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/iac_source_coupled_test.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/invalid_pydantic_field_default.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/mock_without_spec.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/named_record_at_boundaries.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/nan_hidden_by_builtin_min.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/negative_only_http_status_assertion.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_analytical_aggregation_in_postgres_store.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_any_mapping_types.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_async_client_in_constructor.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_async_function_cache.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_before_validator_input_mutation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_blanket_suppression.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_broad_keyword_capture.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_comment_cruft.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_conflicting_pydantic_alias_validation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_conftest_test_module_import.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_contradictory_type_guard.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_copied_inherited_docstring.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_cors_wildcard_with_credentials.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_create_verb_in_post_path.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_custom_control_flow_exception.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_database_programmability.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_defaulted_environment_setting.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_delete_statement.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_discarded_tagged_outcome.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_discarded_validation_result.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_dual_shape_model_field_reader.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_dunder_all.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_duplicate_dunder_all_entry.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_duplicate_field_validator_body.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_dynamic_builtins.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_exception_text_in_500_detail.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_excessive_cognitive_complexity.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_fastapi_on_event.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_file_level_escape_hatch_suppression.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_first_party_private_import.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_fixed_sleep_before_assert.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_fixed_sleep_in_loop.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_folded_bad_request_not_found.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_frozen_after_validator_field_write.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_generic_json_parser.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_generic_single_export_module.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_hasattr.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_hidden_constructor_fallback.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_impossible_pydantic_field_bounds.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_injected_module_loader.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_input_model_mutation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_interpreter_source_arguments.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_invalid_argument_name_suppression.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_invalid_pydantic_bypass.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_invalid_pydantic_validator_return.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_loguru_exc_info.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_loguru_printf_format.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_magic_arithmetic.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_mocked_pydantic_value_object.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_mutating_container_transform.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_mutating_input_with_result.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_nested_pydantic_field_validator.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_nullable_dependency_fallback.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_offset_pagination.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_partial_type_is.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_positional_psycopg_row_escape.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_psycopg_execution_in_loop.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_psycopg_execution_outside_injected_owner.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_random_uuid_in_sql.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_raw_connection_in_tests.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_raw_source_text_test_oracle.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_recording_store.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_redundant_attribute_unpacking.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_redundant_literal_description.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_redundant_local_alias.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_redundant_module_alias_exports.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_redundant_sql_alias.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_repeated_string_literal.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_repeated_test_body.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_restated_comment.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_secret_in_log.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_select_star.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_service_behavior_in_settings.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_shallow_container_type_guard.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_shallow_record_type_guard.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_shared_mutable_default.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_slash_collection_root_under_prefix.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_string_concat_in_loop.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_swallowed_asyncio_cancellation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_sys_path_mutation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_tautological_expect.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_test_comments.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_test_method_grafting.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_typed_doc_sections.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_unique_violation_message_match.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_unknown_pydantic_validator_field.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_unnecessary_docstring.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_unobserved_task_exception.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_unused_copy_result.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_unused_underscored_keyword_parameter.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_unused_value_marker.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_vague_suppression_description.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_whole_request_response_payload_in_log.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/no_work_verb_get_route.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/numeric_literal_separators.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/opaque_parametrize_case_needs_id.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/over_mocked_test.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/phase_label_comment.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_application_model_joins.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_autospec_for_callable_mock.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_bulk_upsert.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_class_row.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_collection_comprehension.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_configured_cloud_scope.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_constant_time_secret_compare.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_coordinated_state_owner.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_declarative_batch_validation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_direct_import_module.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_discriminated_model_union.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_explicit_class_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_explicit_value_model_construction.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_fstring_over_concat.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_grouped_settings.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_immutable_module_constant.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_injected_dependency_over_monkeypatch.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_injected_service.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_library_fake.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_match_assert_never.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_match_exception_dispatch.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_match_type_dispatch.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_match_value_dispatch.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_module_level_constant.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_monkeypatch_for_process_state_in_test.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_monotonic_for_elapsed_time.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_namedtuple_over_tuple_return.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_native_string_check.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_nominal_id_types.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_nominal_mapping_keys.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_non_nullable_collection.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_optional_composite.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_or_pattern.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_outcome_variants.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_precise_object_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_psycopg_executemany.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_pydantic_json_value.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_pydantic_model_assertion.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_pytest_dependency_fixtures.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_pytest_fixture_injection.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_regex_fullmatch.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_required_constructor_parameters.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_runtime_validation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_self_documenting_constant.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_self_type_annotation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_semantic_temporal_types.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_set_isdisjoint.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_single_psycopg_cursor.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_str_enum.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_struct_over_namedtuple.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_typed_cli.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_typed_mapping_get.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_typed_settings_field.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_validated_uuid_comparison.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_walrus_awaited_none_guard.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_walrus_comprehension_filter.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_walrus_regex_match.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/prefer_walrus_stream_loop.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/production_derived_test_cases.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/pytest_fixture_returns_bare_tuple.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/pytest_fixture_returns_closed_resource.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/redundant_class_docstring.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/redundant_docstring.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/redundant_module_docstring.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/redundant_test_constructor_forwarder.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/repeated_kwarg_heavy_call_in_test.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/repeated_static_call_cases.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/repeated_test_composition.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/repeated_unimplemented_test_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_constrained_api_integer.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_exp_on_jwt_decode.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_explicit_contract_implementation.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_explicit_psycopg_transaction.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_explicit_service_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_injectable_retry_sleep.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_keyword_only_swap_prone_params.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_nodecode_for_splitting_settings_field.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_port_for_service.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_precise_factory_signature.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_public_dependency_contract.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_pydantic_for_external_json.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_pydantic_for_mapping_shape.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_pydantic_for_structured_payload.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/require_pydantic_ordinal_lower_bound.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/restated_test_docstring.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/service_singleton_delegates_to_bulk.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/shared_mutable_pydantic_factory.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/stepdown.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/store_field_update_reuses_upsert.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/store_get_delegates_to_bulk_read.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/store_insert_requires_explicit_conflict_policy.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/store_insert_requires_on_conflict.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/store_mutation_command_fanout.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/subprocess_kill_without_reap.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/test_without_explicit_oracle.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/timestamp_order_requires_tiebreaker.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/trailing_value_narration.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/typed_error_reasons.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/uncontrolled_randomness_in_test.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/unused_mock_setup.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/unused_test_factory_option.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/sql_literals.py +0 -0
- {sarj_python_lint-1.136.0 → sarj_python_lint-1.137.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.137.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.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_rule_descriptors.py
RENAMED
|
@@ -17,6 +17,15 @@ DESCRIPTORS: tuple[RuleDescriptor, ...] = (
|
|
|
17
17
|
aliases=(),
|
|
18
18
|
enabled_by_default=True,
|
|
19
19
|
),
|
|
20
|
+
RuleDescriptor(
|
|
21
|
+
rule_id=RuleId("require-hidden-settings-input"),
|
|
22
|
+
module="sarj_python_lint.rules.require_hidden_settings_input",
|
|
23
|
+
class_name="RequireHiddenSettingsInput",
|
|
24
|
+
code="SARJ575",
|
|
25
|
+
description="Hide validation inputs on settings classes that load secrets.",
|
|
26
|
+
aliases=(),
|
|
27
|
+
enabled_by_default=True,
|
|
28
|
+
),
|
|
20
29
|
RuleDescriptor(
|
|
21
30
|
rule_id=RuleId("prefer-semantic-temporal-types"),
|
|
22
31
|
module="sarj_python_lint.rules.prefer_semantic_temporal_types",
|
|
@@ -150,7 +150,7 @@ class DeclaredContracts:
|
|
|
150
150
|
return False
|
|
151
151
|
if name not in owner.imports:
|
|
152
152
|
return True
|
|
153
|
-
imports = self.
|
|
153
|
+
imports = self.semantics_for(owner).imports
|
|
154
154
|
if name in imports.shadowed_names:
|
|
155
155
|
return False
|
|
156
156
|
return name not in written_attribute_roots(owner.tree)
|
|
@@ -200,7 +200,7 @@ class DeclaredContracts:
|
|
|
200
200
|
return cached
|
|
201
201
|
if model.declaration in seen or len(seen) >= _MAX_DEPTH:
|
|
202
202
|
return {}
|
|
203
|
-
semantics = self.
|
|
203
|
+
semantics = self.semantics_for(model.unit)
|
|
204
204
|
fields: dict[str, ast.AnnAssign] = {}
|
|
205
205
|
if inherited and len(model.declaration.bases) == 1:
|
|
206
206
|
parent = self.class_type(model.declaration.bases[0], model.unit)
|
|
@@ -217,7 +217,7 @@ class DeclaredContracts:
|
|
|
217
217
|
self._field_cache[key] = fields
|
|
218
218
|
return fields
|
|
219
219
|
|
|
220
|
-
def
|
|
220
|
+
def semantics_for(self, unit: SourceUnit) -> AnnotationSemantics:
|
|
221
221
|
if unit.tree is None:
|
|
222
222
|
return self.context.annotation_semantics
|
|
223
223
|
semantics = self._module_annotations.get(unit.path)
|
|
@@ -232,7 +232,7 @@ class DeclaredContracts:
|
|
|
232
232
|
return semantics
|
|
233
233
|
|
|
234
234
|
def imports_for(self, unit: SourceUnit) -> ImportIndex:
|
|
235
|
-
return self.
|
|
235
|
+
return self.semantics_for(unit).imports
|
|
236
236
|
|
|
237
237
|
def bound_names(self, statement: ast.AST) -> frozenset[str]:
|
|
238
238
|
if statement not in self._scope_names:
|
|
@@ -242,7 +242,7 @@ class DeclaredContracts:
|
|
|
242
242
|
def annotation(self, expression: ast.expr, unit: SourceUnit | None = None) -> DeclaredClass | None:
|
|
243
243
|
semantics = self.context.annotation_semantics
|
|
244
244
|
if unit is not None and unit is not self.unit and unit.tree is not None:
|
|
245
|
-
semantics = self.
|
|
245
|
+
semantics = self.semantics_for(unit)
|
|
246
246
|
candidates = [
|
|
247
247
|
model
|
|
248
248
|
for member in semantics.transparent_members(expression)
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_registry.py
RENAMED
|
@@ -290,6 +290,7 @@ from sarj_python_lint.rules.pytest_fixture_returns_closed_resource import Pytest
|
|
|
290
290
|
from sarj_python_lint.rules.redundant_test_constructor_forwarder import RedundantTestConstructorForwarder
|
|
291
291
|
from sarj_python_lint.rules.repeated_unimplemented_test_contract import RepeatedUnimplementedTestContract
|
|
292
292
|
from sarj_python_lint.rules.require_exp_on_jwt_decode import RequireExpOnJwtDecode
|
|
293
|
+
from sarj_python_lint.rules.require_hidden_settings_input import RequireHiddenSettingsInput
|
|
293
294
|
from sarj_python_lint.rules.service_singleton_delegates_to_bulk import ServiceSingletonDelegatesToBulk
|
|
294
295
|
from sarj_python_lint.rules.store_field_update_reuses_upsert import StoreFieldUpdateReusesUpsert
|
|
295
296
|
from sarj_python_lint.rules.store_insert_requires_explicit_conflict_policy import (
|
|
@@ -302,6 +303,7 @@ from sarj_python_lint.rules.test_without_explicit_oracle import NoExplicitTestOr
|
|
|
302
303
|
_AUTHORING_REGISTRY: Mapping[str, type[Rule]] = MappingProxyType(
|
|
303
304
|
{
|
|
304
305
|
NoUnobservedTaskException.id: NoUnobservedTaskException,
|
|
306
|
+
RequireHiddenSettingsInput.id: RequireHiddenSettingsInput,
|
|
305
307
|
PreferSemanticTemporalTypes.id: PreferSemanticTemporalTypes,
|
|
306
308
|
PreferExplicitValueModelConstruction.id: PreferExplicitValueModelConstruction,
|
|
307
309
|
PreferOutcomeVariants.id: PreferOutcomeVariants,
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_value_models.py
RENAMED
|
@@ -48,7 +48,7 @@ def _supported_declaration(model: DeclaredClass, contracts: DeclaredContracts) -
|
|
|
48
48
|
|
|
49
49
|
def _identity_decorator(decorator: ast.expr, model: DeclaredClass, imports: ImportIndex) -> bool:
|
|
50
50
|
target = decorator.func if isinstance(decorator, ast.Call) else decorator
|
|
51
|
-
return
|
|
51
|
+
return stable_native(target, model) and (
|
|
52
52
|
imports.resolves(target, sources=_DATACLASSES, symbol="dataclass")
|
|
53
53
|
or imports.resolves(target, sources=_TYPING, symbol="final")
|
|
54
54
|
)
|
|
@@ -65,7 +65,7 @@ def _native_value_identity(model: DeclaredClass, contracts: DeclaredContracts, *
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
def _native_model_base(base: ast.expr, model: DeclaredClass, imports: ImportIndex, *, include_settings: bool) -> bool:
|
|
68
|
-
return
|
|
68
|
+
return stable_native(base, model) and (
|
|
69
69
|
imports.resolves(base, sources=_MODELS, symbol="BaseModel")
|
|
70
70
|
or (include_settings and imports.resolves(base, sources=_SETTINGS, symbol="BaseSettings"))
|
|
71
71
|
)
|
|
@@ -75,7 +75,7 @@ def _wildcard(tree: ast.Module) -> bool:
|
|
|
75
75
|
return any(alias.name == "*" for node in ast.walk(tree) if isinstance(node, ast.ImportFrom) for alias in node.names)
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
def
|
|
78
|
+
def stable_native(expression: ast.expr, model: DeclaredClass) -> bool:
|
|
79
79
|
root = expression
|
|
80
80
|
while isinstance(root, ast.Attribute):
|
|
81
81
|
root = root.value
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import ast
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from enum import Enum, auto
|
|
6
|
+
from pathlib import PurePosixPath
|
|
7
|
+
from typing import TYPE_CHECKING, final, override
|
|
8
|
+
|
|
9
|
+
from sarj_python_lint._secret_names import is_secret_name
|
|
10
|
+
from sarj_python_lint.rule_base import (
|
|
11
|
+
AutofixPolicy,
|
|
12
|
+
Diagnostic,
|
|
13
|
+
ExampleFile,
|
|
14
|
+
ExampleOutcome,
|
|
15
|
+
ProjectRule,
|
|
16
|
+
RuleCategory,
|
|
17
|
+
RuleDocumentation,
|
|
18
|
+
RuleExample,
|
|
19
|
+
Severity,
|
|
20
|
+
)
|
|
21
|
+
from sarj_python_lint.rules._ast_index import nodes
|
|
22
|
+
from sarj_python_lint.rules._declared_contracts import MODEL_BASES, SETTINGS_BASES, DeclaredClass, DeclaredContracts
|
|
23
|
+
from sarj_python_lint.rules._pydantic_field_contract import (
|
|
24
|
+
FIELD_SOURCES,
|
|
25
|
+
MODEL_SOURCES,
|
|
26
|
+
SETTINGS_SOURCES,
|
|
27
|
+
TYPING_SOURCES,
|
|
28
|
+
model_namespace_hazards,
|
|
29
|
+
)
|
|
30
|
+
from sarj_python_lint.rules._value_models import stable_native
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
if TYPE_CHECKING:
|
|
34
|
+
from collections.abc import Iterator, Sequence
|
|
35
|
+
|
|
36
|
+
from sarj_python_lint._file_context import PythonFileContext
|
|
37
|
+
from sarj_python_lint.rules._annotation_semantics import AnnotationSemantics
|
|
38
|
+
from sarj_python_lint.rules._imports import ImportIndex
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
_FLAG = "hide_input_in_errors"
|
|
42
|
+
_CONFIG_SOURCES = frozenset({"pydantic", "pydantic.config"})
|
|
43
|
+
_SECRET_SOURCES = frozenset({"pydantic", "pydantic.types"})
|
|
44
|
+
_SECRET_TYPES = frozenset({"SecretStr", "SecretBytes"})
|
|
45
|
+
_TEXT_TYPES = frozenset({"str", "bytes"})
|
|
46
|
+
_ALIAS_KEYWORDS = frozenset({"alias", "validation_alias"})
|
|
47
|
+
_NEUTRAL_BASES = ((MODEL_SOURCES, "BaseModel"), (TYPING_SOURCES, "Generic"), (frozenset({"abc"}), "ABC"))
|
|
48
|
+
_IMPORTS = "from pydantic import SecretStr\nfrom pydantic_settings import BaseSettings, SettingsConfigDict\n"
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class _Flag(Enum):
|
|
52
|
+
UNSET = auto()
|
|
53
|
+
HIDDEN = auto()
|
|
54
|
+
SHOWN = auto()
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@dataclass(frozen=True, slots=True)
|
|
58
|
+
class _SettingsFacts:
|
|
59
|
+
settings: bool
|
|
60
|
+
flag: _Flag
|
|
61
|
+
exposed: frozenset[str]
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def reported(self) -> bool:
|
|
65
|
+
return self.settings and self.flag is not _Flag.HIDDEN and bool(self.exposed)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
_NATIVE_SETTINGS = _SettingsFacts(settings=True, flag=_Flag.UNSET, exposed=frozenset())
|
|
69
|
+
_NEUTRAL = _SettingsFacts(settings=False, flag=_Flag.UNSET, exposed=frozenset())
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@final
|
|
73
|
+
class RequireHiddenSettingsInput(ProjectRule):
|
|
74
|
+
id = "require-hidden-settings-input"
|
|
75
|
+
code = "SARJ575"
|
|
76
|
+
documentation = RuleDocumentation(
|
|
77
|
+
default_level=Severity.WARNING,
|
|
78
|
+
summary="Hide validation inputs on settings classes that load secrets.",
|
|
79
|
+
rationale="A pydantic-settings ValidationError echoes the loaded input. One missing required field prints the whole input mapping, including every secret already read from the environment, and SecretStr masks only the validated value, not that raw input.",
|
|
80
|
+
remediation="Set hide_input_in_errors=True in the model_config of this class or of a shared settings base it inherits from.",
|
|
81
|
+
category=RuleCategory.SECURITY,
|
|
82
|
+
autofix=AutofixPolicy.NONE,
|
|
83
|
+
limitations=(
|
|
84
|
+
"A field is secret when its annotation is SecretStr or SecretBytes, or when it holds plain str/bytes text and its name or a literal alias/validation_alias passes the shared secret-name vocabulary. Paths, numbers, flags and nested models are references or structure, not credential text, and stay out of scope.",
|
|
85
|
+
"The flag is read the way Pydantic merges configuration: class keywords, then the class's own model_config, then its bases from last to first. Literal ConfigDict, SettingsConfigDict, dict() and dict-literal configurations are read; computed configurations, legacy Config classes, metaclasses, external model_config writes and unresolved bases make the class opaque and silent.",
|
|
86
|
+
"Bases resolve through the project index. Each exposure is reported once, at the first settings class that leaves it visible; subclasses of a reported base stay silent for the inherited fields.",
|
|
87
|
+
"Only module-level classes are inspected. Files with wildcard imports, rebound pydantic or pydantic_settings names, or dynamic namespace access are skipped.",
|
|
88
|
+
),
|
|
89
|
+
examples=(
|
|
90
|
+
RuleExample(
|
|
91
|
+
example_id="exposed-secret-settings",
|
|
92
|
+
title="A settings secret is echoed by validation errors",
|
|
93
|
+
outcome=ExampleOutcome.MATCH,
|
|
94
|
+
files=(
|
|
95
|
+
ExampleFile.python(
|
|
96
|
+
"app/settings.py",
|
|
97
|
+
_IMPORTS + "class Settings(BaseSettings):\n api_token: SecretStr\n region: str\n",
|
|
98
|
+
),
|
|
99
|
+
),
|
|
100
|
+
focus_path=PurePosixPath("app/settings.py"),
|
|
101
|
+
expected_count=1,
|
|
102
|
+
public=True,
|
|
103
|
+
),
|
|
104
|
+
RuleExample(
|
|
105
|
+
example_id="hidden-secret-settings",
|
|
106
|
+
title="The settings class hides validation inputs",
|
|
107
|
+
outcome=ExampleOutcome.NO_MATCH,
|
|
108
|
+
files=(
|
|
109
|
+
ExampleFile.python(
|
|
110
|
+
"app/settings.py",
|
|
111
|
+
_IMPORTS
|
|
112
|
+
+ "class Settings(BaseSettings):\n"
|
|
113
|
+
+ " model_config = SettingsConfigDict(hide_input_in_errors=True)\n"
|
|
114
|
+
+ " api_token: SecretStr\n region: str\n",
|
|
115
|
+
),
|
|
116
|
+
),
|
|
117
|
+
focus_path=PurePosixPath("app/settings.py"),
|
|
118
|
+
expected_count=0,
|
|
119
|
+
public=True,
|
|
120
|
+
),
|
|
121
|
+
RuleExample(
|
|
122
|
+
example_id="exposed-imported-base",
|
|
123
|
+
scenario="inherited-config",
|
|
124
|
+
title="An imported base leaves its subclass's secret visible",
|
|
125
|
+
outcome=ExampleOutcome.MATCH,
|
|
126
|
+
files=(
|
|
127
|
+
ExampleFile.python("app/__init__.py", "\n"),
|
|
128
|
+
ExampleFile.python(
|
|
129
|
+
"app/base.py",
|
|
130
|
+
_IMPORTS
|
|
131
|
+
+ "class SecretSettings(BaseSettings):\n"
|
|
132
|
+
+ " model_config = SettingsConfigDict(env_prefix='APP_')\n",
|
|
133
|
+
),
|
|
134
|
+
ExampleFile.python(
|
|
135
|
+
"app/settings.py",
|
|
136
|
+
"from app.base import SecretSettings\nclass Settings(SecretSettings):\n client_secret: str\n",
|
|
137
|
+
),
|
|
138
|
+
),
|
|
139
|
+
focus_path=PurePosixPath("app/settings.py"),
|
|
140
|
+
expected_count=1,
|
|
141
|
+
public=True,
|
|
142
|
+
),
|
|
143
|
+
RuleExample(
|
|
144
|
+
example_id="hidden-imported-base",
|
|
145
|
+
scenario="inherited-config",
|
|
146
|
+
title="A subclass inherits the flag from an imported base",
|
|
147
|
+
outcome=ExampleOutcome.NO_MATCH,
|
|
148
|
+
files=(
|
|
149
|
+
ExampleFile.python("app/__init__.py", "\n"),
|
|
150
|
+
ExampleFile.python(
|
|
151
|
+
"app/base.py",
|
|
152
|
+
_IMPORTS
|
|
153
|
+
+ "class SecretSettings(BaseSettings):\n"
|
|
154
|
+
+ " model_config = SettingsConfigDict(hide_input_in_errors=True)\n",
|
|
155
|
+
),
|
|
156
|
+
ExampleFile.python(
|
|
157
|
+
"app/settings.py",
|
|
158
|
+
"from app.base import SecretSettings\nclass Settings(SecretSettings):\n client_secret: str\n",
|
|
159
|
+
),
|
|
160
|
+
),
|
|
161
|
+
focus_path=PurePosixPath("app/settings.py"),
|
|
162
|
+
expected_count=0,
|
|
163
|
+
public=True,
|
|
164
|
+
),
|
|
165
|
+
),
|
|
166
|
+
)
|
|
167
|
+
description = documentation.summary
|
|
168
|
+
|
|
169
|
+
@override
|
|
170
|
+
def check_context(self, context: PythonFileContext) -> list[Diagnostic]:
|
|
171
|
+
tree = context.tree
|
|
172
|
+
if tree is None or context.generated:
|
|
173
|
+
return []
|
|
174
|
+
candidates = [node for node in tree.body if isinstance(node, ast.ClassDef) and node.bases]
|
|
175
|
+
if not candidates or model_namespace_hazards(
|
|
176
|
+
context, include_settings=True, escape_symbols=MODEL_BASES | SETTINGS_BASES
|
|
177
|
+
):
|
|
178
|
+
return []
|
|
179
|
+
resolver = _SettingsResolver(context)
|
|
180
|
+
unit = resolver.contracts.unit
|
|
181
|
+
if unit is None:
|
|
182
|
+
return []
|
|
183
|
+
findings: list[Diagnostic] = []
|
|
184
|
+
for declaration in candidates:
|
|
185
|
+
facts = resolver.facts(DeclaredClass(unit, declaration))
|
|
186
|
+
if facts is None or not facts.reported or context.suppressions.is_suppressed(declaration.lineno, self.code):
|
|
187
|
+
continue
|
|
188
|
+
findings.append(_diagnostic(declaration, facts.exposed, context, self.code))
|
|
189
|
+
return findings
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
class _SettingsResolver:
|
|
193
|
+
def __init__(self, context: PythonFileContext) -> None:
|
|
194
|
+
self.contracts = DeclaredContracts(context)
|
|
195
|
+
self._facts: dict[ast.ClassDef, _SettingsFacts | None] = {}
|
|
196
|
+
self._external_config: dict[ast.Module, frozenset[str]] = {}
|
|
197
|
+
|
|
198
|
+
def facts(self, model: DeclaredClass) -> _SettingsFacts | None:
|
|
199
|
+
declaration = model.declaration
|
|
200
|
+
if declaration in self._facts:
|
|
201
|
+
return self._facts[declaration]
|
|
202
|
+
# Seeding the cache makes a cyclic ancestry resolve as opaque.
|
|
203
|
+
self._facts[declaration] = None
|
|
204
|
+
facts = self._resolve(model)
|
|
205
|
+
self._facts[declaration] = facts
|
|
206
|
+
return facts
|
|
207
|
+
|
|
208
|
+
def _resolve(self, model: DeclaredClass) -> _SettingsFacts | None:
|
|
209
|
+
imports = self.contracts.imports_for(model.unit)
|
|
210
|
+
if not self._plain_declaration(model, imports) or (own_flag := _own_flag(model.declaration, imports)) is None:
|
|
211
|
+
return None
|
|
212
|
+
inherited = self._inherited(model, imports)
|
|
213
|
+
if inherited is None:
|
|
214
|
+
return None
|
|
215
|
+
exposed = set(inherited.exposed)
|
|
216
|
+
semantics = self.contracts.semantics_for(model.unit)
|
|
217
|
+
for name, field in self.contracts.model_fields(model).items():
|
|
218
|
+
if _secret_field(name, field, semantics):
|
|
219
|
+
exposed.add(name)
|
|
220
|
+
else:
|
|
221
|
+
exposed.discard(name)
|
|
222
|
+
flag = inherited.flag if own_flag is _Flag.UNSET else own_flag
|
|
223
|
+
return _SettingsFacts(inherited.settings, flag, frozenset(exposed))
|
|
224
|
+
|
|
225
|
+
def _inherited(self, model: DeclaredClass, imports: ImportIndex) -> _SettingsFacts | None:
|
|
226
|
+
settings = False
|
|
227
|
+
flag = _Flag.UNSET
|
|
228
|
+
exposed: set[str] = set()
|
|
229
|
+
for base in model.declaration.bases:
|
|
230
|
+
facts = self._base_facts(base, model, imports)
|
|
231
|
+
if facts is None:
|
|
232
|
+
return None
|
|
233
|
+
settings = settings or facts.settings
|
|
234
|
+
if facts.flag is not _Flag.UNSET:
|
|
235
|
+
flag = facts.flag
|
|
236
|
+
if not facts.reported:
|
|
237
|
+
exposed |= facts.exposed
|
|
238
|
+
return _SettingsFacts(settings, flag, frozenset(exposed))
|
|
239
|
+
|
|
240
|
+
def _base_facts(self, base: ast.expr, model: DeclaredClass, imports: ImportIndex) -> _SettingsFacts | None:
|
|
241
|
+
if stable_native(base, model) and imports.resolves(base, sources=SETTINGS_SOURCES, symbol="BaseSettings"):
|
|
242
|
+
return _NATIVE_SETTINGS
|
|
243
|
+
if _neutral_base(base, model, imports):
|
|
244
|
+
return _NEUTRAL
|
|
245
|
+
parent = self.contracts.class_type(base, model.unit)
|
|
246
|
+
return self.facts(parent) if parent is not None else None
|
|
247
|
+
|
|
248
|
+
def _plain_declaration(self, model: DeclaredClass, imports: ImportIndex) -> bool:
|
|
249
|
+
declaration = model.declaration
|
|
250
|
+
tree = model.unit.tree
|
|
251
|
+
return (
|
|
252
|
+
tree is not None
|
|
253
|
+
and not declaration.type_params
|
|
254
|
+
and all(
|
|
255
|
+
imports.resolves(node, sources=TYPING_SOURCES, symbol="final") for node in declaration.decorator_list
|
|
256
|
+
)
|
|
257
|
+
and declaration.name not in self._externally_configured(tree)
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
def _externally_configured(self, tree: ast.Module) -> frozenset[str]:
|
|
261
|
+
names = self._external_config.get(tree)
|
|
262
|
+
if names is None:
|
|
263
|
+
names = self._external_config[tree] = frozenset(
|
|
264
|
+
node.value.id
|
|
265
|
+
for node in nodes(tree, ast.Attribute)
|
|
266
|
+
if node.attr == "model_config" and isinstance(node.value, ast.Name)
|
|
267
|
+
)
|
|
268
|
+
return names
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def _own_flag(declaration: ast.ClassDef, imports: ImportIndex) -> _Flag | None:
|
|
272
|
+
flag: _Flag | None = _Flag.UNSET
|
|
273
|
+
for statement in declaration.body:
|
|
274
|
+
match statement:
|
|
275
|
+
case (
|
|
276
|
+
ast.Assign(targets=[ast.Name(id="model_config")], value=value)
|
|
277
|
+
| ast.AnnAssign(target=ast.Name(id="model_config"), value=ast.expr() as value)
|
|
278
|
+
):
|
|
279
|
+
flag = _config_flag(value, imports)
|
|
280
|
+
case ast.ClassDef(name="Config") | ast.AugAssign(target=ast.Name(id="model_config")):
|
|
281
|
+
return None
|
|
282
|
+
case _:
|
|
283
|
+
continue
|
|
284
|
+
if flag is None:
|
|
285
|
+
return None
|
|
286
|
+
for keyword in declaration.keywords:
|
|
287
|
+
if keyword.arg is None or keyword.arg == "metaclass":
|
|
288
|
+
return None
|
|
289
|
+
if keyword.arg == _FLAG:
|
|
290
|
+
return _literal_flag(keyword.value)
|
|
291
|
+
return flag
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def _config_flag(value: ast.expr, imports: ImportIndex) -> _Flag | None:
|
|
295
|
+
match value:
|
|
296
|
+
case ast.Call(func=func, args=[], keywords=keywords) if _config_constructor(func, imports):
|
|
297
|
+
entries = [(keyword.arg, keyword.value) for keyword in keywords]
|
|
298
|
+
case ast.Dict(keys=keys, values=values):
|
|
299
|
+
entries = [(_literal_key(key), item) for key, item in zip(keys, values, strict=True)]
|
|
300
|
+
case _:
|
|
301
|
+
return None
|
|
302
|
+
flag: _Flag | None = _Flag.UNSET
|
|
303
|
+
for key, item in entries:
|
|
304
|
+
if key is None:
|
|
305
|
+
flag = None
|
|
306
|
+
elif key == _FLAG:
|
|
307
|
+
flag = _literal_flag(item)
|
|
308
|
+
return flag
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
def _literal_key(key: ast.expr | None) -> str | None:
|
|
312
|
+
return key.value if isinstance(key, ast.Constant) and isinstance(key.value, str) else None
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
def _literal_flag(value: ast.expr) -> _Flag | None:
|
|
316
|
+
match value:
|
|
317
|
+
case ast.Constant(value=bool() as hidden):
|
|
318
|
+
return _Flag.HIDDEN if hidden else _Flag.SHOWN
|
|
319
|
+
case _:
|
|
320
|
+
return None
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
def _config_constructor(func: ast.expr, imports: ImportIndex) -> bool:
|
|
324
|
+
return (
|
|
325
|
+
imports.resolves(func, sources=_CONFIG_SOURCES, symbol="ConfigDict")
|
|
326
|
+
or imports.resolves(func, sources=SETTINGS_SOURCES, symbol="SettingsConfigDict")
|
|
327
|
+
or (isinstance(func, ast.Name) and func.id == "dict" and imports.builtin_is_unshadowed("dict"))
|
|
328
|
+
)
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
def _neutral_base(base: ast.expr, model: DeclaredClass, imports: ImportIndex) -> bool:
|
|
332
|
+
target = base.value if isinstance(base, ast.Subscript) else base
|
|
333
|
+
if isinstance(target, ast.Name) and target.id == "object":
|
|
334
|
+
return imports.builtin_is_unshadowed("object")
|
|
335
|
+
return stable_native(target, model) and any(
|
|
336
|
+
imports.resolves(target, sources=sources, symbol=symbol) for sources, symbol in _NEUTRAL_BASES
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
def _secret_field(name: str, field: ast.AnnAssign, semantics: AnnotationSemantics) -> bool:
|
|
341
|
+
imports = semantics.imports
|
|
342
|
+
members = semantics.transparent_members(field.annotation)
|
|
343
|
+
if any(imports.resolved_symbol(member, sources=_SECRET_SOURCES) in _SECRET_TYPES for member in members):
|
|
344
|
+
return True
|
|
345
|
+
return _text_valued(members, imports) and any(is_secret_name(label) for label in (name, *_aliases(field, imports)))
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
def _text_valued(members: Sequence[ast.expr], imports: ImportIndex) -> bool:
|
|
349
|
+
values = [member for member in members if not (isinstance(member, ast.Constant) and member.value is None)]
|
|
350
|
+
return bool(values) and all(
|
|
351
|
+
isinstance(member, ast.Name) and member.id in _TEXT_TYPES and imports.builtin_is_unshadowed(member.id)
|
|
352
|
+
for member in values
|
|
353
|
+
)
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
def _aliases(field: ast.AnnAssign, imports: ImportIndex) -> Iterator[str]:
|
|
357
|
+
for node in ast.walk(field):
|
|
358
|
+
if not isinstance(node, ast.Call) or not imports.resolves(node.func, sources=FIELD_SOURCES, symbol="Field"):
|
|
359
|
+
continue
|
|
360
|
+
for keyword in node.keywords:
|
|
361
|
+
if keyword.arg in _ALIAS_KEYWORDS:
|
|
362
|
+
yield from (
|
|
363
|
+
alias.value
|
|
364
|
+
for alias in ast.walk(keyword.value)
|
|
365
|
+
if isinstance(alias, ast.Constant) and isinstance(alias.value, str)
|
|
366
|
+
)
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
def _diagnostic(
|
|
370
|
+
declaration: ast.ClassDef, exposed: frozenset[str], context: PythonFileContext, code: str
|
|
371
|
+
) -> Diagnostic:
|
|
372
|
+
fields = ", ".join(sorted(exposed))
|
|
373
|
+
return Diagnostic(
|
|
374
|
+
context.path,
|
|
375
|
+
declaration.lineno,
|
|
376
|
+
declaration.col_offset + 1,
|
|
377
|
+
code,
|
|
378
|
+
f"Set hide_input_in_errors=True in the model_config of {declaration.name} or a shared settings base; "
|
|
379
|
+
f"a ValidationError otherwise prints the loaded secret input ({fields}).",
|
|
380
|
+
severity=Severity.WARNING,
|
|
381
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_analysis_session.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_aliases.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_annotations.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.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.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_enums.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_inert.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_parameters.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_repeated.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_security.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_autofix_tests.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.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.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/_prepared_sources.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.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.136.0 → sarj_python_lint-1.137.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.136.0 → sarj_python_lint-1.137.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.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_ast_index.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_ast_names.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_ast_position.py
RENAMED
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_async_lifecycle.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_closed_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_comments.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_copy_on_write.py
RENAMED
|
File without changes
|
|
File without changes
|
{sarj_python_lint-1.136.0 → sarj_python_lint-1.137.0}/src/sarj_python_lint/rules/_dict_key_views.py
RENAMED
|
File without changes
|