Skip to content

Commit

Permalink
fix: Allow env var defaults in included task files
Browse files Browse the repository at this point in the history
fixes: #262
  • Loading branch information
nat-n committed Nov 25, 2024
1 parent 0a9526c commit 7aaf2dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion poethepoet/config/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class ConfigOptions(PoeOptions):
Options supported directly under tool.poe in included config files
"""

env: Mapping[str, str] = EmptyDict
env: Mapping[str, Union[str, EnvDefault]] = EmptyDict
envfile: Union[str, Sequence[str]] = tuple()
tasks: Mapping[str, Any] = EmptyDict

Expand Down
3 changes: 3 additions & 0 deletions tests/fixtures/includes_project/sub_git_repo/base_tasks2.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# tasks to be included relative to the git repo root

tool.poe.env.foo.default = "bar"


[tool.poe.tasks]
did_it_work2 = "poe_test_echo yes"

0 comments on commit 7aaf2dd

Please sign in to comment.