Skip to main content

Flake8 plugin that requires single line imports

Project description

A Flake8 plugin that requires single line imports.

Build PyPI version Supported Python versions

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-import-single-0.1.3.dev11.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

flake8_import_single-0.1.3.dev11-py2.py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page