Skip to main content

flake8-import-order-tbm

PyPI
GitHub CI

flake8-import-order-tbm is a style for flake8-import-order.

Styling

  • Package, module, and imported names are naturally sorted using natsort.
  • Standard library import section precedes 3rd-party import section precedes local import section.
  • Import statements precede from import statements.
  • UPPERCASE precedes Capitalized precedes lowercase.
  • Fewer levels in a local relative import precede greater levels.

A basic example:

import os
import sys
from os import path

import attr
import requests
from attr import attrib, attrs

import LocalPackage
import localpackage
from localpackage import name
from . import name1, name2, name10
from .module import name3
from ..module import name4

Usage

Install flake8-import-order-tbm using pip install flake8-import-order-tbm.

When running flake8, do one of the following:

  • Add the --import-order-style=tbm option to the command.

  • Add this to your flake8 config:

     import-order-style = tbm
    

Metadata

Release files for flake8-import-order-tbm 1.3.0

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-order-tbm 1.3.0
File Size Uploaded
flake8-import-order-tbm-1.3.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-import-order-tbm 1.3.0
File Interpreter ABI Platform
flake8_import_order_tbm-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / flake8-import-order-tbm-1.3.0.tar.gz

Download URL flake8-import-order-tbm-1.3.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3ffc6126ef88c9b4142af7412a8acf31857e7c4b97fba41695bffd12820291f3
BLAKE2b-256 checksum
How to use checksums
e1870061adcada3dd75d18eddc0890b5fb7515f6d33ed8217a3972b2a66b5c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.2 Linux/5.0.0-1035-azure

Release files / flake8_import_order_tbm-1.3.0-py3-none-any.whl

Download URL flake8_import_order_tbm-1.3.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1b63f9ac001ecaaca716f23b538204556770b18d4d8b3dce154fb4dd362812f
BLAKE2b-256 checksum
How to use checksums
411bffd1ffee739b21104c2766f310d88da050da35f2b5e2a4c212d9b5d379bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.2 Linux/5.0.0-1035-azure

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

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