- 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>
15 lines
281 B
TOML
15 lines
281 B
TOML
[tool.isort]
|
|
py_version = "311"
|
|
profile = "black"
|
|
|
|
[tool.black]
|
|
target-version = ['py311']
|
|
preview = true
|
|
include = '\.py'
|
|
line-length = 9999 # Prevents Black from arbitrarily wrapping lines
|
|
|
|
[tool.pydoclint]
|
|
style = "google"
|
|
check-return-types = true
|
|
allow-init-docstring = true
|