fix(ci): fix black/ruff failures, add CoC and PR template
- Fix Python formatting (sync no longer strips blank lines from .py files) - Remove test_community_build.py (tests private sync module) - Fix ruff warnings in test files - Add CODE_OF_CONDUCT.md - Add .github/PULL_REQUEST_TEMPLATE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ from typing import Any
|
||||
|
||||
from plugins.supabase.client import SupabaseClient
|
||||
|
||||
|
||||
def get_tool_specifications() -> list[dict[str, Any]]:
|
||||
"""Return tool specifications for ToolGenerator (6 tools)"""
|
||||
return [
|
||||
@@ -62,6 +63,7 @@ def get_tool_specifications() -> list[dict[str, Any]]:
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
async def health_check(client: SupabaseClient) -> str:
|
||||
"""Check health of all Supabase services"""
|
||||
try:
|
||||
@@ -84,6 +86,7 @@ async def health_check(client: SupabaseClient) -> str:
|
||||
ensure_ascii=False,
|
||||
)
|
||||
|
||||
|
||||
async def get_service_status(client: SupabaseClient, service: str) -> str:
|
||||
"""Get status of a specific service"""
|
||||
try:
|
||||
@@ -142,6 +145,7 @@ async def get_service_status(client: SupabaseClient, service: str) -> str:
|
||||
except Exception as e:
|
||||
return json.dumps({"success": False, "error": str(e)}, indent=2, ensure_ascii=False)
|
||||
|
||||
|
||||
async def get_database_stats(client: SupabaseClient) -> str:
|
||||
"""Get database statistics"""
|
||||
try:
|
||||
@@ -199,6 +203,7 @@ async def get_database_stats(client: SupabaseClient) -> str:
|
||||
except Exception as e:
|
||||
return json.dumps({"success": False, "error": str(e)}, indent=2, ensure_ascii=False)
|
||||
|
||||
|
||||
async def get_storage_stats(client: SupabaseClient) -> str:
|
||||
"""Get storage statistics"""
|
||||
try:
|
||||
@@ -243,6 +248,7 @@ async def get_storage_stats(client: SupabaseClient) -> str:
|
||||
except Exception as e:
|
||||
return json.dumps({"success": False, "error": str(e)}, indent=2, ensure_ascii=False)
|
||||
|
||||
|
||||
async def get_auth_stats(client: SupabaseClient) -> str:
|
||||
"""Get authentication statistics"""
|
||||
try:
|
||||
@@ -294,6 +300,7 @@ async def get_auth_stats(client: SupabaseClient) -> str:
|
||||
except Exception as e:
|
||||
return json.dumps({"success": False, "error": str(e)}, indent=2, ensure_ascii=False)
|
||||
|
||||
|
||||
async def get_instance_info(client: SupabaseClient) -> str:
|
||||
"""Get Supabase instance information"""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user