preset = "strict"
project-includes = ["."]
search-path = ["../.."]

# Verify project-excludes from the repo root:
#   tmp_config=$(mktemp --tmpdir=api/tests/test_containers_integration_tests pyrefly-no-excludes.XXXXXX.toml)
#   awk 'BEGIN {skip=0} /^project-excludes = \[/ {skip=1; next} skip && /^\]/ {skip=0; next} !skip {print}' api/tests/test_containers_integration_tests/pyrefly.toml > "$tmp_config"
#   tmp_name=$(basename "$tmp_config")
#   comm -3 <(sed -n 's/^  "\(.*\)",$/\1/p' api/tests/test_containers_integration_tests/pyrefly.toml | sort) <(uv --directory api run pyrefly check --config "tests/test_containers_integration_tests/$tmp_name" --summary=none --output-format=min-text 2>/dev/null | rg '^ERROR ' | sed -E 's#^ERROR (tests/test_containers_integration_tests/[^:]+):.*#\1#' | sed 's#^tests/test_containers_integration_tests/##' | sort -u)
#   rm --force "$tmp_config"
project-excludes = [
  "commands/test_legacy_model_type_migration.py",
  "conftest.py",
  "controllers/console/app/test_app_apis.py",
  "controllers/console/app/test_app_import_api.py",
  "controllers/console/app/test_chat_conversation_status_count_api.py",
  "controllers/console/app/test_conversation_read_timestamp.py",
  "controllers/console/app/test_workflow_draft_variable.py",
  "controllers/console/auth/test_email_register.py",
  "controllers/console/auth/test_forgot_password.py",
  "controllers/console/auth/test_oauth.py",
  "controllers/console/auth/test_password_reset.py",
  "controllers/console/datasets/rag_pipeline/test_rag_pipeline.py",
  "controllers/console/datasets/rag_pipeline/test_rag_pipeline_datasets.py",
  "controllers/console/datasets/rag_pipeline/test_rag_pipeline_import.py",
  "controllers/console/datasets/rag_pipeline/test_rag_pipeline_workflow.py",
  "controllers/console/datasets/test_data_source.py",
  "controllers/console/explore/test_conversation.py",
  "controllers/console/test_api_based_extension.py",
  "controllers/console/test_apikey.py",
  "controllers/console/workspace/test_members.py",
  "controllers/console/workspace/test_tool_provider.py",
  "controllers/console/workspace/test_trigger_providers.py",
  "controllers/console/workspace/test_workspace_wraps.py",
  "controllers/mcp/test_mcp.py",
  "controllers/service_api/dataset/test_dataset.py",
  "controllers/service_api/test_site.py",
  "controllers/web/test_conversation.py",
  "controllers/web/test_site.py",
  "controllers/web/test_web_forgot_password.py",
  "controllers/web/test_wraps.py",
  "core/app/layers/test_pause_state_persist_layer.py",
  "core/rag/pipeline/test_queue_integration.py",
  "core/rag/retrieval/test_dataset_retrieval_integration.py",
  "core/workflow/test_human_input_resume_node_execution.py",
  "factories/test_storage_key_loader.py",
  "helpers/__init__.py",
  "helpers/execution_extra_content.py",
  "libs/broadcast_channel/redis/test_channel.py",
  "libs/broadcast_channel/redis/test_sharded_channel.py",
  "libs/broadcast_channel/redis/test_streams_channel.py",
  "libs/test_auto_renew_redis_lock_integration.py",
  "libs/test_rate_limiter_integration.py",
  "models/test_account.py",
  "models/test_conversation_message_inputs.py",
  "models/test_types_enum_text.py",
  "repositories/test_sqlalchemy_api_workflow_node_execution_repository.py",
  "repositories/test_sqlalchemy_api_workflow_run_repository.py",
  "repositories/test_sqlalchemy_execution_extra_content_repository.py",
  "repositories/test_sqlalchemy_workflow_node_execution_repository.py",
  "repositories/test_workflow_run_repository.py",
  "services/auth/test_api_key_auth_service.py",
  "services/auth/test_auth_integration.py",
  "services/dataset_collection_binding.py",
  "services/dataset_service_update_delete.py",
  "services/document_service_status.py",
  "services/enterprise/test_account_deletion_sync.py",
  "services/plugin/test_plugin_parameter_service.py",
  "services/plugin/test_plugin_permission_service.py",
  "services/plugin/test_plugin_service.py",
  "services/rag_pipeline/test_rag_pipeline_service_db.py",
  "services/recommend_app/test_database_retrieval.py",
  "services/test_account_service.py",
  "services/test_advanced_prompt_template_service.py",
  "services/test_agent_service.py",
  "services/test_annotation_service.py",
  "services/test_api_based_extension_service.py",
  "services/test_api_token_service.py",
  "services/test_app_dsl_service.py",
  "services/test_app_generate_service.py",
  "services/test_app_service.py",
  "services/test_attachment_service.py",
  "services/test_audio_service_db.py",
  "services/test_billing_service.py",
  "services/test_conversation_service.py",
  "services/test_conversation_service_variables.py",
  "services/test_conversation_variable_updater.py",
  "services/test_credit_pool_service.py",
  "services/test_dataset_permission_service.py",
  "services/test_dataset_service.py",
  "services/test_dataset_service_batch_update_document_status.py",
  "services/test_dataset_service_create_dataset.py",
  "services/test_dataset_service_delete_dataset.py",
  "services/test_dataset_service_document.py",
  "services/test_dataset_service_get_segments.py",
  "services/test_dataset_service_permissions.py",
  "services/test_dataset_service_retrieval.py",
  "services/test_dataset_service_update_dataset.py",
  "services/test_delete_archived_workflow_run.py",
  "services/test_document_service_display_status.py",
  "services/test_document_service_rename_document.py",
  "services/test_end_user_service.py",
  "services/test_feature_service.py",
  "services/test_feedback_service.py",
  "services/test_file_service.py",
  "services/test_hit_testing_service.py",
  "services/test_human_input_delivery_test.py",
  "services/test_human_input_delivery_test_service.py",
  "services/test_message_export_service.py",
  "services/test_message_service.py",
  "services/test_message_service_execution_extra_content.py",
  "services/test_message_service_extra_contents.py",
  "services/test_messages_clean_service.py",
  "services/test_metadata_partial_update.py",
  "services/test_metadata_service.py",
  "services/test_model_load_balancing_service.py",
  "services/test_model_provider_service.py",
  "services/test_oauth_server_service.py",
  "services/test_ops_service.py",
  "services/test_recommended_app_service.py",
  "services/test_restore_archived_workflow_run.py",
  "services/test_saved_message_service.py",
  "services/test_schedule_service.py",
  "services/test_tag_service.py",
  "services/test_trigger_provider_service.py",
  "services/test_web_conversation_service.py",
  "services/test_webapp_auth_service.py",
  "services/test_webhook_service.py",
  "services/test_webhook_service_relationships.py",
  "services/test_workflow_app_service.py",
  "services/test_workflow_draft_variable_service.py",
  "services/test_workflow_run_service.py",
  "services/test_workflow_service.py",
  "services/test_workspace_service.py",
  "services/tools/test_api_tools_manage_service.py",
  "services/tools/test_mcp_tools_manage_service.py",
  "services/tools/test_tools_transform_service.py",
  "services/tools/test_workflow_tools_manage_service.py",
  "services/workflow/test_workflow_converter.py",
  "services/workflow/test_workflow_deletion.py",
  "services/workflow/test_workflow_node_execution_service_repository.py",
  "tasks/test_add_document_to_index_task.py",
  "tasks/test_batch_clean_document_task.py",
  "tasks/test_batch_create_segment_to_index_task.py",
  "tasks/test_clean_dataset_task.py",
  "tasks/test_clean_notion_document_task.py",
  "tasks/test_create_segment_to_index_task.py",
  "tasks/test_dataset_indexing_task.py",
  "tasks/test_deal_dataset_vector_index_task.py",
  "tasks/test_delete_account_task.py",
  "tasks/test_delete_segment_from_index_task.py",
  "tasks/test_disable_segment_from_index_task.py",
  "tasks/test_disable_segments_from_index_task.py",
  "tasks/test_document_indexing_sync_task.py",
  "tasks/test_document_indexing_task.py",
  "tasks/test_document_indexing_update_task.py",
  "tasks/test_duplicate_document_indexing_task.py",
  "tasks/test_enable_segments_to_index_task.py",
  "tasks/test_mail_account_deletion_task.py",
  "tasks/test_mail_change_mail_task.py",
  "tasks/test_mail_email_code_login_task.py",
  "tasks/test_mail_human_input_delivery_task.py",
  "tasks/test_mail_inner_task.py",
  "tasks/test_mail_invite_member_task.py",
  "tasks/test_mail_owner_transfer_task.py",
  "tasks/test_mail_register_task.py",
  "tasks/test_rag_pipeline_run_tasks.py",
  "tasks/test_remove_app_and_related_data_task.py",
  "test_container_state_isolation.py",
  "test_opendal_fs_default_root.py",
  "test_workflow_pause_integration.py",
  "trigger/conftest.py",
  "trigger/test_trigger_e2e.py",
  "workflow/nodes/code_executor/test_code_executor.py",
  "workflow/nodes/code_executor/test_code_javascript.py",
  "workflow/nodes/code_executor/test_code_jinja2.py",
  "workflow/nodes/code_executor/test_code_python3.py",
  "workflow/nodes/code_executor/test_utils.py",
]

[errors]
unannotated-return = true
