mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 04:23:35 +00:00
chore: Add pylint for DB-GPT core lib (#1076)
This commit is contained in:
@@ -3,8 +3,6 @@ import os
|
||||
import sys
|
||||
from typing import List
|
||||
|
||||
ROOT_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(ROOT_PATH)
|
||||
from fastapi import FastAPI
|
||||
from fastapi.exceptions import RequestValidationError
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
@@ -41,6 +39,10 @@ from dbgpt.util.utils import (
|
||||
setup_logging,
|
||||
)
|
||||
|
||||
ROOT_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(ROOT_PATH)
|
||||
|
||||
|
||||
static_file_path = os.path.join(ROOT_PATH, "dbgpt", "app/static")
|
||||
|
||||
CFG = Config()
|
||||
|
Reference in New Issue
Block a user