https://github.com/fuzeman/flake8-import-order-fuzeman
@fuzeman's import order style for flake8-import-order
https://github.com/fuzeman/flake8-import-order-fuzeman
flake8 flake8-import-order python
Last synced: over 1 year ago
JSON representation
@fuzeman's import order style for flake8-import-order
- Host: GitHub
- URL: https://github.com/fuzeman/flake8-import-order-fuzeman
- Owner: fuzeman
- License: gpl-3.0
- Created: 2017-02-21T05:02:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-12T00:25:29.000Z (over 3 years ago)
- Last Synced: 2025-01-28T05:44:05.110Z (over 1 year ago)
- Topics: flake8, flake8-import-order, python
- Language: Python
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
flake8-import-order-fuzeman
===========================
.. image:: https://img.shields.io/pypi/v/flake8-import-order-fuzeman.svg
:target: https://pypi.python.org/pypi/flake8-import-order-fuzeman
.. image:: https://github.com/github/docs/actions/workflows/test.yml/badge.svg
:target: https://github.com/fuzeman/flake8-import-order-fuzeman/actions/workflows/test.yml
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.
.. _flake8-import-order: https://github.com/PyCQA/flake8-import-order
.. _flake8-import-order-spoqa: https://github.com/spoqa/flake8-import-order-spoqa
__ https://github.com/fuzeman
Example
-------
.. code-block:: python
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:
- Command-line option:
.. code-block:: shell
--import-order-style=fuzeman
- `flake8 configuration file:`__
.. code-block:: ini
[flake8]
import-order-style = fuzeman
.. _pip: https://pip.pypa.io
__ http://flake8.pycqa.org/en/latest/user/configuration.html
Distribution
------------
Written by `Dean Gardiner`__, forked from flake8-import-order-spoqa_ written by `Hong Minhee`__, and
distributed under the GPLv3_ license or later.
.. _GPLv3: https://www.gnu.org/licenses/gpl-3.0.html
__ https://github.com/fuzeman
__ https://hongminhee.org/