New option: Don't require one item per line when wrapping
NickNIH opened this issue · comments
Search before asking
- I searched the issues and found no similar issues.
Description
Currently, when certain lines wrap, each item (column name, function argument, etc) is supposed to be on its own line:
select
long_column_name1,
long_column_name2,
long_column_name3,
long_column_name4
That's a fine default, but I personally prefer a style that's more compact but still very readable:
select
long_column_name1, long_column_name2,
long_column_name3, long_column_name4
I haven't found any option (or issue) for this. Would this be an acceptable option for some future version?
This would also be applicable to things like the arguments in a function call, function/procedure definition, statements like raiserror
, and maybe even the conditions in a where clause. I'm sure there are plenty of other situations too.
Use case
No response
Dialect
I think this is applicable to all dialects, though I'm using T-SQL currently.
Are you willing to work on and submit a PR to address the issue?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Note: This style is basically one of the two accepted PEP-8 recommendations: https://peps.python.org/pep-0008/#indentation