Skip to main content

@fuzeman's import order style for flake8-import-order

Project description

https://img.shields.io/pypi/v/flake8-import-order-fuzeman.svg https://travis-ci.org/fuzeman/flake8-import-order-fuzeman.svg

Import ordering style for flake8-import-order, fork of flake8-import-order-spoqa which has been updated to implement @fuzeman’s preferred import ordering convention.

Example

from myapp import something
from myapp.helpers import get_view
from myapp.views import *
from ...deepest import a
from ..deeper import b
from .a import this, that
from .z import This, That

from pkg_resources import (SOURCE_DIST, EntryPoint, Requirement, get_provider)
from typing import Optional
import datetime
import sys

Usage

Install the flake8-import-order-fuzeman package with pip, and then enable the import order style with either:

Distribution

Written by Dean Gardiner, forked from flake8-import-order-spoqa written by Hong Minhee, and distributed under the GPLv3 license or later.

Changelog

1.3.0 (2017-03-07)

Added

  • from ... import ... is now permitted for copy

1.2.0 (2017-02-25)

Added

  • from ... import ... is now permitted for argparse, pprint, subprocess and threading

1.1.1 (2017-02-22)

Fixed

  • Third-party import statements were incorrectly being marked as import order errors

1.1.0 (2017-02-22)

Added

  • collections, datetime and decimal are now from ... importable

Changed

  • import is now permitted for third-party libraries

Fixed

  • __future__ imports were incorrectly being marked as import order errors

1.0.2 (2017-02-22)

Fix for incorrect metadata on PyPI

1.0.1 (2017-02-22)

Fixed

  • Incorrect install_requires definition in setup.py

1.0.0 (2017-02-22)

Initial release

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-order-fuzeman-1.3.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

flake8_import_order_fuzeman-1.3.0-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flake8-import-order-fuzeman-1.3.0.tar.gz.

File metadata

File hashes

Hashes for flake8-import-order-fuzeman-1.3.0.tar.gz
Algorithm Hash digest
SHA256 cfc514ff8ca21cc7dd9da53b38bf7c9c518f7be315e301ebd8a4851565b94da2
MD5 a62d0eed3b99b737bbcf7ce40d563c90
BLAKE2b-256 613dcec62fbbb29c9176fbc82d2c3af00430de41ad47d5f36516e45a526d791b

See more details on using hashes here.

File details

Details for the file flake8_import_order_fuzeman-1.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_import_order_fuzeman-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c03005423bc8d0a5abcf4fcefc7accc39fdce6753009639e2bd1e78ff290e57
MD5 2f30628059c66786f56d6884fb377b4e
BLAKE2b-256 b3a4ddbc828ad56f0d90ffdb33cabbd07d5ee3523c8ceeb8c49c6db34aaaaecd

See more details on using hashes here.

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