0xFableOrg / roll-op

The simplest way to spin your own dev / prod rollup, fully configurable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need an unique code formatter

GrapeBaBa opened this issue · comments

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?

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 astral-sh/ruff#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!