Skip to content

Add uv-based dependency sorting script and sort dependencies#193

Merged
elong0527 merged 5 commits intomainfrom
sort-deps
Jan 8, 2026
Merged

Add uv-based dependency sorting script and sort dependencies#193
elong0527 merged 5 commits intomainfrom
sort-deps

Conversation

@nanxstats
Copy link
Collaborator

The dependencies listed in pyproject.toml should be in alphabetical orders.

This PR:

  • Add scripts/sort_deps.py to re-add dependencies with uv add for sorted dependencies in pyproject.toml.
  • Run the script to sort dependencies in the existing pyproject.toml.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces automation for maintaining alphabetically sorted dependencies in pyproject.toml. A new Python script leverages uv's built-in sorting by removing and re-adding dependencies, and has been applied to sort the existing dependencies.

  • Added scripts/sort_deps.py that uses uv commands to automatically sort dependencies
  • Sorted all dependencies in pyproject.toml alphabetically
  • Updated both changelog files to document the maintenance change

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
scripts/sort_deps.py New script that parses pyproject.toml and uses uv remove/add commands to sort dependencies alphabetically
pyproject.toml Dependencies and dev dependencies sorted alphabetically; environment markers normalized by uv
docs/changelog.md Added entry documenting the new sorting script and its application
CHANGELOG.md Added entry documenting the new sorting script and its application

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nanxstats nanxstats marked this pull request as draft January 8, 2026 16:29
@nanxstats nanxstats requested a review from Copilot January 8, 2026 16:46
@nanxstats nanxstats marked this pull request as ready for review January 8, 2026 16:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@elong0527 elong0527 merged commit cbdd819 into main Jan 8, 2026
15 checks passed
@nanxstats nanxstats deleted the sort-deps branch January 8, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants