refactor: rename auth.py to gitea_auth.py and ignore env files
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user