Skip to content

sfstpala/flake8-import-style

Repository files navigation

flake8-import-style

Build Coverage PyPI

A flake8 plugin to ensure explicit module imports.

pip install flake8_import_style
flake8 *.py

Errors (enabled by default):

  • I801 use 'import ...' instead of 'from ... import ...'

Tested with Python 2.7, 3.4, 3.5, and 3.6.

Type make test or tox to run the test suite in a virtual environment.