Skip to content

line-length directive should not be bounded #24547

@tigerhawkvok

Description

@tigerhawkvok

Summary

.... or, better yet, be disable-able, though I realize this has downstream implications.

It's 2026. All our IDEs can configure line wrapping to our heart's content.

Fact of the matter is I usually wrap things but as is appropriate for the document and logic level and context, not to some arbitrary value from ancient CRTs when every dev in the company has 36" extra-wide panels.

I can't even fake-disable this by setting a value like 9999, as it's outside the toml spec for ruff.

As for a use case, if I'm programatically filling a replacement for a SQL query written by a distant team member, the diff shouldn't be enormously different from their baseline -- and they have a horrifying number of queries that don't have their first significant character until well after 320 characters worth of whitespace. Which I provide to you as a specific, somewhat terrifying example to convey that even if all my work is a bounded, an upper line length limit is making a lot of assumptions about the others I need to work with that may have never even heard of formatters.

A less horrifying example is just a long import that I don't want to be broken into multiline where it's untenable to have its own config ( see #3206 , #21268 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions