Add --no-project alias for uv python pin --no-workspace (#6514)

This matches the other interfaces and seems like an oversight.
This commit is contained in:
Zanie Blue 2024-08-23 11:08:27 -05:00 committed by GitHub
parent 57f833c302
commit 4cdca06db2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 38 additions and 17 deletions

View file

@ -3293,12 +3293,12 @@ uv python pin [OPTIONS] [REQUEST]
<p>For example, spinners or progress bars.</p>
</dd><dt><code>--no-project</code></dt><dd><p>Avoid validating the Python pin is compatible with the project or workspace.</p>
<p>By default, a project or workspace is discovered in the current directory or any parent directory. If a workspace is found, the Python pin is validated against the workspace&#8217;s <code>requires-python</code> constraint.</p>
</dd><dt><code>--no-python-downloads</code></dt><dd><p>Disable automatic downloads of Python.</p>
</dd><dt><code>--no-workspace</code></dt><dd><p>Avoid validating the Python pin is compatible with the workspace.</p>
<p>By default, a workspace is discovered in the current directory or any parent directory. If a workspace is found, the Python pin is validated against the workspace&#8217;s <code>requires-python</code> constraint.</p>
</dd><dt><code>--offline</code></dt><dd><p>Disable network access.</p>
<p>When disabled, uv will only use locally cached data and locally available files.</p>