Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sfstpala/flake8-import-style

A flake8 plugin to ensure explicit module imports
https://github.com/sfstpala/flake8-import-style

flake8 python quality-assurance

Last synced: 3 months ago
JSON representation

A flake8 plugin to ensure explicit module imports

Awesome Lists containing this project

README

        

# flake8-import-style

[![Build](https://img.shields.io/travis/sfstpala/flake8-import-style.svg?style=flat-square)](https://travis-ci.org/sfstpala/flake8-import-style)
[![Coverage](https://img.shields.io/coveralls/sfstpala/flake8-import-style.svg?style=flat-square)](https://coveralls.io/r/sfstpala/flake8-import-style)
[![PyPI](https://img.shields.io/pypi/v/flake8-import-style.svg?style=flat-square)](https://pypi.python.org/pypi/flake8-import-style)

A [flake8](http://flake8.pycqa.org/en/latest/) 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.