ruff check cleanup
This commit is contained in:
9
main.py
9
main.py
@@ -5,17 +5,16 @@ import sys
|
|||||||
from importlib import metadata
|
from importlib import metadata
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
# Load environment variables from .env file BEFORE any other imports
|
from auth.oauth_config import reload_oauth_config
|
||||||
|
from core.utils import check_credentials_directory_permissions
|
||||||
|
from core.server import server, set_transport_mode, configure_server_for_http
|
||||||
|
|
||||||
dotenv_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.env')
|
dotenv_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.env')
|
||||||
load_dotenv(dotenv_path=dotenv_path)
|
load_dotenv(dotenv_path=dotenv_path)
|
||||||
|
|
||||||
# Suppress googleapiclient discovery cache warning
|
# Suppress googleapiclient discovery cache warning
|
||||||
logging.getLogger('googleapiclient.discovery_cache').setLevel(logging.ERROR)
|
logging.getLogger('googleapiclient.discovery_cache').setLevel(logging.ERROR)
|
||||||
|
|
||||||
from core.server import server, set_transport_mode, configure_server_for_http # noqa: E402
|
|
||||||
from auth.oauth_config import reload_oauth_config # noqa: E402
|
|
||||||
from core.utils import check_credentials_directory_permissions # noqa: E402
|
|
||||||
|
|
||||||
reload_oauth_config()
|
reload_oauth_config()
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
|
|||||||
Reference in New Issue
Block a user