Skip to content

Commit 10cab9a

Browse files
authored
Don't exit early to detect missing files. (#694)
1 parent 15ea1b3 commit 10cab9a

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
55
releases are available on [PyPI](https://pypi.org/project/pytask) and
66
[Anaconda.org](https://anaconda.org/conda-forge/pytask).
77

8+
## 0.5.5 - 2025-07-25
9+
10+
- {pull}`692` documents how to use pytask with workspaces.
11+
- {pull}`694` fixes {issue}`693` so that missing dependencies are detected in some cases. Thanks to {user}`timmens` for the report!
12+
813
## 0.5.4 - 2025-06-08
914

1015
- {pull}`676` ensures compatibility with click >8.2.0.

src/_pytask/execute.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def pytask_execute_task_setup(session: Session, task: PTask) -> None: # noqa: C
162162
has_changed = has_node_changed(task=task, node=node, state=node_state)
163163
if has_changed:
164164
needs_to_be_executed = True
165-
break
166165

167166
if not needs_to_be_executed:
168167
collect_provisional_products(session, task)

tests/test_execute.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,9 @@ def task2() -> None: pass
637637
assert result.exit_code == ExitCode.OK
638638

639639

640+
@pytest.mark.xfail(
641+
sys.platform == "linux" and sys.version_info[:2] == (3, 9), reason="flakey"
642+
)
640643
def test_pytask_on_a_module_that_uses_the_functional_api(tmp_path):
641644
source = """
642645
from pytask import task, ExitCode, build

0 commit comments

Comments
 (0)