Skip to main content

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.

Metadata

Release files for flake8-import-single 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-import-single 0.1.5
File Size Uploaded
flake8-import-single-0.1.5.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-import-single 0.1.5
File Interpreter ABI Platform
flake8_import_single-0.1.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 9.0 kB

Release files / flake8-import-single-0.1.5.tar.gz

Download URL flake8-import-single-0.1.5.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1a5722593834bd403e33b282e05e02d0d09679d0a04a927b82a9db63938d06c2
BLAKE2b-256 checksum
How to use checksums
a3fb457b9178d0550de0e5d0c6ca63aec2efb960dcbf136e2be5af7ed23c1d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

Release files / flake8_import_single-0.1.5-py2.py3-none-any.whl

Download URL flake8_import_single-0.1.5-py2.py3-none-any.whl
Size 3.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9648c4e8c837bfe8f4a37cd91933d87de60d15be328ebffb5936771f9bb902ad
BLAKE2b-256 checksum
How to use checksums
5a9811deee42aba72574a845f9e8c7126736f8a4cad2c2b2b66f8cc7c328d284
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page