An open API service indexing awesome lists of open source software.

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

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/