To ease code maintenance, suggest sorting import statements. The bluesky community has been discussing code format and this was one of the topics.
There is an isort package that will do this for you. But we could do it manually first.
- group system imports first, blank line, then local imports
- in each group, sort alphabetically
Of course, some imports require other actions before them, such as appending to sys.path requires import sys first. That's expected.
To ease code maintenance, suggest sorting import statements. The bluesky community has been discussing code format and this was one of the topics.
There is an isort package that will do this for you. But we could do it manually first.
Of course, some imports require other actions before them, such as appending to
sys.pathrequiresimport sysfirst. That's expected.