Skip to content

Commit

Permalink
Remove wildcard imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Feb 19, 2020
1 parent e49df27 commit 3af22e5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
4 changes: 3 additions & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
from octobot_commons.enums import TimeFrames

from octobot_commons.logging.logging_util import get_logger
from octobot_evaluators.api import create_all_type_evaluators, create_matrix_channels, initialize_evaluators

from octobot_evaluators.api.evaluators import initialize_evaluators, create_all_type_evaluators
from octobot_evaluators.api.initialization import create_matrix_channels
from octobot_evaluators.channels import MATRIX_CHANNEL

config = {
Expand Down
4 changes: 0 additions & 4 deletions octobot_evaluators/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library.

from .evaluators import *
from .initialization import *
from .inspection import *
9 changes: 0 additions & 9 deletions octobot_evaluators/evaluator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,9 @@
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library.
from octobot_commons.logging.logging_util import get_logger

from .abstract_evaluator import *
from .realtime_evaluator import *
from .social_evaluator import *
from .strategy_evaluator import *
from .TA_evaluator import *

try:
from tentacles.Evaluator.RealTime import *
from tentacles.Evaluator.Social import *
from tentacles.Evaluator.Strategies import *
from tentacles.Evaluator.TA import *
except ModuleNotFoundError as e:
get_logger().error(f"tentacles folder not found raised a ModuleNotFoundError exception : {e}")
5 changes: 3 additions & 2 deletions tests/channels/test_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
import pytest
from octobot_channels.channels.channel import del_chan, get_chan

from octobot_evaluators.api import create_matrix_channels, create_matrix
from octobot_evaluators.api.evaluators import create_matrix
from octobot_evaluators.api.initialization import create_matrix_channels
from octobot_evaluators.channels import MATRIX_CHANNEL
from octobot_evaluators.data.matrix import get_tentacle_path, Matrix
from octobot_evaluators.data.matrix import get_tentacle_path
from octobot_evaluators.matrices.matrices import Matrices


Expand Down
2 changes: 1 addition & 1 deletion tests/matrices/test_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# License along with this library.
import pytest

from octobot_evaluators.api import create_matrix
from octobot_evaluators.api.evaluators import create_matrix
from octobot_evaluators.data.matrix import Matrix
from octobot_evaluators.matrices.matrices import Matrices

Expand Down

0 comments on commit 3af22e5

Please sign in to comment.