Conversation
This comment has been minimized.
This comment has been minimized.
| 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.
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. |
…dependency-groups-for-dev-dependencies
This comment has been minimized.
This comment has been minimized.
…dependency-groups-for-dev-dependencies
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
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: