lastmile-ai / aiconfig

AIConfig is a config-based framework to build generative AI applications.
https://aiconfig.lastmileai.dev
MIT License
898 stars 70 forks source link

[ez] Run Formatting on Python Files #1459

Closed Ankush-lastmile closed 3 months ago

Ankush-lastmile commented 3 months ago

[ez] Run Formatting on Python Files

black --exclude '/\.sl\b' . --line-length=79

A lot of the python files checked into the AIConfig repo have not been formatted. This command formats all python files the same way vscode would do it in the repo.

I noticed differences between black version 23.11 and 24 (latest). I had version 23.11 on my local install. This also causes different behaviours when running autoformat through vscode instead of the command line, I'm fairly certain vscode extension uses the latest version of the package. I upgraded my black formatter local install to 24 (latest).

Note: black is python package.


Stack created with Sapling. Best reviewed with ReviewStack.