0

This is what I am running with doit.

def task_tests() -> dict:
"""Runs all tests."""
return {
    "actions": ["poetry run pytest"],
}

and When I run it I get this error

 doit tests
Traceback (most recent call last):
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/doit_cmd.py", line 294, in run
    return command.parse_execute(args)
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/cmd_base.py", line 150, in parse_execute
    return self.execute(params, args)
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/cmd_base.py", line 570, in execute
    return self._execute(**exec_params)
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/cmd_run.py", line 265, in _execute
    return runner.run_all(self.control.task_dispatcher())
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/runner.py", line 254, in run_all
    self.run_tasks(task_dispatcher)
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/runner.py", line 217, in run_tasks
    if not self.select_task(node, task_dispatcher.tasks):
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/runner.py", line 118, in select_task
    if node.ignored_deps or self.dep_manager.status_is_ignore(task):
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/dependency.py", line 594, in status_is_ignore
    return self._get(task.name, "ignore:")
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/dependency.py", line 213, in get
    self._db[task_id] = self.codec.decode(task_data.decode('utf-8'))
  File "/Users/sazzad/Library/Caches/pypoetry/virtualenvs/service-qHFD2Grb-py3.9/lib/python3.9/site-packages/doit/dependency.py", line 60, in decode
    return self.decoder.decode(data)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 1359414 (char 1359413)

I can run other doit tasks but not tests. I can run this command from terminal without any error I am using an apple MacBook pro [M1 chip]

Sazzad
  • 773
  • 11
  • 22

0 Answers0