Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UV replacement of Poetry #2349

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

staticdev
Copy link
Collaborator

@staticdev staticdev commented Jan 26, 2025

Reverts #2347
Closes #2337

Copy link

codecov bot commented Jan 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.16%. Comparing base (b3760ab) to head (16bb0e2).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2349      +/-   ##
==========================================
+ Coverage   99.12%   99.16%   +0.03%     
==========================================
  Files          40       40              
  Lines        3098     3098              
  Branches      788      680     -108     
==========================================
+ Hits         3071     3072       +1     
  Misses         15       15              
+ Partials       12       11       -1     

@staticdev staticdev force-pushed the revert-2347-revert-2346-ci/uv-replacement-for-poetry branch from cff1fdb to 23b746c Compare January 26, 2025 18:37
@staticdev staticdev added the ci Continuous Integration label Jan 26, 2025
@staticdev staticdev marked this pull request as ready for review January 26, 2025 18:38
@staticdev staticdev requested a review from DanielNoord January 26, 2025 18:38
@staticdev staticdev force-pushed the revert-2347-revert-2346-ci/uv-replacement-for-poetry branch from 23b746c to 0225875 Compare January 26, 2025 18:39
build-backend = "hatchling.build"

[dependency-groups]
dev = [
Copy link
Member

Choose a reason for hiding this comment

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

What is the difference between this and the dev optional dependencies?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did some mess in the conversion, but fixed.
[dependency-groups] are the correct part for dev dependencies, the optional dependencies are the extras.

.github/workflows/integration.yml Show resolved Hide resolved
.github/workflows/lint.yml Show resolved Hide resolved
.github/workflows/release-dev.yml Show resolved Hide resolved
.github/workflows/test.yml Show resolved Hide resolved
@@ -1,7 +1,7 @@
import glob
import os
import sys
from typing import Any, Dict, Iterator, List
from typing import Any, Iterator
Copy link
Member

Choose a reason for hiding this comment

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

These changes seem unrelated? Why are we removing user_options ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A bit, but for some reason mypy started complaining about it. It may be it happened because mypy got upgraded on the way.

Copy link
Member

Choose a reason for hiding this comment

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

Should we at least make a small mention of it in the changelog?

I'm not too up to speed with what this does, but I can assume users can be surprised this is removed without a notice.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@DanielNoord I actually returned with user_options to be extra safe and put a type ignore with a comment so mypy does not complain.

@staticdev staticdev requested a review from DanielNoord January 27, 2025 11:05
Copy link
Member

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

Only one comment about the removal. Rest LGTM!

@@ -1,7 +1,7 @@
import glob
import os
import sys
from typing import Any, Dict, Iterator, List
from typing import Any, Iterator
Copy link
Member

Choose a reason for hiding this comment

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

Should we at least make a small mention of it in the changelog?

I'm not too up to speed with what this does, but I can assume users can be surprised this is removed without a notice.

@@ -16,7 +16,8 @@ class ISortCommand(setuptools.Command):
"""

description = "Run isort on modules registered in setuptools"
user_options: List[Any] = []
# Potentially unused variable - check if can be safely removed
user_options: list[Any] = [] # type: ignore
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
user_options: list[Any] = [] # type: ignore
user_options: list[Any] = [] # type: ignore[error-code]

Nit, but I always add the error code that I'm ignoring so that I don't accidentally ignore a new error code after a mypy bump. Could you add the specific code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added.

@staticdev staticdev force-pushed the revert-2347-revert-2346-ci/uv-replacement-for-poetry branch from 04cf004 to 7f44d60 Compare January 27, 2025 21:25
@staticdev staticdev force-pushed the revert-2347-revert-2346-ci/uv-replacement-for-poetry branch from 7f44d60 to 16bb0e2 Compare January 27, 2025 21:27
Copy link
Member

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

Awesome! Nice job on doing this migration 🚀

@staticdev
Copy link
Collaborator Author

Awesome! Nice job on doing this migration 🚀

Thanks a lot, nice job on review also!

@@ -24,18 +24,13 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "pip"
Copy link
Member

Choose a reason for hiding this comment

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

By the way, I think these caches are now outdated.

Maybe something for a follow up though!

@staticdev staticdev merged commit 2d00730 into main Jan 27, 2025
38 checks passed
@staticdev staticdev deleted the revert-2347-revert-2346-ci/uv-replacement-for-poetry branch January 27, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace Poetry with UV
2 participants