ruff/docs
Brent Westbrook dec4154c8a
Document known lambda formatting deviations from Black (#21954)
Summary
--

Following #8179, we now format long lambda expressions a bit more like
Black, preferring to keep long parameter lists on a single line, but we
go one step further to break the body itself across multiple lines and
parenthesize it if it's still too long. This PR documents both the
stable deviation that breaks parameters across multiple lines, and the
new preview deviation that breaks the body instead.

I also fixed a couple of typos in the section immediately above my
addition.

Test Plan
--

I tested all of the snippets here against `main` for the preview
behavior, our playground for the stable behavior, and Black's playground
for their behavior
2025-12-12 12:57:09 -05:00
..
.overrides Use | for page separator in meta titles (#13221) 2024-09-03 00:46:15 +00:00
assets
editors Limit `eglot-format` hook to eglot-managed Python buffers (#21459) 2025-11-17 13:52:31 +00:00
formatter Document known lambda formatting deviations from Black (#21954) 2025-12-12 12:57:09 -05:00
js
stylesheets Fix copy and line separator colors in dark mode (#19630) 2025-07-30 15:08:31 +01:00
.gitignore
configuration.md Document `*.pyw` is included by default in preview (#21885) 2025-12-10 16:43:55 +00:00
faq.md Show partial fixability indicator in statistics output (#21513) 2025-11-27 18:03:36 +01:00
formatter.md [docs] fix formatting of "See Style Guide" link (#17272) 2025-04-07 12:43:26 +00:00
installation.md Use uv consistently throughout the documentation (#15302) 2025-01-07 14:43:25 +00:00
integrations.md Prepare 0.14.9 release (#21927) 2025-12-11 13:17:52 -08:00
linter.md Document range suppressions, reorganize suppression docs (#21884) 2025-12-11 11:16:36 -08:00
preview.md Fix minor punctuation errors (#16228) 2025-02-18 12:24:57 +00:00
requirements.txt Update mkdocs-material to 9.7.0 (Insiders now free) (#21797) 2025-12-05 08:53:08 +01:00
tutorial.md Prepare 0.14.9 release (#21927) 2025-12-11 13:17:52 -08:00
versioning.md Ignore deprecated rules unless selected by exact code (#20167) 2025-09-10 09:00:27 -04:00