Closed GrapeBaBa closed 1 year ago
From @norswap initial setup of the project I believe we are already using ruff for linting and it looks like it includes a formatter
From @norswap initial setup of the project I believe we are already using ruff for linting and it looks like it includes a formatter
however it seems not have a CLI for formatting? ruff check
not auto format code if I don't use a IDE plugin, both codes passed.
Aha, looks like they are working on it https://github.com/astral-sh/ruff/issues/1904
In that case I suggest we use black and isort for formatting
I'm really not a fan of strongly opinionated formatters like Black with no opt-outs. But there doesn't really seem to be another good option, is there?
autopep8 is less opinionated, maybe we can give that a try
Yeah, that seems nice!
Currently, when I reformat in IDE(pycharm/vscode), some non related code format changed. It is better to specific a formatter. @ayazabbas Could you give us a suggestion which pythonic?