Metadata-Version: 2.1
Name: flake8-absolute-import
Version: 1.0
Summary: flake8 plugin to require absolute imports
Home-page: https://github.com/bskinn/flake8-absolute-import
Author: Brian Skinn
Author-email: bskinn@alum.mit.edu
License: MIT License
Platform: UNKNOWN
Classifier: License :: OSI Approved
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Framework :: Flake8
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Development Status :: 5 - Production/Stable
Requires: flake8 (>=3.0)
Provides: flake8_absolute_import
Requires-Python: >=3.4
Description-Content-Type: text/x-rst
Requires-Dist: flake8 (>=3.0)

flake8-absolute-import
======================

*flake8 plugin to require absolute imports*

**Current Development Version:**

.. image:: https://img.shields.io/azure-devops/build/brianskinn/69156953-0c09-4122-8268-0cc35b259749/3?label=azure-pipelines&logo=azure-devops
    :target: https://dev.azure.com/brianskinn/flake8-absolute-import/_build?definitionId=3

.. image:: https://img.shields.io/travis/com/bskinn/flake8-absolute-import?label=travis-ci&logo=travis
    :target: https://travis-ci.com/bskinn/flake8-absolute-import

.. image:: https://codecov.io/gh/bskinn/flake8-absolute-import/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/bskinn/flake8-absolute-import

**Most Recent Stable Release:**

.. image:: https://img.shields.io/pypi/v/flake8-absolute-import.svg?logo=pypi
    :target: https://pypi.org/project/flake8-absolute-import

.. image:: https://img.shields.io/pypi/pyversions/flake8-absolute-import.svg?logo=python

**Info:**

.. image:: https://img.shields.io/github/license/mashape/apistatus.svg
    :target: https://github.com/bskinn/flake8-absolute-import/blob/stable/LICENSE.txt

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black

----

*Don't like relative imports?*

Lint 'em out!

``flake8-absolute-import`` uses a simple check of the AST for each
``from x import y`` statement to flag relative imports.
Specifically, it checks for a nonzero *level* attribute on each
|ImportFrom|_ node.

Relative imports raise the ``ABS101`` error code:

.. code:: python

    from foo import bar   # OK
    from .foo import bar  # ABS101

----

Available on `PyPI <https://pypi.python.org/pypi/flake8-absolute-import>`__
(``pip install flake8-absolute-import``).  ``flake8`` should automatically
detect and load the plugin. ``flake8``>=3.0 is required.

Source on `GitHub <https://github.com/bskinn/flake8-absolute-import>`__.  Bug reports
and feature requests are welcomed at the
`Issues <https://github.com/bskinn/flake8-absolute-import/issues>`__ page there.

Copyright (c) Brian Skinn 2019

License: The MIT License. See `LICENSE.txt <https://github.com/bskinn/flake8-absolute-import/blob/master/LICENSE.txt>`__
for full license terms.

.. _ImportFrom: https://greentreesnakes.readthedocs.io/en/latest/nodes.html#ImportFrom
.. |ImportFrom| replace:: ``ImportFrom``


