test/pyproject.toml
Andrew Vaillancourt 2367125475 Adjust isort line length to reduce import wrapping
- Black defaults to a line length of 88 characters, which causes
  unnecessary wrapping of long imports.
- Since isort follows Black's profile by default, imports were
  being excessively wrapped at 88 characters.
- Setting `line_length = 200` in `pyproject.toml` provides a
  balance between keeping imports readable and avoiding excessive
  wrapping.
- This ensures that single imports remain on one line while
  extremely long imports may still wrap for readability.

Change-Id: Iee6c3d4ecb3f9aaa96b3245a1103773b2101b2ba
Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
2025-03-06 00:03:20 -05:00

17 lines
408 B
TOML

[tool.isort]
py_version = "311"
profile = "black"
line_length = 200 # Allows longer imports without excessive wrapping
[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
ignore = ["DOC501"] # Ignore Raises section requirement