Skip to content

Clarify documentation and correct stale guidance - #29374

Merged
zanieb merged 2 commits into
astral-sh:mainfrom
zaniebot:docs/documentation-pass-20261014
Oct 15, 2026
Merged

zanieb merged 2 commits into
astral-sh:mainfrom
zaniebot:docs/documentation-pass-20261014

Conversation

@zaniebot

Copy link
Copy Markdown
Contributor

The documentation has stale configuration guidance and a few examples that do not work as written. Clarify the prose and correct editor configuration precedence, user-level configuration discovery, rule descriptions, and the tutorial and configuration examples.

@zanieb zanieb added the documentation Improvements or additions to public-facing documentation label Oct 14, 2026
@zanieb

zanieb commented Oct 14, 2026

Copy link
Copy Markdown
Member

A self-review of this looks pretty good to me, some stuff is 50-50 but it also fixes various mistakes

@zanieb
zanieb marked this pull request as ready for review October 14, 2026 16:17

@ntBre ntBre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice! Looks great to me, just a few nits/ideas for your consideration.

Comment thread docs/editors/index.md Outdated
Comment on lines +16 to +18
The server provides Ruff diagnostics, Code Actions to fix them, and formatting using Ruff's built-in
formatter. Currently, it is intended to be used alongside another Python Language Server for
features like navigation and autocompletion.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we could recommend ty while we're here?

Comment thread docs/editors/migration.md Outdated
Comment on lines 3 to 4
[`ruff-lsp`][ruff-lsp] is a [Language Server Protocol] implementation that powers Ruff's editor
integrations. It is written in Python and is a separate package from Ruff itself. The **native

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe some past tense here now that we've fully dropped support?

Comment thread docs/editors/settings.md Outdated
**Default value**: `null`

**Type**: `string`
**Type**: `string | object`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This might be technically true, but it doesn't strike me as particularly helpful.

Comment thread CONTRIBUTING.md Outdated
Comment on lines +479 to +481
Ruff uses a [custom versioning scheme](https://docs.astral.sh/ruff/versioning/). Breaking changes
generally require a minor release. Patch releases can include bug fixes, backwards-compatible
additions, and preview changes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We still generally follow semver right? Linking to our versioning directly also makes sense, though.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure why it changed this file tbh, maybe I'll see what we say in uv

Comment thread docs/editors/settings.md
**Default value**: `null`

**Type**: `string | object`
**Type**: `string` (path to a configuration file) or `object` (inline configuration)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh, maybe this does kind of make sense. I didn't really understand the full context from the diff, but you really can provide either a path or a whole configuration object.

string | object or even this longer version seems okay to me now.

https://docs.astral.sh/ruff/editors/settings/#configuration_resolution_order

@zanieb
zanieb merged commit c23d696 into astral-sh:main Oct 15, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to public-facing documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants