flake8-absolute-import


Nameflake8-absolute-import JSON
Version 1.0.0.2 PyPI version JSON
download
home_page
Summaryflake8 plugin to require absolute imports
upload_time2023-10-09 02:52:59
maintainer
docs_urlNone
author
requires_python>=3.6
licenseMIT License
keywords flake8-plugin linting absolute-imports relative-imports
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            flake8-absolute-import
======================

*flake8 plugin to require absolute imports*

**Current Development Version:**

.. image:: https://img.shields.io/github/actions/workflow/status/bskinn/flake8-absolute-import/ci_tests.yml?branch=main&logo=github
    :alt: GitHub Workflow Status
    :target: https://github.com/bskinn/flake8-absolute-import/actions

.. image:: https://codecov.io/gh/bskinn/flake8-absolute-import/branch/main/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

.. image:: https://pepy.tech/badge/flake8-absolute-import/month
    :target: https://pepy.tech/project/flake8-absolute-import

----

*Don't like relative imports?*

Lint 'em out!

``flake8-absolute-import`` uses a direct 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``>=5.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-2023

The ``flake8-absolute-import`` documentation (including docstrings and README)
is licensed under a
`Creative Commons Attribution 4.0 International License <http://creativecommons.org/licenses/by/4.0/>`__
(CC-BY). The ``flake8-absolute-import`` codebase is released under the
`MIT License <https://opensource.org/licenses/MIT>`__. See
`LICENSE.txt <https://github.com/bskinn/flake8-absolute-import/blob/main/LICENSE.txt>`__ for
full license terms.

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

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "flake8-absolute-import",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "flake8-plugin,linting,absolute-imports,relative-imports",
    "author": "",
    "author_email": "Brian Skinn <brian.skinn@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a0/74/09a11a10123d646bdcddb2002383a3c06e02a2e424e4c928bb8988ab7ccd/flake8-absolute-import-1.0.0.2.tar.gz",
    "platform": "any",
    "description": "flake8-absolute-import\r\n======================\r\n\r\n*flake8 plugin to require absolute imports*\r\n\r\n**Current Development Version:**\r\n\r\n.. image:: https://img.shields.io/github/actions/workflow/status/bskinn/flake8-absolute-import/ci_tests.yml?branch=main&logo=github\r\n    :alt: GitHub Workflow Status\r\n    :target: https://github.com/bskinn/flake8-absolute-import/actions\r\n\r\n.. image:: https://codecov.io/gh/bskinn/flake8-absolute-import/branch/main/graph/badge.svg\r\n    :target: https://codecov.io/gh/bskinn/flake8-absolute-import\r\n\r\n**Most Recent Stable Release:**\r\n\r\n.. image:: https://img.shields.io/pypi/v/flake8-absolute-import.svg?logo=pypi\r\n    :target: https://pypi.org/project/flake8-absolute-import\r\n\r\n.. image:: https://img.shields.io/pypi/pyversions/flake8-absolute-import.svg?logo=python\r\n\r\n**Info:**\r\n\r\n.. image:: https://img.shields.io/github/license/mashape/apistatus.svg\r\n    :target: https://github.com/bskinn/flake8-absolute-import/blob/stable/LICENSE.txt\r\n\r\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\r\n    :target: https://github.com/psf/black\r\n\r\n.. image:: https://pepy.tech/badge/flake8-absolute-import/month\r\n    :target: https://pepy.tech/project/flake8-absolute-import\r\n\r\n----\r\n\r\n*Don't like relative imports?*\r\n\r\nLint 'em out!\r\n\r\n``flake8-absolute-import`` uses a direct check of the AST for each\r\n``from x import y`` statement to flag relative imports.\r\nSpecifically, it checks for a nonzero *level* attribute on each\r\n|ImportFrom|_ node.\r\n\r\nRelative imports raise the ``ABS101`` error code:\r\n\r\n.. code:: python\r\n\r\n    from foo import bar   # OK\r\n    from .foo import bar  # ABS101\r\n\r\n----\r\n\r\nAvailable on `PyPI <https://pypi.python.org/pypi/flake8-absolute-import>`__\r\n(``pip install flake8-absolute-import``).  ``flake8`` should automatically\r\ndetect and load the plugin. ``flake8``>=5.0 is required.\r\n\r\nSource on `GitHub <https://github.com/bskinn/flake8-absolute-import>`__.  Bug reports\r\nand feature requests are welcomed at the\r\n`Issues <https://github.com/bskinn/flake8-absolute-import/issues>`__ page there.\r\n\r\nCopyright (c) Brian Skinn 2019-2023\r\n\r\nThe ``flake8-absolute-import`` documentation (including docstrings and README)\r\nis licensed under a\r\n`Creative Commons Attribution 4.0 International License <http://creativecommons.org/licenses/by/4.0/>`__\r\n(CC-BY). The ``flake8-absolute-import`` codebase is released under the\r\n`MIT License <https://opensource.org/licenses/MIT>`__. See\r\n`LICENSE.txt <https://github.com/bskinn/flake8-absolute-import/blob/main/LICENSE.txt>`__ for\r\nfull license terms.\r\n\r\n.. _ImportFrom: https://greentreesnakes.readthedocs.io/en/latest/nodes.html#ImportFrom\r\n.. |ImportFrom| replace:: ``ImportFrom``\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "flake8 plugin to require absolute imports",
    "version": "1.0.0.2",
    "project_urls": {
        "Changelog": "https://github.com/bskinn/flake8-absolute-import/blob/main/CHANGELOG.md",
        "Donate": "https://github.com/sponsors/bskinn",
        "Homepage": "https://github.com/bskinn/flake8-absolute-import",
        "Thank": "https://twitter.com/btskinn"
    },
    "split_keywords": [
        "flake8-plugin",
        "linting",
        "absolute-imports",
        "relative-imports"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ce54328f839ed7f805d7298560ca194908e96c512c427eefee4ee9494af2ef3f",
                "md5": "c1f1ccd42c63a792e0f79d6652e58404",
                "sha256": "b72142db999ec5e0ac4f4ac57fb8776a2959d07346c4d3742c446f206d45fcef"
            },
            "downloads": -1,
            "filename": "flake8_absolute_import-1.0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c1f1ccd42c63a792e0f79d6652e58404",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5535,
            "upload_time": "2023-10-09T02:52:52",
            "upload_time_iso_8601": "2023-10-09T02:52:52.689005Z",
            "url": "https://files.pythonhosted.org/packages/ce/54/328f839ed7f805d7298560ca194908e96c512c427eefee4ee9494af2ef3f/flake8_absolute_import-1.0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a07409a11a10123d646bdcddb2002383a3c06e02a2e424e4c928bb8988ab7ccd",
                "md5": "d91e297ab38c91729c347449e804274a",
                "sha256": "fcb734ac5a9639fa4ffbc6242ae9d6e9d8063f9cd078d6d218597ee883a99d48"
            },
            "downloads": -1,
            "filename": "flake8-absolute-import-1.0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d91e297ab38c91729c347449e804274a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 8585,
            "upload_time": "2023-10-09T02:52:59",
            "upload_time_iso_8601": "2023-10-09T02:52:59.714618Z",
            "url": "https://files.pythonhosted.org/packages/a0/74/09a11a10123d646bdcddb2002383a3c06e02a2e424e4c928bb8988ab7ccd/flake8-absolute-import-1.0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-09 02:52:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bskinn",
    "github_project": "flake8-absolute-import",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "flake8-absolute-import"
}
        
Elapsed time: 0.11991s