Skip to content

Commit 3188d99

Browse files
Use consistent commas around i.e. and e.g. (#12157)
## Summary Only in user-facing docs -- I didn't bother with the rustdoc. (This is in the style guide already.)
1 parent f5f712d commit 3188d99

File tree

18 files changed

+34
-34
lines changed

18 files changed

+34
-34
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Changelog entries and version bumps are automated. First, run:
177177

178178
Then, editorialize the `CHANGELOG.md` file to ensure entries are consistently styled.
179179

180-
Then, open a pull request e.g. `Bump version to ...`.
180+
Then, open a pull request, e.g., `Bump version to ...`.
181181

182182
Binary builds will automatically be tested for the release.
183183

changelogs/0.1.x.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1050,11 +1050,11 @@ See [#2976](https://github.com/astral-sh/uv/pull/2976#discussion_r1566521453) fo
10501050

10511051
### Bug fixes
10521052

1053-
- Fix HTTP authentication when the password includes percent encoded characters (e.g. with Google
1053+
- Fix HTTP authentication when the password includes percent encoded characters (e.g., with Google
10541054
Artifact Registry) ([#2822](https://github.com/astral-sh/uv/issues/2822))
10551055
- Use usernames from URLs when looking for credentials in netrc files and the keyring
10561056
[#2563](https://github.com/astral-sh/uv/issues/2563))
1057-
- Skip `HEAD` requests for indexes that return 403 (e.g. PyPICloud)
1057+
- Skip `HEAD` requests for indexes that return 403 (e.g., PyPICloud)
10581058
([#3070](https://github.com/astral-sh/uv/pull/3070))
10591059
- Use kebab-case consistently ([#3080](https://github.com/astral-sh/uv/pull/3080))
10601060
- Show package name in no version for direct dependency error

changelogs/0.5.x.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ abundance of caution. We expect most users to be able to upgrade without making
4545
- **Implement PEP 440-compliant local version semantics**
4646
([#8797](https://github.com/astral-sh/uv/pull/8797))
4747

48-
Previously, uv's implementation of local versions (e.g. `2.0+cpu`) was not compliant with the
48+
Previously, uv's implementation of local versions (e.g., `2.0+cpu`) was not compliant with the
4949
specification due to the technical complexity of implementing the local version semantics in the
5050
PubGrub algorithm. Thanks to the work of @ericmarkmartin, uv now has a spec-compliant
5151
implementation. Namely, uv will now allow a request for `torch==2.1.0` to install

crates/uv-globfilter/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ This crate supports the cross-language, restricted glob syntax from
2424
- `?`: Matches a single character except the path separator
2525
- `**`: Matches any number of characters including path separators
2626
- `[]`, containing only the verbatim matched characters: Matches a single of the characters
27-
contained. Within `[...]`, the hyphen indicates a locale-agnostic range (e.g. `a-z`, order based
28-
on Unicode code points). Hyphens at the start or end are matched literally.
27+
contained. Within `[...]`, the hyphen indicates a locale-agnostic range (e.g., `a-z`, order
28+
based on Unicode code points). Hyphens at the start or end are matched literally.
2929
- The path separator is the forward slash character (`/`). Patterns are relative to the given
3030
directory, a leading slash character for absolute paths is not supported.
3131
- Parent directory indicators (`..`) are not allowed.

crates/uv-pep440/Readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ assert!(version_specifiers.contains(&version));
2424

2525
PEP 440 has a lot of unintuitive features, including:
2626

27-
- An epoch that you can prefix the version which, e.g. `1!1.2.3`. Lower epoch always means lower
27+
- An epoch that you can prefix the version with, e.g., `1!1.2.3`. Lower epoch always means lower
2828
version (`1.0 <=2!0.1`)
2929

3030
* post versions, which can be attached to both stable releases and pre-releases
@@ -40,6 +40,6 @@ PEP 440 has a lot of unintuitive features, including:
4040
* local versions on top of all the others, which are added with a + and have implicitly typed string
4141
and number segments
4242
* no semver-caret (`^`), but a pseudo-semver tilde (`~=`)
43-
* ordering contradicts matching: We have e.g. `1.0+local > 1.0` when sorting, but `==1.0` matches
43+
* ordering contradicts matching: We have, e.g., `1.0+local > 1.0` when sorting, but `==1.0` matches
4444
`1.0+local`. While the ordering of versions itself is a total order the version matching needs to
4545
catch all sorts of special cases

crates/uv-pep508/Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ assert_eq!(dependency_specification.extras, Some(vec!["security".to_string(), "t
2222
## Markers
2323

2424
Markers allow you to install dependencies only in specific environments (python version, operating
25-
system, architecture, etc.) or when a specific feature is activated. E.g. you can say
25+
system, architecture, etc.) or when a specific feature is activated. E.g., you can say
2626
`importlib-metadata ; python_version < "3.8"` or `itsdangerous (>=1.1.0) ; extra == 'security'`.
2727
Unfortunately, the marker grammar has some oversights (e.g.
2828
<https://github.com/pypa/packaging.python.org/pull/1181>) and the design of comparisons (PEP 440

crates/uv-static/src/env_vars.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,6 @@ impl EnvVars {
671671

672672
/// Overrides terminal width used for wrapping. This variable is not read by uv directly.
673673
///
674-
/// This is a quasi-standard variable, described e.g. in `ncurses(3x)`.
674+
/// This is a quasi-standard variable, described, e.g., in `ncurses(3x)`.
675675
pub const COLUMNS: &'static str = "COLUMNS";
676676
}

docs/concepts/projects/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ The `UV_PROJECT_ENVIRONMENT` environment variable can be used to configure the p
165165
environment path (`.venv` by default).
166166

167167
If a relative path is provided, it will be resolved relative to the workspace root. If an absolute
168-
path is provided, it will be used as-is, i.e. a child directory will not be created for the
168+
path is provided, it will be used as-is, i.e., a child directory will not be created for the
169169
environment. If an environment is not present at the provided path, uv will create it.
170170

171171
This option can be used to write to the system Python environment, though it is not recommended.

docs/concepts/projects/dependencies.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ interpreted as "a version of `foo` that's at least 1.2.3, but less than 2, and n
792792

793793
Specifiers are padded with trailing zeros if required, so `foo ==2` matches foo 2.0.0, too.
794794

795-
A star can be used for the last digit with equals, e.g. `foo ==2.1.*` will accept any release from
795+
A star can be used for the last digit with equals, e.g., `foo ==2.1.*` will accept any release from
796796
the 2.1 series. Similarly, `~=` matches where the last digit is equal or higher, e.g., `foo ~=1.2`
797797
is equal to `foo >=1.2,<2`, and `foo ~=1.2.3` is equal to `foo >=1.2.3,<1.3`.
798798

docs/concepts/python-versions.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ create the virtual environment with it.
3131

3232
The following Python version request formats are supported:
3333

34-
- `<version>` e.g. `3`, `3.12`, `3.12.3`
35-
- `<version-specifier>` e.g. `>=3.12,<3.13`
36-
- `<implementation>` e.g. `cpython` or `cp`
37-
- `<implementation>@<version>` e.g. `[email protected]`
38-
- `<implementation><version>` e.g. `cpython3.12` or `cp312`
39-
- `<implementation><version-specifier>` e.g. `cpython>=3.12,<3.13`
40-
- `<implementation>-<version>-<os>-<arch>-<libc>` e.g. `cpython-3.12.3-macos-aarch64-none`
34+
- `<version>` (e.g., `3`, `3.12`, `3.12.3`)
35+
- `<version-specifier>` (e.g., `>=3.12,<3.13`)
36+
- `<implementation>` (e.g., `cpython` or `cp`)
37+
- `<implementation>@<version>` (e.g., `[email protected]`)
38+
- `<implementation><version>` (e.g., `cpython3.12` or `cp312`)
39+
- `<implementation><version-specifier>` (e.g., `cpython>=3.12,<3.13`)
40+
- `<implementation>-<version>-<os>-<arch>-<libc>` (e.g., `cpython-3.12.3-macos-aarch64-none`)
4141

4242
Additionally, a specific system Python interpreter can be requested with:
4343

44-
- `<executable-path>` e.g. `/opt/homebrew/bin/python3`
45-
- `<executable-name>` e.g. `mypython3`
46-
- `<install-dir>` e.g. `/some/environment/`
44+
- `<executable-path>` (e.g., `/opt/homebrew/bin/python3`)
45+
- `<executable-name>` (e.g., `mypython3`)
46+
- `<install-dir>` (e.g., `/some/environment/`)
4747

4848
By default, uv will automatically download Python versions if they cannot be found on the system.
4949
This behavior can be

docs/concepts/resolution.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ required-environments = [
218218

219219
## Dependency preferences
220220

221-
If resolution output file exists, i.e. a uv lockfile (`uv.lock`) or a requirements output file
221+
If resolution output file exists, i.e., a uv lockfile (`uv.lock`) or a requirements output file
222222
(`requirements.txt`), uv will _prefer_ the dependency versions listed there. Similarly, if
223223
installing a package into a virtual environment, uv will prefer the already installed version if
224224
present. This means that locked or installed versions will not change unless an incompatible version

docs/configuration/authentication.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ with private repositories.
77

88
Using SSH:
99

10-
- `git+ssh://git@<hostname>/...` (e.g. `git+ssh://[email protected]/astral-sh/uv`)
11-
- `git+ssh://git@<host>/...` (e.g. `git+ssh://[email protected]/astral-sh/uv`)
10+
- `git+ssh://git@<hostname>/...` (e.g., `git+ssh://[email protected]/astral-sh/uv`)
11+
- `git+ssh://git@<host>/...` (e.g., `git+ssh://[email protected]/astral-sh/uv`)
1212

1313
See the
1414
[GitHub SSH documentation](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh)
1515
for more details on how to configure SSH.
1616

1717
Using a password or token:
1818

19-
- `git+https://<user>:<token>@<hostname>/...` (e.g.
19+
- `git+https://<user>:<token>@<hostname>/...` (e.g.,
2020
`git+https://git:[email protected]/astral-sh/uv`)
21-
- `git+https://<token>@<hostname>/...` (e.g. `git+https://[email protected]/astral-sh/uv`)
22-
- `git+https://<user>@<hostname>/...` (e.g. `git+https://[email protected]/astral-sh/uv`)
21+
- `git+https://<token>@<hostname>/...` (e.g., `git+https://[email protected]/astral-sh/uv`)
22+
- `git+https://<user>@<hostname>/...` (e.g., `git+https://[email protected]/astral-sh/uv`)
2323

2424
When using a GitHub personal access token, the username is arbitrary. GitHub does not support
2525
logging in with password directly, although other hosts may. If a username is provided without

docs/configuration/environment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ Use to control color via `anstyle`.
423423

424424
Overrides terminal width used for wrapping. This variable is not read by uv directly.
425425

426-
This is a quasi-standard variable, described e.g. in `ncurses(3x)`.
426+
This is a quasi-standard variable, described, e.g., in `ncurses(3x)`.
427427

428428
### `CONDA_DEFAULT_ENV`
429429

docs/guides/install-python.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To install multiple Python versions:
5050
$ uv python install 3.11 3.12
5151
```
5252

53-
To install an alternative Python implementation, e.g. PyPy:
53+
To install an alternative Python implementation, e.g., PyPy:
5454

5555
```console
5656
$ uv python install [email protected]

docs/guides/package.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ explicit = true
8787

8888
!!! note
8989

90-
When using `uv publish --index <name>`, the `pyproject.toml` must be present, i.e. you need to
90+
When using `uv publish --index <name>`, the `pyproject.toml` must be present, i.e., you need to
9191
have a checkout step in a publish CI job.
9292

9393
Even though `uv publish` retries failed uploads, it can happen that publishing fails in the middle,

docs/guides/scripts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ print("hello world!")
7676
EOF
7777
```
7878

79-
Note that if you use `uv run` in a _project_, i.e. a directory with a `pyproject.toml`, it will
79+
Note that if you use `uv run` in a _project_, i.e., a directory with a `pyproject.toml`, it will
8080
install the current project before running the script. If your script does not depend on the
8181
project, use the `--no-project` flag to skip this:
8282

docs/guides/tools.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Tools are installed into temporary, isolated environments when using `uvx`.
6565
When `uvx ruff` is invoked, uv installs the `ruff` package which provides the `ruff` command.
6666
However, sometimes the package and command names differ.
6767

68-
The `--from` option can be used to invoke a command from a specific package, e.g. `http` which is
68+
The `--from` option can be used to invoke a command from a specific package, e.g., `http` which is
6969
provided by `httpie`:
7070

7171
```console

docs/reference/troubleshooting/build-failures.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ dependencies of the package, e.g, `setuptools`.
259259

260260
If a package fails to build during resolution and the version that failed to build is older than the
261261
version you want to use, try adding a [constraint](../settings.md#constraint-dependencies) with a
262-
lower bound (e.g. `numpy>=1.17`). Sometimes, due to algorithmic limitations, the uv resolver tries
262+
lower bound (e.g., `numpy>=1.17`). Sometimes, due to algorithmic limitations, the uv resolver tries
263263
to find a fitting version using unreasonably old packages, which can be prevented by using lower
264264
bounds.
265265

0 commit comments

Comments
 (0)