Cloud-CV / evalai-cli

:cloud: :rocket: Official EvalAI Command Line Tool
https://cli.eval.ai
BSD 3-Clause "New" or "Revised" License
55 stars 63 forks source link

Make import ordering consistent #257

Closed nikochiko closed 4 years ago

nikochiko commented 4 years ago

Changes proposed:

The syntax PEP 8 recommends is:

Imports should be grouped in the following order:

  1. Standard library imports.
  2. Related third party imports.
  3. Local application/library specific imports.

You should put a blank line between each group of imports.

So for example,

# standard libraries first, with direct imports first and then "from" imports
import os
import sys
from datetime import datetime

# similarly for third-party imports
import requests
import responses
from bs4 import BeautifulSoup

# then local/specific imports
from evalai.some_app import some_class
from evalai.some_other_app import some_other_class
.
.
.