BertP
BertP3mo ago

formatter line length in python

Is there a way to increase the formatted line length? more specifically for python scripts? otherwise tweak the formatter a bit? python statements get verbose quickly and python doesn't want to allow linebreak unless within parenthesis. this looks very weird when you have result = await object_orm.applications.by_id("lelelel").update(the_thing=model.thingie).get(request_params=Header(content_type="text/json")) and turns into basically
result = await object_orm.applications.by_id(
"lelelel"
).update(the_thing=model.thingie).get(
request_params=Header(content_type="text/json")
)
result = await object_orm.applications.by_id(
"lelelel"
).update(the_thing=model.thingie).get(
request_params=Header(content_type="text/json")
)
0 Replies
No replies yetBe the first to reply to this messageJoin