Skip to content

Commit

Permalink
sort packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andriykohut committed Dec 4, 2023
1 parent f3ee93d commit 02e1f3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pdm-readiness"
version = "0.1.3"
version = "0.1.4"
description = "A pdm plugin to check if your project dependencies support specific Python version."
authors = [
{name = "Andrii Kohut", email = "kogut.andriy@gmail.com"},
Expand Down Expand Up @@ -44,4 +44,4 @@ dev = [

[tool.pdm.scripts]
test = "pytest --cov=src tests/"
lint = "pre-commit run --all-files"
lint = "pre-commit run --all-files"
5 changes: 5 additions & 0 deletions src/pdm_readiness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ def handle(self, project: Project, options: argparse.Namespace) -> None:
supported_versions_for_latest,
)
)
supported.sort(key=lambda x: x[0].lower())
needs_update.sort(key=lambda x: x[0].lower())
unsupported.sort(key=lambda x: x[0].lower())
unknown.sort(key=lambda x: x[0].lower())

if supported:
console.print(
f"[bold]Supported dependencies ({len(supported)}):[/bold]"
Expand Down

0 comments on commit 02e1f3c

Please sign in to comment.