Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
flake8_import_single-0.1.5-py2.py3-none-any.whl (3.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Aug 4, 2018
flake8-import-single-0.1.5.tar.gz (5.6 kB) Copy SHA256 hash SHA256 Source None Aug 4, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page