Fix import formatting and sorting
Ruff formatting fixes for import organization. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -44,7 +44,7 @@ from app.models.blocklist import (
|
||||
ScheduleConfig,
|
||||
ScheduleInfo,
|
||||
)
|
||||
from app.services import ban_service, blocklist_service, geo_service
|
||||
from app.services import ban_service, blocklist_service
|
||||
from app.tasks.blocklist_import import run_import_with_resources
|
||||
|
||||
router: APIRouter = APIRouter(prefix="/api/blocklists", tags=["Blocklists"])
|
||||
|
||||
@@ -11,11 +11,6 @@ from app.dependencies import (
|
||||
Fail2BanSocketDep,
|
||||
Fail2BanStartCommandDep,
|
||||
)
|
||||
from app.exceptions import (
|
||||
ConfigOperationError,
|
||||
Fail2BanConnectionError,
|
||||
JailOperationError,
|
||||
)
|
||||
from app.models.config import (
|
||||
Fail2BanLogResponse,
|
||||
GlobalConfigResponse,
|
||||
|
||||
@@ -34,7 +34,7 @@ from app.models.ban import (
|
||||
TimeRange,
|
||||
)
|
||||
from app.models.server import ServerStatus, ServerStatusResponse
|
||||
from app.services import ban_service, geo_service
|
||||
from app.services import ban_service
|
||||
from app.utils.constants import DEFAULT_PAGE_SIZE
|
||||
|
||||
router: APIRouter = APIRouter(prefix="/api/dashboard", tags=["Dashboard"])
|
||||
|
||||
@@ -30,11 +30,6 @@ from app.dependencies import (
|
||||
GeoCacheDep,
|
||||
HttpSessionDep,
|
||||
)
|
||||
from app.exceptions import (
|
||||
Fail2BanConnectionError,
|
||||
JailNotFoundError,
|
||||
JailOperationError,
|
||||
)
|
||||
from app.models.ban import JailBannedIpsResponse
|
||||
from app.models.jail import (
|
||||
IgnoreIpRequest,
|
||||
|
||||
Reference in New Issue
Block a user