Page MenuHomePhabricator

[lint] add a .isort.cfg file contrib/buildbot
ClosedPublic

Authored by PiRK on Jun 23 2023, 07:43.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC34f9c38f7908: [lint] add a .isort.cfg file contrib/buildbot
Summary

On some systems ISort seems to think build.py and server.py are third-party package rather than local modules.
This is clearly a limitation of ISort, because the python import order respects the order of the paths listed in the sys.path list which by default has the current working directory as first element (https://docs.python.org/3/library/sys.html#sys.path).

The third-party versions of build and server seem to be installed as indirect Electrum ABC requirements, which makes this problem apparent for build, but it was already doing the wrong sorting for server.

Test Plan

arc lint --everything

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable