-
-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
package-type fixer
to avoid duplicated empty section (#2578)
* fix: packagetype fixer avoid dupl. empty section close: #2577 * test: add test for the fixer fix * doc: add news * Update src/pdm/cli/commands/fix/fixers.py * Update tests/cli/test_install.py * fix: test project missing requires-python * address ming's review comment * Update tests/cli/test_install.py --------- Co-authored-by: Frost Ming <[email protected]>
- Loading branch information
Showing
5 changed files
with
45 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fix the package-type fixer won't update toml properly for "Nested Section Ordering Issue in 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
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
23 changes: 23 additions & 0 deletions
23
tests/fixtures/projects/test-package-type-fixer/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,23 @@ | ||
[build-system] | ||
requires = ["pdm-backend"] | ||
build-backend = "pdm.backend" | ||
|
||
[project] | ||
|
||
version = "0.0.1" | ||
dependencies = [] | ||
name = "test-package-type-fixer" | ||
requires-python = ">=3.8" | ||
|
||
[tool.pdm.version] | ||
source = "file" | ||
path = "src/test_package_type_fixer/__init__.py" | ||
|
||
[tool.pdm] | ||
package-type = "application" | ||
|
||
[tool.pdm.dev-dependencies] | ||
|
||
dev = [ | ||
"requests==2.19.1" | ||
] |
1 change: 1 addition & 0 deletions
1
tests/fixtures/projects/test-package-type-fixer/src/test_package_type_fixer/__init__.py
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 @@ | ||
__verson__ = '0.1.0' |