Skip to content

isort and yapf conflict for single import in module

Somehow there is a configuration issue with isort and yapf ...

isort formats as:

from mbtrack2.instability.space_charge import (
    transverse_space_charge_tune_shift,
)

yapf formats as:

from mbtrack2.instability.space_charge import (
    transverse_space_charge_tune_shift, )

I tried to play with yapf (which I belive is wrong or badly configured here) and set SPLIT_PENALTY_IMPORT_NAMES = 1000 but it did not work ...

To be investigated ...