From e6ba171265dc6981d54415a1b86730ec1aa683da Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Fri, 20 Mar 2026 21:13:05 -0400 Subject: Remove task.bat and task symlink --- pyproject.toml | 2 +- task | 1 - task.bat | 1 - tests/test_taskipy.py | 6 ++---- 4 files changed, 3 insertions(+), 7 deletions(-) delete mode 120000 task delete mode 100644 task.bat diff --git a/pyproject.toml b/pyproject.toml index 4907875..2de2d3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ tests_dir = "tests" src_dir = "taskipy" [tool.taskipy.tasks.lint] -cmd = "./task lint_pylint && ./task lint_mypy" +cmd = "task lint_pylint && task lint_mypy" help = "lint project with pylint for style and mypy for typings" [tool.taskipy.tasks.lint_pylint] diff --git a/task b/task deleted file mode 120000 index 7690d79..0000000 --- a/task +++ /dev/null @@ -1 +0,0 @@ -taskipy/cli.py \ No newline at end of file diff --git a/task.bat b/task.bat deleted file mode 100644 index 3be1261..0000000 --- a/task.bat +++ /dev/null @@ -1 +0,0 @@ -python %~dp0taskipy\cli.py %* diff --git a/tests/test_taskipy.py b/tests/test_taskipy.py index e4c3827..58efb5a 100644 --- a/tests/test_taskipy.py +++ b/tests/test_taskipy.py @@ -44,9 +44,8 @@ class TaskipyTestCase(unittest.TestCase): args: Optional[List[str]] = None, cwd=os.curdir, ) -> subprocess.Popen: - executable_path = path.abspath('task.bat' if platform.system() == 'Windows' else 'task') args = args or [] - return subprocess.Popen([executable_path, task] + args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd) + return subprocess.Popen(['task', task] + args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd) def create_test_dir_from_fixture(self, fixture_name: str): project_generator = GenerateProjectFromFixture(path.join('tests', 'fixtures', fixture_name)) @@ -331,9 +330,8 @@ class TaskRunFailTestCase(TaskipyTestCase): def test_exiting_with_code_127_and_printing_if_no_arg_is_passed(self): cwd = self.create_test_dir_from_fixture('project_with_pyproject_and_tasks') - executable_path = path.abspath('task') proc = subprocess.Popen( - executable_path, + 'task', stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, -- cgit v1.2.3