PEP8 suggests that:
Imports should be grouped in the following order: standard library imports related third party imports
Imports should be grouped in the following order:
A flake8 plugin exists: flake8-import-order.
flake8
This package adds 3 new flake8 warnings I100: Your import statements are in the wrong order. I101: The names in your from import are in the wrong order. I201: Missing newline between sections or imports.
This package adds 3 new flake8 warnings
I100: Your import statements are in the wrong order.
I101: The names in your from import are in the wrong order.
I201: Missing newline between sections or imports.