ruff/crates/ruff_python_formatter/src
Brent Westbrook 94e0418006
Enable `--document-private-items` for `ruff_python_formatter`
Summary
--

I wanted to use a link to a preview function to help remember to update some
documentation in #21385, but I noticed that we weren't enforcing doc checks for
private items. I had Claude take the first stab here, but I ended up having to
go back through most of the changes to get the correct links.

The first commit makes everything compile, mostly by adding `(path::to::item)`
entries to the links, or removing brackets when the items aren't public enough.
There were only a couple of cases where I think things were renamed, and I tried
to find the new name for the type that was referenced (e.g.
`FlatBinaryExpressionSlice`).

The second commit rewraps the lines that were now too long and fixes a couple of
very small typos I noticed.

Test Plan
--

CI on this PR
2025-12-10 14:48:00 -05:00
..
comments Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00
expression Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00
module [ty] AST garbage collection (#18482) 2025-06-13 08:40:11 -04:00
other Respect `fmt: skip` for compound statements on single line (#20633) 2025-11-18 12:02:09 -06:00
pattern Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00
snapshots Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
statement Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00
string Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00
type_param Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00
builders.rs Implement template strings (#17851) 2025-05-30 15:00:56 -05:00
cli.rs Remove parentheses around multiple exception types on Python 3.14+ (#20768) 2025-10-14 11:17:45 -04:00
context.rs Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00
db.rs Update Rust toolchain to 1.88 and MSRV to 1.86 (#19011) 2025-06-28 20:24:00 +02:00
generated.rs Implement template strings (#17851) 2025-05-30 15:00:56 -05:00
lib.rs Update Rust toolchain to 1.91 (#21179) 2025-11-01 01:50:58 +00:00
main.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
options.rs [`ruff`] Update schemars to v1 (#20942) 2025-10-20 08:59:52 +02:00
prelude.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
preview.rs Avoid extra parentheses for long `match` patterns with `as` captures (#21176) 2025-11-03 17:06:52 -05:00
range.rs Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00
shared_traits.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
verbatim.rs Enable `--document-private-items` for `ruff_python_formatter` 2025-12-10 14:48:00 -05:00