aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-03-20 21:13:05 -0400
committerEugene Triguba <hello@eugenetriguba.com>2026-03-21 13:37:31 -0400
commite6ba171265dc6981d54415a1b86730ec1aa683da (patch)
tree07a3e7a363464538faff68789fadc98e069ae8e9
parentAdd pypi publish job and release commit script (diff)
downloadtaskipy2-e6ba171265dc6981d54415a1b86730ec1aa683da.zip
Remove task.bat and task symlink
-rw-r--r--pyproject.toml2
l---------task1
-rw-r--r--task.bat1
-rw-r--r--tests/test_taskipy.py6
4 files changed, 3 insertions, 7 deletions
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,