2๐
โ
I found that the wrong import order warning is only shown if I specify a directory name on the command line that is a Python package (has a file called init.py).
This is not the case for the main Django directory, only for its subdirectories. So I have to specify all subdirectories (Django apps) as arguments. Example:
cd app
pylint feature_one
๐คatlau
Source:stackexchange.com