Skip to main content

Yet another import order style

Project description

Project Status: Active — The project has reached a stable, usable state and is being actively developed. https://travis-ci.com/jwodder/flake8-import-order-jwodder.svg?branch=master https://codecov.io/gh/jwodder/flake8-import-order-jwodder/branch/master/graph/badge.svg https://img.shields.io/pypi/pyversions/flake8-import-order-jwodder.svg MIT License https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg

GitHub | PyPI | Issues

flake8-import-order-jwodder defines an import order style jwodder for use with flake8-import-order. The jwodder style is the same as the appnexus style bundled with flake8-import-order, except that names in from X import ... lines are sorted case-sensitively.

Installation

Just use pip (You have pip, right?) to install flake8-import-order-jwodder and its dependencies:

pip install flake8-import-order-jwodder

Example

An example of imports sorted according to the jwodder style:

from __future__ import absolute_import

import ast
from functools import *
import os
from os import path
import StringIO
import sys

import X
from X import *
from X import A
from X import B, C, b, d
import Y
from Y import *
from Y import A
from Y import B, C, D
from Y import e
import Z
from Z import A
from Z.A import A
from Z.A.B import A

from localpackage import A, b

import flake8_import_order
from flake8_import_order import *
from . import A
from . import B
from .A import A
from .B import B
from .. import A
from .. import B
from ..A import A
from ..B import B

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-jwodder-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

flake8_import_order_jwodder-0.1.0-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flake8-import-order-jwodder-0.1.0.tar.gz.

File metadata

  • Download URL: flake8-import-order-jwodder-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

File hashes

Hashes for flake8-import-order-jwodder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c8c2ef2481e201ce07772e9816942fedd203c37721719d1861e2a5182b0589a7
MD5 3ff9bb0f74de72b83879aaaceb804caa
BLAKE2b-256 60b3fbd8ffa6e7ce4c85423c3f2ac9b459e5c5890c1c7019d1162d82123bb8f7

See more details on using hashes here.

File details

Details for the file flake8_import_order_jwodder-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: flake8_import_order_jwodder-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

File hashes

Hashes for flake8_import_order_jwodder-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9a1259f3c80d9e90aa77705d0c6700180ecf4fc229600f027b464f435210cf0a
MD5 597e1d444560ba4c8bd00d1a753462d6
BLAKE2b-256 b3ed87aa9cc9f309ea275d18973057fc1bad7734e3d618cab013bca3a8854676

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