diff options
| -rw-r--r-- | pyproject.toml | 2 | ||||
| l--------- | task | 1 | ||||
| -rw-r--r-- | task.bat | 1 | ||||
| -rw-r--r-- | tests/test_taskipy.py | 6 |
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] @@ -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, |