flake8-import-order-tbm-1.3.0
توضیحات
flake8-import-order style plugin for my (thebigmunch) taste.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flake8-import-order-tbm-1.3.0 |
| نام | flake8-import-order-tbm |
| نسخه کتابخانه | 1.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | thebigmunch |
| ایمیل نویسنده | mail@thebigmunch.me |
| آدرس صفحه اصلی | https://github.com/thebigmunch/flake8-import-order-tbm |
| آدرس اینترنتی | https://pypi.org/project/flake8-import-order-tbm/ |
| مجوز | MIT |
# flake8-import-order-tbm
[](https://pypi.org/project/flake8-import-order-tbm/)

[](https://github.com/thebigmunch/flake8-import-order-tbm/actions?query=workflow%3ACI)
[flake8-import-order-tbm](https://github.com/thebigmunch/flake8-import-order-tbm) is a style for
[flake8-import-order](https://github.com/PyCQA/flake8-import-order).
## Styling
* Package, module, and imported names are naturally sorted using [natsort](https://github.com/SethMMorton/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](http://flake8.pycqa.org/en/latest/user/configuration.html):
```
import-order-style = tbm
```
نیازمندی
| مقدار | نام |
|---|---|
| >=3.5,<4.0) | flake8 |
| >=0.18,<0.19) | flake8-import-order |
| >=5.0,<8.0 | natsort |
| >=1.0,<2.0) | flake8-builtins |
| >=2.0,<=4.0) | flake8-comprehensions |
| >=1.0,<2.0) | flake8-import-order-tbm |
| >=2019,<2020) | nox |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl flake8-import-order-tbm-1.3.0:
pip install flake8-import-order-tbm-1.3.0.whl
نصب پکیج tar.gz flake8-import-order-tbm-1.3.0:
pip install flake8-import-order-tbm-1.3.0.tar.gz