Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.86k stars 903 forks source link

Python fixes 2 #1367

Open EWouters opened 6 days ago

EWouters commented 6 days ago

Second pass of Python fixes with the Trunk linters.

Not sure if the exception handling in aac3d501a655489b92cea96d7a19b10767cf8d26 will lead to the same behavior.

There are some warnings left with respect to exception handling, but I will leave them for now.

EWouters commented 2 days ago

Thanks for your reply. For all the whitespace and import changes I used formatters to make the changes. None of these are my own preference. Moving to consistency is the goal.

You can pick which formatter you like, for instance:

Trunk uses black to format the imports. If you rather choose one of the other linters, I can change the imports to the order of that.