-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Use dev dependency-group #14085
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
base: main
Are you sure you want to change the base?
Use dev dependency-group #14085
Conversation
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
- name: Run mypy_primer | ||
shell: bash | ||
run: | | ||
cd typeshed_to_test | ||
MYPY_VERSION=$(grep mypy== requirements-tests.txt | cut -d = -f 3) | ||
MYPY_VERSION=$(python3 -m dependency_groups dev | grep mypy== | cut -d = -f3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An alternative that is less "correct" but doesn't depend on dependency_groups
and is still pretty solid to random spaces
MYPY_VERSION=$(python3 -m dependency_groups dev | grep mypy== | cut -d = -f3) | |
MYPY_VERSION=$(grep -E 'mypy\s+?==' pyproject.toml | awk -F '[ ="]+' '{print $3}') |
I don't like how this makes using Edit: I guess |
The reason this is draft is because at the moment it would only work with uv OR pip. Because uv doesn't support (yet?) relative file paths in dependencies. So there's no way to configure dependency groups to satisfy both tools. |
Would close #13974, but as previously mentioned, there's some blockers from uv:
AFAIK there's currently no way to have a dependency group with local files be both pip and uv compatible: