Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.19 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.19 KB

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.