From f9919599b746f4566c304c7446e59f3a388efb1b Mon Sep 17 00:00:00 2001 From: Josh Radcliff Date: Tue, 20 Jan 2026 10:02:23 -0500 Subject: [PATCH] chore(format): format files for nox 2025.11.12 updates Applies minor changes introduced in nox release [2025.11.12](https://nox.thea.codes/en/stable/CHANGELOG.html#id1) --- analytics_mcp/coordinator.py | 1 + analytics_mcp/tools/reporting/metadata.py | 14 ++++---------- analytics_mcp/tools/utils.py | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/analytics_mcp/coordinator.py b/analytics_mcp/coordinator.py index ddb738e..27da915 100644 --- a/analytics_mcp/coordinator.py +++ b/analytics_mcp/coordinator.py @@ -18,6 +18,7 @@ server using `@mcp.tool` annotations, thereby 'coordinating' the bootstrapping of the server. """ + from mcp.server.fastmcp import FastMCP # Creates the singleton. diff --git a/analytics_mcp/tools/reporting/metadata.py b/analytics_mcp/tools/reporting/metadata.py index 1fa7a63..94482b0 100644 --- a/analytics_mcp/tools/reporting/metadata.py +++ b/analytics_mcp/tools/reporting/metadata.py @@ -155,8 +155,7 @@ def get_metric_filter_hints(): expressions=[event_count_gt_10_filter, revenue_between_filter] ) ) - return ( - f"""Example metric_filter arguments: + return f"""Example metric_filter arguments: 1. A simple filter: {proto_to_json(event_count_gt_10_filter)} @@ -172,9 +171,7 @@ def get_metric_filter_hints(): 5. An OR group filter: {proto_to_json(or_filter)} - """ - + _FILTER_NOTES - ) + """ + _FILTER_NOTES def get_dimension_filter_hints(): @@ -222,8 +219,7 @@ def get_dimension_filter_hints(): expressions=[source_medium_filter, event_list_filter] ) ) - return ( - f"""Example dimension_filter arguments: + return f"""Example dimension_filter arguments: 1. A simple filter: {proto_to_json(begins_with)} @@ -239,9 +235,7 @@ def get_dimension_filter_hints(): 5. An OR group filter: {proto_to_json(or_filter)} - """ - + _FILTER_NOTES - ) + """ + _FILTER_NOTES def get_order_bys_hints(): diff --git a/analytics_mcp/tools/utils.py b/analytics_mcp/tools/utils.py index 1d1f212..0f35040 100644 --- a/analytics_mcp/tools/utils.py +++ b/analytics_mcp/tools/utils.py @@ -47,7 +47,7 @@ def _get_package_version_with_fallback(): def _create_credentials() -> google.auth.credentials.Credentials: """Returns Application Default Credentials with read-only scope.""" - (credentials, _) = google.auth.default(scopes=[_READ_ONLY_ANALYTICS_SCOPE]) + credentials, _ = google.auth.default(scopes=[_READ_ONLY_ANALYTICS_SCOPE]) return credentials