Skip to content

Commit

Permalink
chore: avoid star imports usage (langgenius#9123)
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 authored Oct 9, 2024
1 parent cb35e84 commit b279d19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 0 additions & 2 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ ignore = [
"E721", # type-comparison
"E722", # bare-except
"E731", # lambda-assignment
"F403", # undefined-local-with-import-star
"F405", # undefined-local-with-import-star-usage
"F821", # undefined-name
"F841", # unused-variable
"FURB113", # repeated-append
Expand Down
13 changes: 12 additions & 1 deletion api/services/account_service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import base64
import json
import logging
import secrets
import uuid
Expand All @@ -12,12 +13,22 @@
from configs import dify_config
from constants.languages import language_timezone_mapping, languages
from events.tenant_event import tenant_was_created
from extensions.ext_database import db
from extensions.ext_redis import redis_client
from libs.helper import RateLimiter, TokenManager
from libs.passport import PassportService
from libs.password import compare_password, hash_password, valid_password
from libs.rsa import generate_key_pair
from models.account import *
from models.account import (
Account,
AccountIntegrate,
AccountStatus,
Tenant,
TenantAccountJoin,
TenantAccountJoinRole,
TenantAccountRole,
TenantStatus,
)
from models.model import DifySetup
from services.errors.account import (
AccountAlreadyInTenantError,
Expand Down

0 comments on commit b279d19

Please sign in to comment.