refactor: rename auth.py to gitea_auth.py and ignore env files

This commit is contained in:
2026-06-21 22:27:40 -04:00
parent 203e9d4cb7
commit 51296c88a3
9 changed files with 269 additions and 120 deletions
+2 -2
View File
@@ -17,14 +17,14 @@ import os
import sys
import subprocess
# Ensure the project root is on the path so auth.py can be imported.
# Ensure the project root is on the path so gitea_auth.py can be imported.
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
if PROJECT_ROOT not in sys.path:
sys.path.insert(0, PROJECT_ROOT)
from mcp.server.fastmcp import FastMCP # noqa: E402
from auth import ( # noqa: E402
from gitea_auth import ( # noqa: E402
REMOTES,
get_credentials,
get_auth_header,