From e36090ee4d8c4aa9b5e1d765c7a982a7d6610af3 Mon Sep 17 00:00:00 2001 From: ZaharChernenko Date: Tue, 10 Mar 2026 02:13:17 +0300 Subject: [PATCH] refactor: classes --- python_coderunner/pyproject.toml | 2 +- python_coderunner/src/commands_executor/__init__.py | 2 +- .../src/commands_executor/{inteface.py => interface.py} | 0 .../src/commands_executor/vim_commands_executor.py | 2 +- .../test_glob_command_builders_dispatcher.py | 6 ++---- 5 files changed, 5 insertions(+), 7 deletions(-) rename python_coderunner/src/commands_executor/{inteface.py => interface.py} (100%) diff --git a/python_coderunner/pyproject.toml b/python_coderunner/pyproject.toml index bfcca57..9a1dda1 100644 --- a/python_coderunner/pyproject.toml +++ b/python_coderunner/pyproject.toml @@ -3,7 +3,7 @@ name = "vim-code-runner" authors = [ {name = "Zahar Chernenko", email = "zaharchernenko35@gmail.com"}, ] -version = "1.0.1" +version = "1.0.2" requires-python = ">=3.10" [dependency-groups] diff --git a/python_coderunner/src/commands_executor/__init__.py b/python_coderunner/src/commands_executor/__init__.py index 90ad3e6..acb533d 100644 --- a/python_coderunner/src/commands_executor/__init__.py +++ b/python_coderunner/src/commands_executor/__init__.py @@ -1,2 +1,2 @@ -from .inteface import ICommandsExecutor +from .interface import ICommandsExecutor from .vim_commands_executor import TVimCommandsExecutor diff --git a/python_coderunner/src/commands_executor/inteface.py b/python_coderunner/src/commands_executor/interface.py similarity index 100% rename from python_coderunner/src/commands_executor/inteface.py rename to python_coderunner/src/commands_executor/interface.py diff --git a/python_coderunner/src/commands_executor/vim_commands_executor.py b/python_coderunner/src/commands_executor/vim_commands_executor.py index b339cf3..0b6dbb4 100644 --- a/python_coderunner/src/commands_executor/vim_commands_executor.py +++ b/python_coderunner/src/commands_executor/vim_commands_executor.py @@ -1,7 +1,7 @@ import vim from ..config import IConfig -from .inteface import ICommandsExecutor +from .interface import ICommandsExecutor class TVimCommandsExecutor(ICommandsExecutor): diff --git a/python_coderunner/tests/unit/command_builders_dispatcher/test_glob_command_builders_dispatcher.py b/python_coderunner/tests/unit/command_builders_dispatcher/test_glob_command_builders_dispatcher.py index a38be74..56aeeae 100644 --- a/python_coderunner/tests/unit/command_builders_dispatcher/test_glob_command_builders_dispatcher.py +++ b/python_coderunner/tests/unit/command_builders_dispatcher/test_glob_command_builders_dispatcher.py @@ -3,9 +3,7 @@ import pytest from src.command_builder import ICommandBuilder -from src.command_builders_dispatcher import ( - TFileTypeCommandBuildersDispatcher, -) +from src.command_builders_dispatcher import TGlobCommandBuildersDispatcher @pytest.mark.parametrize( @@ -22,7 +20,7 @@ ], ) def test_glob_command_builders_dispatcher( - fixture_glob_command_builders_dispatcher: TFileTypeCommandBuildersDispatcher, + fixture_glob_command_builders_dispatcher: TGlobCommandBuildersDispatcher, file_path: str, expected_build_result: Optional[str], ) -> None: