When setting multiple pytask paths with common subdirectories, the tasks in those subdirectories are counted twice in the collection. I have checked, and they are not being executed twice. (This was originally discovered by @ChristianZimpelmann.)
Code Sample, a copy-pastable example
pytask version: 0.5.0
[tool.pytask.ini_options]
paths = [
".",
".",
]
import random
from pathlib import Path
def task_a():
Path(f"{random.randint(0, 10)}.txt").write_text("test")
Problem description
The first row says Collected 2 tasks, but in the Summary, it says 1 Collected tasks.

Expected Output
I believe there should be the same number of collected tasks. Additionally, if the verbosity level is high, one could consider printing a warning.
mainbranch of pytask.When setting multiple pytask paths with common subdirectories, the tasks in those subdirectories are counted twice in the collection. I have checked, and they are not being executed twice. (This was originally discovered by @ChristianZimpelmann.)
Code Sample, a copy-pastable example
pytask version: 0.5.0
$ cat pyproject.toml$ cat task_a.pyProblem description
The first row says
Collected 2 tasks, but in the Summary, it says1 Collected tasks.Expected Output
I believe there should be the same number of collected tasks. Additionally, if the verbosity level is high, one could consider printing a warning.