Skip to content

Commit aa6a73f

Browse files
fix sonar
1 parent f0fc1d7 commit aa6a73f

File tree

2 files changed

+5
-5
lines changed
  • packages
    • service-library/src/servicelib/aiohttp/long_running_tasks
    • settings-library/src/settings_library

2 files changed

+5
-5
lines changed

packages/service-library/src/servicelib/aiohttp/long_running_tasks/_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ async def start_long_running_task(
6868
"sockname"
6969
) # https://docs.python.org/3/library/asyncio-protocol.html#asyncio.BaseTransport.get_extra_info
7070
status_url = TypeAdapter(AnyHttpUrl).validate_python(
71-
f"http://{ip_addr}:{port}{request_.app.router['get_task_status'].url_for(task_id=task_id)}"
71+
f"http://{ip_addr}:{port}{request_.app.router['get_task_status'].url_for(task_id=task_id)}" # NOSONAR
7272
)
7373
result_url = TypeAdapter(AnyHttpUrl).validate_python(
74-
f"http://{ip_addr}:{port}{request_.app.router['get_task_result'].url_for(task_id=task_id)}"
74+
f"http://{ip_addr}:{port}{request_.app.router['get_task_result'].url_for(task_id=task_id)}" # NOSONAR
7575
)
7676
abort_url = TypeAdapter(AnyHttpUrl).validate_python(
77-
f"http://{ip_addr}:{port}{request_.app.router['cancel_and_delete_task'].url_for(task_id=task_id)}"
77+
f"http://{ip_addr}:{port}{request_.app.router['cancel_and_delete_task'].url_for(task_id=task_id)}" # NOSONAR
7878
)
7979
task_get = TaskGet(
8080
task_id=task_id,

packages/settings-library/src/settings_library/tracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
class TracingSettings(BaseCustomSettings):
99
TRACING_ZIPKIN_ENDPOINT: AnyUrl = Field(
10-
default=TypeAdapter(AnyUrl).validate_python("http://jaeger:9411"),
10+
default=TypeAdapter(AnyUrl).validate_python("http://jaeger:9411"), # NOSONAR
1111
description="Zipkin compatible endpoint",
1212
)
1313
TRACING_THRIFT_COMPACT_ENDPOINT: AnyUrl = Field(
14-
default=TypeAdapter(AnyUrl).validate_python("http://jaeger:5775"),
14+
default=TypeAdapter(AnyUrl).validate_python("http://jaeger:5775"), # NOSONAR
1515
description="accept zipkin.thrift over compact thrift protocol (deprecated, used by legacy clients only)",
1616
)
1717
TRACING_CLIENT_NAME: str = Field(

0 commit comments

Comments
 (0)