-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
- I have checked that this issue has not already been reported.
- I have confirmed this bug exists on the latest version of pytask.
- (optional) I have confirmed this bug exists on the
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[tool.pytask.ini_options]
paths = [
".",
".",
]$ cat task_a.pyimport 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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
