diff --git a/commitloom/__main__.py b/commitloom/__main__.py index 03f979a..e5283fb 100644 --- a/commitloom/__main__.py +++ b/commitloom/__main__.py @@ -11,8 +11,8 @@ env_path = os.path.join(os.path.dirname(__file__), "..", ".env") load_dotenv(dotenv_path=env_path) -from .cli.cli_handler import CommitLoom from .cli import console +from .cli.cli_handler import CommitLoom def handle_error(error: Exception) -> None: diff --git a/tests/test_commit_loom.py b/tests/test_commit_loom.py index c7fcc53..ba82c18 100644 --- a/tests/test_commit_loom.py +++ b/tests/test_commit_loom.py @@ -1,10 +1,11 @@ """Tests for CommitLoom functionality.""" -import pytest from unittest.mock import MagicMock +import pytest + from commitloom.cli.cli_handler import CommitLoom -from commitloom.core.analyzer import CommitAnalysis, Warning, WarningLevel +from commitloom.core.analyzer import CommitAnalysis from commitloom.core.git import GitError, GitFile from commitloom.services.ai_service import CommitSuggestion @@ -116,4 +117,4 @@ def test_commit_error(self, mock_deps, mocker): loom = CommitLoom() loom.run() - mock_console.print_error.assert_called() \ No newline at end of file + mock_console.print_error.assert_called() diff --git a/tests/test_git/__init__.py b/tests/test_git/__init__.py index c29d092..d3dc5ef 100644 --- a/tests/test_git/__init__.py +++ b/tests/test_git/__init__.py @@ -1 +1 @@ -"""Git test package.""" \ No newline at end of file +"""Git test package."""