Skip to content

Commit 070ed65

Browse files
committed
try fix pylint
1 parent e897e6f commit 070ed65

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

sdk/ai/azure-ai-agentserver-core/azure/ai/agentserver/core/constants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# ---------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# ---------------------------------------------------------
14
class Constants:
25
# well-known environment variables
36
APPLICATION_INSIGHTS_CONNECTION_STRING = "_AGENT_RUNTIME_APP_INSIGHTS_CONNECTION_STRING"

sdk/ai/azure-ai-agentserver-core/azure/ai/agentserver/core/logger.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# ---------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# ---------------------------------------------------------
14
import contextvars
25
import logging
36
import os
@@ -53,7 +56,7 @@ def get_project_endpoint():
5356
return None
5457

5558

56-
def get_application_insights_connection_string():
59+
def get_application_insights_connstr():
5760
try:
5861
conn_str = os.environ.get(Constants.APPLICATION_INSIGHTS_CONNECTION_STRING)
5962
if not conn_str:
@@ -97,7 +100,7 @@ def configure(log_config: dict = default_log_config):
97100
try:
98101
config.dictConfig(log_config)
99102

100-
application_insights_connection_string = get_application_insights_connection_string()
103+
application_insights_connection_string = get_application_insights_connstr()
101104
enable_application_insights_logger = (
102105
os.environ.get(Constants.ENABLE_APPLICATION_INSIGHTS_LOGGER, "true").lower() == "true"
103106
)

sdk/ai/azure-ai-agentserver-core/azure/ai/agentserver/core/models/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

sdk/ai/azure-ai-agentserver-core/azure/ai/agentserver/core/models/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# ---------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# ---------------------------------------------------------
14
from ._create_response import CreateResponse # type: ignore
25
from .projects import Response, ResponseStreamEvent
36

47
__all__ = ["CreateResponse", "Response", "ResponseStreamEvent"] # type: ignore[var-annotated]
5-

sdk/ai/azure-ai-agentserver-core/azure/ai/agentserver/core/models/_create_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# ---------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# ---------------------------------------------------------
14
from typing import Optional
25

36
from .openai import response_create_params
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
from openai.types.responses import * # type: ignore # noqa: F401,F403
1+
# ---------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# ---------------------------------------------------------
4+
from openai.types.responses import * # pylint: disable=unused-wildcard-import
25

3-
__all__ = [name for name in globals() if not name.startswith("_")]
6+
__all__ = [name for name in globals() if not name.startswith("_")] # type: ignore[var-annotated]

sdk/ai/azure-ai-agentserver-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"azure-ai-agents>=1.2.0b5",
1414
"azure-core>=1.35.0",
1515
"azure-identity",
16-
"openai",
16+
"openai>=1.80.0",
1717
"opentelemetry-api",
1818
"opentelemetry-exporter-otlp-proto-http",
1919
"starlette",

0 commit comments

Comments
 (0)