Python

Python

By DeepSource

Imports from same package are not grouped PYL-C0412

Style
Autofix

Imports for the same package are scattered and not grouped together. It is recommended to keep the imports from the same package together. It makes the code easier to read.

Not preferred:

import os
import sys
from os import listdir
import time
from os.path import isfile, join

Preferred:

import os
from os import listdir
from os.path import isfile, join

import sys
import time