WindmillWWindmill
Powered by
BertPB
Windmill•2y ago
BertP

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"))
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")
)
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Logging in Python Script
Alexander EiseleAAlexander Eisele / help
2y ago
Python Dependency hell in windmill
JacobJJacob / help
11mo ago
Where do I configure the default JSON formatter?
taydenTtayden / help
14mo ago
Python DLT library in windmill? Compatibel?
riekusRriekus / help
6mo ago