Skip to content

Commit

Permalink
style: Black up
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramimashkouk committed Dec 16, 2024
1 parent c130be1 commit 372d79d
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import Dict, List, Any, Tuple
from typing import Any, Dict, List, Tuple

from ...schemas.front_graph_components.flow import Flow
from .node_converter import InfoNodeConverter, LinkNodeConverter
from .base_converter import BaseConverter
from .node_converter import InfoNodeConverter, LinkNodeConverter


class FlowConverter(BaseConverter):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .base_converter import BaseConverter
from ...schemas.front_graph_components.interface import Interface
from .base_converter import BaseConverter


class InterfaceConverter(BaseConverter):
Expand All @@ -10,6 +10,4 @@ def _convert(self):
if self.interface.http is not None:
return {"chatsky.messengers.HTTPMessengerInterface": {}}
elif self.interface.telegram is not None:
return {
"chatsky.messengers.TelegramInterface": {"token": {"external:os.getenv": "TG_BOT_TOKEN"}}
}
return {"chatsky.messengers.TelegramInterface": {"token": {"external:os.getenv": "TG_BOT_TOKEN"}}}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from abc import ABC, abstractmethod

from ..consts import CUSTOM_FILE, CONDITIONS_FILE
from ..base_converter import BaseConverter
from ....schemas.front_graph_components.info_holders.condition import CustomCondition, SlotCondition
from ....core.config import settings
from ....schemas.front_graph_components.info_holders.condition import CustomCondition, SlotCondition
from ..base_converter import BaseConverter
from ..consts import CONDITIONS_FILE, CUSTOM_FILE
from .service_replacer import store_custom_service


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ....core.config import settings
from ....schemas.front_graph_components.info_holders.response import CustomResponse, TextResponse
from ..base_converter import BaseConverter
from ....schemas.front_graph_components.info_holders.response import TextResponse, CustomResponse
from ..consts import CUSTOM_FILE, RESPONSES_FILE
from ....core.config import settings
from .service_replacer import store_custom_service


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ast
from ast import NodeTransformer
from typing import Dict, List
from pathlib import Path
import logging
from typing import Dict, List

from chatsky_ui.core.logger_config import get_logger


Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from .base_converter import BaseConverter
from chatsky import PRE_RESPONSE, PRE_TRANSITION, RESPONSE, TRANSITIONS

from ...schemas.front_graph_components.node import InfoNode, LinkNode
from .logic_component_converter.response_converter import TextResponseConverter, CustomResponseConverter
from .base_converter import BaseConverter
from .logic_component_converter.condition_converter import CustomConditionConverter, SlotConditionConverter

from chatsky import RESPONSE, TRANSITIONS, PRE_TRANSITION, PRE_RESPONSE
from .logic_component_converter.response_converter import CustomResponseConverter, TextResponseConverter


class NodeConverter(BaseConverter):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from pathlib import Path

import yaml

try:
from yaml import CLoader as Loader, CDumper as Dumper
from yaml import CDumper as Dumper
from yaml import CLoader as Loader
except ImportError:
from yaml import Loader, Dumper

from ...schemas.front_graph_components.pipeline import Pipeline

from .base_converter import BaseConverter
from .script_converter import ScriptConverter
from .interface_converter import InterfaceConverter
from .script_converter import ScriptConverter
from .slots_converter import SlotsConverter


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import List

from ...schemas.front_graph_components.script import Script
from .base_converter import BaseConverter
from .flow_converter import FlowConverter
from ...schemas.front_graph_components.script import Script


class ScriptConverter(BaseConverter):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import List

from .base_converter import BaseConverter
from ...schemas.front_graph_components.slot import GroupSlot, RegexpSlot
from ...schemas.front_graph_components.node import SlotsNode
from ...schemas.front_graph_components.slot import GroupSlot, RegexpSlot
from .base_converter import BaseConverter


class SlotsConverter(BaseConverter):
Expand Down

0 comments on commit 372d79d

Please sign in to comment.