Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Explicitly disallow capture_stdout option on sequence tasks #261

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/tasks/task_types/sequence.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ By default the contents of the array are interpreted as references to other task
Available task options
----------------------

``sequence`` tasks support all of the :doc:`standard task options <../options>` with the exception of ``use_exec``.
``sequence`` tasks support all of the :doc:`standard task options <../options>` with the exception of ``use_exec`` and ``capture_stdout``.

The following options are also accepted:

Expand Down
4 changes: 4 additions & 0 deletions poethepoet/task/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def validate(self):
"Unsupported value for option `default_item_type`,\n"
f"Expected one of {PoeTask.get_task_types(content_type=str)}"
)
if self.capture_stdout is not None:
raise ConfigValidationError(
"Unsupported option for sequence task `capture_stdout`"
)

class TaskSpec(PoeTask.TaskSpec):
content: list
Expand Down