pyproject.toml: Set isort include_trailing_comma
The isort configuration leaves include_trailing_comma at its default, false, so isort strips the trailing commas from wrapped imports. However, yapf's split_arguments_when_comma_terminated setting depends on those commas: without them, yapf re-joins the one-per-line import layout that isort just produced, and the two formatters disagree on files such as src/python/jw/pkg/lib/App.py. Set include_trailing_comma so that isort keeps trailing commas and yapf honors them, making both tools converge on the same layout. Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.85.1 Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
974257eac0
commit
ff581b9f9f
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,11 @@
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
|
|
||||||
multi_line_output = 3
|
multi_line_output = 3
|
||||||
|
|
||||||
|
# Keep trailing commas so that yapf's split_arguments_when_comma_terminated
|
||||||
|
# keeps the one-per-line layout that isort produces.
|
||||||
|
include_trailing_comma = true
|
||||||
|
|
||||||
line_length = 88
|
line_length = 88
|
||||||
lines_after_imports = 1
|
lines_after_imports = 1
|
||||||
lines_between_sections = 1
|
lines_between_sections = 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue