cylc / cylc-flow

Cylc: a workflow engine for cycling systems.
https://cylc.github.io
GNU General Public License v3.0
335 stars 94 forks source link

Add ruff, black & isort configs #6382

Closed MetRonnie closed 2 months ago

MetRonnie commented 2 months ago

I often find myself typing out some code that wouldn't pass flake8, then hitting "format selection" or "organise imports" in VSCode. I am using isort and ruff for this (having briefly used black before ruff).

I think it would be useful to define our configs for these tools on a project level so we can agree the style and avoid unnecessary diff resulting from this going forwards.

I've chosen defaults that I think best match our current prevailing style. If we want to haggle over this, make it brief!

To illustrate, I've ruffened/blackened and isorted pathutil.py as a small example.

Check List