I want to highlight unused Python imports as Python syntax errors.
For example, I sometimes forget to remove some packages used for debugging such as time
, ipdb
. It would be great to see warnings or even errors for the unused imports.
I use Syntastic
plugin, but it does not highligh the unused imports or I don't know how to configure it. I have this Syntastic
setting set:
let g:syntastic_python_checkers = ['python', 'flake8']
flake8
. The problem was, that I forgot to installflake8
package into my virtual environment.