Prevent Black from unnecessarily wrapping lines
- Set `line-length = 9999` in `pyproject.toml` to explicitly disable
Black's automatic line wrapping.
- Ensures function calls, configuration paths, and structured literals
are not arbitrarily broken across multiple lines.
- Syntax constraints (e.g., deeply nested function calls) may still
cause wrapping, as Black enforces readability in some cases.
- Reference:
https://black.readthedocs.io/en/stable/the_black_code_style/
current_style.html#line-length
This change provides greater control over line formatting while
retaining Black's other formatting rules.
Change-Id: I52a9df56dab5e8827291a7d682c7f37106a133a2
Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
This commit is contained in:
@@ -6,6 +6,7 @@ profile = "black"
|
||||
target-version = ['py311']
|
||||
preview = true
|
||||
include = '\.py'
|
||||
line-length = 9999 # Prevents Black from arbitrarily wrapping lines
|
||||
|
||||
[tool.pydoclint]
|
||||
style = "google"
|
||||
|
||||
Reference in New Issue
Block a user