Skip to content

unsorted-imports (I001)#

Derived from the isort linter.

Fix is sometimes available.

What it does#

De-duplicates, groups, and sorts imports based on the provided isort settings.

Why is this bad?#

Consistency is good. Use a common convention for imports to make your code more readable and idiomatic.


import pandas
import numpy as np

Use instead:

import numpy as np
import pandas