-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(factory): safe get
extras
in scripts and config
- Loading branch information
1 parent
96f2a91
commit 40d6341
Showing
3 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/fixtures/project_failing_strict_validation/pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[tool.poetry] | ||
readme = ["README.rst", "README_WITH_ANOTHER_EXTENSION.md"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "*" | ||
pathlib2 = { version = "^2.2", python = "3.7", allows-prereleases = true } | ||
|
||
[tool.poetry.scripts] | ||
a_script_with_unknown_extra = { reference = "a_script_with_unknown_extra.py", type = "file", extras = ["foo"] } | ||
a_script_without_extras = { reference = "a_script_without_extras.py", type = "file" } | ||
a_script_with_empty_extras = { reference = "a_script_with_empty_extras.py", type = "file", extras = [] } | ||
another_script = "another_script:main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters