From dc217d53e7717debd7e5a71c5dbb343c461d0092 Mon Sep 17 00:00:00 2001 From: Wang Guan Date: Tue, 15 Oct 2024 11:05:29 +0800 Subject: [PATCH] make ruff happy --- app/config.py | 5 ++--- manage.py | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/config.py b/app/config.py index 847ba9e..f1a14e6 100644 --- a/app/config.py +++ b/app/config.py @@ -3,12 +3,11 @@ # 开发测试配置可放在 configs 文件夹下(已 gitignore)或项目外 # =========== import dotenv - -dotenv.load_dotenv() - from os import environ as env import urllib.parse as urlparse +dotenv.load_dotenv() + # ----------- # 基础设置 # ----------- diff --git a/manage.py b/manage.py index b635971..3ff8a6a 100644 --- a/manage.py +++ b/manage.py @@ -2,10 +2,6 @@ import re import click import logging -import dotenv - -dotenv.load_dotenv() - from app import flask_app from app.factory import init_db