initc3 / HoneyBadgerMPC

Robust MPC-based confidentiality layer for blockchains
GNU General Public License v3.0
128 stars 64 forks source link

Consider using flake8-isort instead of flake8-import-order #427

Open sbellem opened 4 years ago

sbellem commented 4 years ago

Problem: It appears that setting up flake8 with PyCharm is not so easy and perhaps the same goes for some other editors. Additionally flake8-import-order, even when flake8 is properly integrated withing an editor, will not fix the import orders but simply flag them as being not ok.

Solution: Automate the ordering of the imports with a tool. Using isort can automate the task of sorting the import order, in a similar way than black formats the code and flake8-isort can detect ordering "errors". See https://github.com/psf/black/issues/333 for black/isort interop.