Flake8 plugin that requires single line imports


Keywords
flake8, pytest, python
License
MIT
Install
pip install flake8-import-single==0.1.6.dev7

Documentation

Flake8 Single Line Import Plugin

A Flake8 plugin that requires single line imports.

PyPI version Python Versions Build Status License

Introduction

The following will result in an error:

from foo import bar, baz

It should be rewritten as:

from foo import bar
from foo import baz

Installation

$ pip install flake8-import-single
$ pip install --upgrade flake8-import-single

Plugin for Flake8

$ flake8 --version
3.5.0 (flake8-import-single: 0.1.2, mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.6.0)

Thanks

Much thanks goes out to flake8-print as the basis for this plugin.