mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 21:42:22 +00:00
Linting
This commit is contained in:
@@ -6,12 +6,12 @@ from openbb_provider.model.abstract.data import Data, QueryParams
|
||||
from openbb_provider.provider.abstract.fetcher import Fetcher
|
||||
from openbb_provider.provider.abstract.provider import ProviderName
|
||||
from openbb_provider.provider.provider_map import build_provider_mapping
|
||||
from openbb_sdk.builtin_extensions.providers.model.item.registry import build_registry
|
||||
|
||||
from openbb_sdk_core.app.model.command_context import CommandContext
|
||||
from openbb_sdk_core.app.model.command_output import CommandOutput
|
||||
from openbb_sdk_core.app.router import Router
|
||||
|
||||
from openbb_sdk.builtin_extensions.providers.model.item.registry import build_registry
|
||||
|
||||
registry = build_registry()
|
||||
meta_router = Router()
|
||||
|
||||
|
||||
@@ -6,15 +6,15 @@ from copy import deepcopy
|
||||
from enum import Enum
|
||||
from typing import Any, Dict
|
||||
|
||||
# IMPORT THIRD-PARTY
|
||||
from posthog import Posthog
|
||||
|
||||
# IMPORT INTERNAL
|
||||
from openbb_sdk_core.logs.formatters.formatter_with_exceptions import (
|
||||
FormatterWithExceptions,
|
||||
)
|
||||
from openbb_sdk_core.logs.models.logging_settings import LoggingSettings
|
||||
|
||||
# IMPORT THIRD-PARTY
|
||||
from posthog import Posthog
|
||||
|
||||
openbb_posthog = Posthog(
|
||||
"phc_kbMqB2PNpBEkfAwQZWzbQJReplLIu8Ya6OfXcAayao9",
|
||||
host="https://eu.posthog.com",
|
||||
|
||||
@@ -4,9 +4,6 @@ import logging
|
||||
from enum import Enum
|
||||
from typing import Any, Callable, Dict, Optional
|
||||
|
||||
# IMPORT THIRD-PARTY
|
||||
from pydantic.json import pydantic_encoder
|
||||
|
||||
from openbb_sdk_core.app.model.command_output import CommandOutput
|
||||
from openbb_sdk_core.app.model.system_settings import SystemSettings
|
||||
from openbb_sdk_core.app.model.user_settings import UserSettings
|
||||
@@ -20,6 +17,9 @@ from openbb_sdk_core.logs.formatters.formatter_with_exceptions import (
|
||||
from openbb_sdk_core.logs.handlers_manager import HandlersManager
|
||||
from openbb_sdk_core.logs.models.logging_settings import LoggingSettings
|
||||
|
||||
# IMPORT THIRD-PARTY
|
||||
from pydantic.json import pydantic_encoder
|
||||
|
||||
|
||||
class LoggingManager:
|
||||
def __init__(
|
||||
|
||||
@@ -28,4 +28,3 @@ def remove_file_list(file_list: List[Path]):
|
||||
for file in file_list:
|
||||
with contextlib.suppress(PermissionError):
|
||||
file.unlink(missing_ok=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user