Skip to content

Apply Simplified Technical English to documentation - #713

Draft
zaniebot wants to merge 7 commits into
mainfrom
zb/docs/simplified-technical-english
Draft

zaniebot wants to merge 7 commits into
mainfrom
zb/docs/simplified-technical-english

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Apply Simplified Technical English principles to user-facing documentation, command help, configuration descriptions, and source comments. Replace long or indirect explanations with shorter sentences, active voice, and consistent terminology while preserving existing behavior and established technical terms. Record the conventions in STYLE.md and update generated configuration descriptions and affected help snapshots.

@astral-automations-bot astral-automations-bot Bot added the documentation Improvements or additions to documentation label Aug 13, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/docs/simplified-technical-english branch 2 times, most recently from 8f404f1 to 92a71d2 Compare August 14, 2026 10:39
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/docs/simplified-technical-english branch 6 times, most recently from ea08bab to 746faa6 Compare August 21, 2026 12:58
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/docs/simplified-technical-english branch 6 times, most recently from 7be4bee to cd5ec1a Compare August 27, 2026 14:04
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/docs/simplified-technical-english branch 10 times, most recently from 00999e9 to 7c1319f Compare September 1, 2026 21:27
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/docs/simplified-technical-english branch 2 times, most recently from 1e30840 to 4d0bf8a Compare September 6, 2026 17:04
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/docs/simplified-technical-english branch 10 times, most recently from 2bab5c8 to 1111b2a Compare September 24, 2026 21:47
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/docs/simplified-technical-english branch 4 times, most recently from ba02573 to 400a17d Compare September 28, 2026 19:04
Comment thread crates/uv-cli/src/lib.rs Outdated
Comment on lines +5990 to +5992
/// If you do not specify a version, uv checks `UV_PYTHON`, then `.python-versions` or
/// `.python-version` files. If none exist, uv checks for an installed Python version. If it
/// finds none, it installs the latest stable Python version.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Retain the managed-Python qualifier in installation help

With a system Python on PATH but no managed installation or version request, uv python install still downloads Python. This rewrite loses the previous distinction that uv checks versions it installed: the implementation searches ManagedPythonInstallations::find_all(), not system interpreters. Say “a matching uv-managed Python version” and update the help snapshot so users do not expect an existing system interpreter to prevent installation.

Comment thread docs/reference/internals/resolver.md Outdated
Comment on lines +231 to +232
A package URL fixes both the package source and its implied version. Two different URLs for the same
package produce a resolution error because each URL acts like an exact version pin. A

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Qualify URL conflicts as applying within one resolution fork

Different URLs for the same package are valid under disjoint markers, such as sys_platform == 'darwin' and sys_platform != 'darwin'. The existing lock_same_version_multiple_urls integration test covers this, and ForkUrls::insert checks uniqueness within each fork. Replacing “conflicting URLs” with “different URLs” incorrectly rules out this supported configuration. Qualify the error condition as requiring incompatible URLs for the same package within one resolution fork.

Comment thread docs/concepts/projects/sync.md Outdated
`--only-group` will also exclude default groups.
`--all-groups`, `--no-default-groups`, `--group <name>`, `--only-group <name>`, and
`--no-group <name>` include or exclude additional groups. Like `--only-dev`, `--only-group` excludes
the project. Unlike `--only-dev`, `--only-group` also excludes default groups.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] State that --only-dev also excludes default groups

With tool.uv.default-groups = ["lint"], uv sync --only-dev excludes lint too. DependencyGroups::from_history translates DevMode::Only into only_group and disables defaults for either form; the CLI also documents --only-dev as an alias for --only-group dev. The new “Unlike” sentence incorrectly promises different installed dependencies. State that both forms exclude default groups.

Comment thread crates/uv-resolver/src/resolver/mod.rs Outdated
Comment on lines +3439 to +3441
// Avoid forking for a package with one dependency specification.
// This conservative strategy produces simpler lockfiles and faster resolution.
// However, it does not detect conflicts between transitive non-sibling dependencies.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Clarify that the heuristic can miss a required fork

Unforked dependencies still pass through add_package_version_dependencies and PubGrub's conflict handling. The existing fork_non_local_fork_marker_transitive test expects an unsatisfiable-requirements error despite disjoint markers permitting a valid resolution. The limitation is therefore missing a necessary fork, which can reject resolvable requirements. Saying conflicts are not detected obscures this distinction for maintainers. Reword the last sentence to explain that the strategy can miss forks needed for transitive non-sibling dependencies.

Comment thread docs/concepts/python-versions.md Outdated
Comment on lines +356 to +357
Standard CPython installations omit debug symbols to reduce their size. Debug builds retain
these symbols. A C-level debugger can use them to inspect Python processes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Keep the debug-symbol claim scoped to uv-managed Python

The previous note described CPython distributions installed by uv. A normal source-built CPython can retain debug symbols without enabling Py_DEBUG; uv identifies debug builds through Py_DEBUG in get_interpreter_info.py, independently of symbol availability. The rewrite broadens a distribution-specific statement and can suggest that native debugging requires a slower +debug interpreter. Retain the qualifier that uv-managed CPython distributions usually have their debug symbols stripped.

Comment thread crates/uv-cli/src/lib.rs Outdated
Comment on lines +2765 to +2766
/// By default, uv calls its build backend directly and does not create a PEP 517 build
/// environment. This option forces uv to use PEP 517 instead.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Keep the backend condition in --force-pep517 help

For projects using Hatchling or setuptools, uv build already uses PEP 517 by default. uv-build-commands selects direct builds only when check_direct_build accepts the project's backend and version requirements. Removing “for packages using the uv build backend” makes this paragraph incorrectly describe the default for all projects. Restore that condition, ideally specifying a compatible uv_build backend, so readers do not infer that other backends require this flag to use PEP 517.

/// System Python installations are still preferred over downloading managed Python versions.
/// Use `only-managed` to always fetch a managed Python version.
/// Use an existing system Python installation before downloading a managed version.
/// Use `only-managed` to always download a managed Python version.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Describe only-managed without promising a download

When a matching managed interpreter is already installed, PythonInstallation::find_or_download returns it from find_existing before reaching the download logic. The existing venv_python_preference test also covers this reuse. Changing “fetch” to “always download” incorrectly describes only-managed as forcing a download. Say “always use a managed Python installation” and update the generated schema description.

Comment on lines +174 to +175
Each entry includes a package name and version. An entry may also include extras or platform
markers. For example:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Keep version constraints optional in dependency documentation

Unversioned declarations such as dependencies = ["anyio"] are valid: the PEP 508 parser accepts missing version constraints, and the existing lock_no_sources integration test exercises this. The rewrite makes a version sound mandatory, unlike the previous wording. Say that each entry requires a package name and may include version constraints, extras, or environment markers.

Comment thread docs/guides/projects.md
Comment on lines +173 to +174
The `--upgrade-package` flag updates the specified package to the latest compatible version. It does
not change the other packages in the lockfile.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Describe targeted upgrades as preserving other versions when possible

This turns a preference into a guarantee. If package A's new version requires B>=2 while the lockfile contains B==1, uv lock --upgrade-package A can update B too. read_lock_requirements retains other locked versions as preferences, and get_preferred_from_iter skips preferences outside the required version range. Say that uv prefers retaining other locked versions but may change them to satisfy the upgrade.

This branch was successfully deployed

1 active (outdated) deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:skip-release Disable building release binaries for a pull request documentation Improvements or additions to documentation priority:4 Low: worthwhile tests, refactors, or maintenance with modest immediate benefit. risk:0 No meaningful change to product, state, release, or automation behavior. size:5 Project-sized: too much semantic scope for a normal review; needs decomposition or design review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants