-
Notifications
You must be signed in to change notification settings - Fork 6
Add uv check #950
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
Merged
Merged
Add uv check #950
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: pyiron/executorlib
Length of output: 418
🌐 Web query:
uv pip check command documentation💡 Result:
The uv pip check command verifies the current Python environment for conflicts or missing dependencies in installed packages. It is part of uv's pip-compatible interface and can be used as a faster drop-in replacement for pip check. Usage: uv pip check Description (from official docs): It is possible to install packages with conflicting requirements into an environment if installed in multiple steps. To check for conflicts or missing dependencies in the environment: $ uv pip check What it checks for (from uv maintainer and compatibility docs): - Multiple versions of a package are installed in the virtual environment. - A package has a dependency on a package that's installed, but at an incompatible version. - A package has a dependency on a package that isn't installed. - A package has a Requires-Python that doesn't match the Python version of the running interpreter. - A package has no METADATA file, or the METADATA file can't be parsed. Differences from pip check: - uv pip check detects additional issues like multiple installed versions of the same package and Requires-Python mismatches, which pip check may not. - It exits with non-zero code if issues are found, suitable for CI scripting. - Internally similar to uv pip install --strict, but checks the entire environment without filtering unrelated diagnostics. No specific options like --verbose or others are documented for this command in the sources; it appears to be a simple, flag-less command like its pip counterpart. For full CLI reference, see https://docs.astral.sh/uv/reference/cli/ (links to uv pip check). Example output if issues found: Checked 81 packages in 0.71ms Found 1 incompatibility The package pip has multiple installed distributions: - /path/to/pip-23.0.1.dist-info - /path/to/pip-24.0.dist-info If no issues: No output or "No broken requirements found." (inferred from pip similarity), exits 0.
Citations:
uv pip checkgives a different result topip checkastral-sh/uv#2520uv pip checkanduv pip install --strictastral-sh/uv#10398🏁 Script executed:
Repository: pyiron/executorlib
Length of output: 44
Run dependency validation through uv-managed environment, not system pip.
uv syncprepares the project environment, but Line 111 callspip checkdirectly. This executes against the system Python, not the uv-managed virtual environment, causing dependency issues to be missed.🔧 Proposed fix
- name: Install the project and pip check shell: bash -l {0} run: | uv sync --all-extras --dev - pip check + uv pip check🤖 Prompt for AI Agents