diff --git a/nextcloud_mcp_server/embedding/gateway_client.py b/nextcloud_mcp_server/embedding/gateway_client.py index b63461b6..2d729b7c 100644 --- a/nextcloud_mcp_server/embedding/gateway_client.py +++ b/nextcloud_mcp_server/embedding/gateway_client.py @@ -122,8 +122,8 @@ class GatewayProvider(OpenAIProvider): # AsyncOpenAI rejects an empty key; use a non-secret placeholder when # the gateway is unauthenticated. When a token provider is configured, # the real Bearer is set on the client before each request. The bare - # ``# NOSONAR`` silences the hard-coded-credential hotspot — this is a - # public placeholder string, not a secret. + # suppression marker below silences the hard-coded-credential hotspot — + # this is a public placeholder string, not a secret. super().__init__( api_key=_UNAUTHENTICATED_PLACEHOLDER, # NOSONAR base_url=base_url, diff --git a/nextcloud_mcp_server/vector/queue/nats.py b/nextcloud_mcp_server/vector/queue/nats.py index f0675f4a..c87fdfdd 100644 --- a/nextcloud_mcp_server/vector/queue/nats.py +++ b/nextcloud_mcp_server/vector/queue/nats.py @@ -156,9 +156,9 @@ class NatsTaskProducer: ) -> None: return None - # The bare ``# NOSONAR`` silences ``python:S7503`` (async method without - # await): ``async def`` is required by the TaskProducer protocol, but this - # handle close is a genuine no-op. + # The bare suppression marker silences S7503 (async method without await): + # ``async def`` is required by the TaskProducer protocol, but this handle + # close is a genuine no-op. async def aclose(self) -> None: # NOSONAR # Per-handle close (e.g. a per-user scanner clone exiting). The bus # connection is shared and owned by the lifespan, so this is a no-op; diff --git a/nextcloud_mcp_server/vector/queue/postgres.py b/nextcloud_mcp_server/vector/queue/postgres.py index d974fff9..dc15fc27 100644 --- a/nextcloud_mcp_server/vector/queue/postgres.py +++ b/nextcloud_mcp_server/vector/queue/postgres.py @@ -45,7 +45,7 @@ class PostgresTaskProducer: ) -> None: # pragma: no cover return None - # Bare ``# NOSONAR`` silences ``python:S7503`` (async method without await): + # The bare suppression marker silences S7503 (async method without await): # ``async def`` is required by the TaskProducer protocol; this stub is a # no-op until the Postgres transport lands. async def aclose(self) -> None: # NOSONAR # pragma: no cover