diff --git a/README.md b/README.md index e8280f95f827..3975d146eebc 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ Type "help", "copyright", "credits" or "license" for more information. Use a specific Python version in the current directory: -``` +```console $ uv python pin pypy@3.11 Pinned `.python-version` to `pypy@3.11` ``` @@ -190,7 +190,7 @@ Updated `example.py` Then, run the script in an isolated virtual environment: -``` +```console $ uv run example.py Reading inline script metadata from: example.py Installed 5 packages in 12ms diff --git a/docs/concepts/tools.md b/docs/concepts/tools.md index 0748d398d276..c80f8d1589b2 100644 --- a/docs/concepts/tools.md +++ b/docs/concepts/tools.md @@ -73,13 +73,13 @@ Once a tool is installed with `uv tool install`, `uvx` will use the installed ve For example, after installing an older version of Ruff: -``` +```console $ uv tool install ruff==0.5.0 ``` The version of `ruff` and `uvx ruff` is the same: -``` +```console $ ruff --version ruff 0.5.0 $ uvx ruff --version diff --git a/docs/guides/install-python.md b/docs/guides/install-python.md index 2ea6e198cdd0..5589114eef27 100644 --- a/docs/guides/install-python.md +++ b/docs/guides/install-python.md @@ -62,7 +62,7 @@ $ uv python install 3.11 3.12 To install an alternative Python implementation, e.g. PyPy: -``` +```console $ uv python install pypy@3.12 ``` diff --git a/docs/index.md b/docs/index.md index 130b4c2581ac..482ad0babc19 100644 --- a/docs/index.md +++ b/docs/index.md @@ -155,7 +155,7 @@ Type "help", "copyright", "credits" or "license" for more information. Use a specific Python version in the current directory: -``` +```console $ uv python pin pypy@3.11 Pinned `.python-version` to `pypy@3.11` ``` @@ -177,7 +177,7 @@ Updated `example.py` Then, run the script in an isolated virtual environment: -``` +```console $ uv run example.py Reading inline script metadata from: example.py Installed 5 packages in 12ms