Closed wesleybl closed 3 years ago
Right now it ios compatible with black, because we are using black to autoformat Python. Tha is indeed not in line with the styleguide. But the solution would be to update the styleguide, rather than not using black. My feeling is, that most people are using black nowerdays in Python land and many Plone people do too. There is actually an accepted PLIP using black in Plone. https://github.com/plone/Products.CMFPlone/issues/2754 We will add more checks based on black in bobtemplates.plone in time and moving forward into this direction.
@MrTango in fact, who does this is the isort and not black. It is possible to use black and configure isort so as not to group imports. Should we do this?
The configuration of the
isort
forces the grouping of imports. For example in testing.py. Doesn't that conflict with Plone's styleguide?