Skip to content

Commit

Permalink
refactor: moves utils.py to helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
thiarthur committed Aug 4, 2024
1 parent f691030 commit a7d556e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eolic/utils.py → eolic/helpers/modules.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""File containing utility functions for various tasks."""
"""File containing helpers for modules."""

import importlib.util

Expand Down
2 changes: 1 addition & 1 deletion eolic/integrations/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from ..base import Integration
from ..model import EventDTO
from ..utils import is_module_installed
from ..helpers.modules import is_module_installed

if TYPE_CHECKING:
from celery import Celery
Expand Down
2 changes: 1 addition & 1 deletion eolic/integrations/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from ..base import Integration
from ..model import EventDTO
from ..utils import is_module_installed
from ..helpers.modules import is_module_installed

if TYPE_CHECKING:
from fastapi import FastAPI
Expand Down
1 change: 1 addition & 0 deletions eolic/meta/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Module containing metaclasses."""
2 changes: 1 addition & 1 deletion eolic/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import atexit
import signal
from typing import Any, Callable
from eolic.helpers.coroutines import run_coroutine
from .helpers.coroutines import run_coroutine


class TaskManager:
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/test_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from eolic.base import Eolic
from eolic.integrations.celery import CeleryIntegration
from eolic.model import EventDTO
from eolic.utils import get_module
from eolic.helpers.modules import get_module


@pytest.fixture
Expand Down

0 comments on commit a7d556e

Please sign in to comment.