Skip to content

sort import statements #8

Description

@prjemian

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.

  1. group system imports first, blank line, then local imports
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions