flake8-import-linter


Nameflake8-import-linter JSON
Version 0.1.10 PyPI version JSON
download
home_pagehttps://github.com/danmilgram/flake8-import-linter
SummaryFlake8 plugin that checks for forbidden imports in your code
upload_time2023-09-01 16:25:01
maintainer
docs_urlNone
authorDan Milgram
requires_python
licenseMIT
keywords flake8 import linter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Flake8 Import Linter

Flake8 plugin that checks for forbidden imports in your code

It works for both python2 and python3 since it only uses ast and configparser libraries :)

# Usage

1. flake8 config
   
    add "flake8_import_linter" section

    add "forbidden_modules" config

    example:
   
    `[flake8_import_linter]`
   
    `forbidden_modules = pytest, unittest`

3. run flake8 as always
   
    `flake8 .`

4. if a forbidden module is detected, flake8 will show:
   
     `IMP100 forbidden import`

ENJOY!
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/danmilgram/flake8-import-linter",
    "name": "flake8-import-linter",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "flake8 import linter",
    "author": "Dan Milgram",
    "author_email": "ddmilgram@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/bb/a4/93a2c44a3ef3403dcc94e9e53c85a25eaac87e240c44e2b96c1d54be053c/flake8_import_linter-0.1.10.tar.gz",
    "platform": null,
    "description": "# Flake8 Import Linter\n\nFlake8 plugin that checks for forbidden imports in your code\n\nIt works for both python2 and python3 since it only uses ast and configparser libraries :)\n\n# Usage\n\n1. flake8 config\n   \n    add \"flake8_import_linter\" section\n\n    add \"forbidden_modules\" config\n\n    example:\n   \n    `[flake8_import_linter]`\n   \n    `forbidden_modules = pytest, unittest`\n\n3. run flake8 as always\n   \n    `flake8 .`\n\n4. if a forbidden module is detected, flake8 will show:\n   \n     `IMP100 forbidden import`\n\nENJOY!",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Flake8 plugin that checks for forbidden imports in your code",
    "version": "0.1.10",
    "project_urls": {
        "Homepage": "https://github.com/danmilgram/flake8-import-linter"
    },
    "split_keywords": [
        "flake8",
        "import",
        "linter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bba493a2c44a3ef3403dcc94e9e53c85a25eaac87e240c44e2b96c1d54be053c",
                "md5": "c9345fa56d0cf763ac21c71682b617d7",
                "sha256": "92c000ffb3f34134fe56c75e937e1716154dc5a519c78f39af48a9ca00c2b8e1"
            },
            "downloads": -1,
            "filename": "flake8_import_linter-0.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "c9345fa56d0cf763ac21c71682b617d7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2883,
            "upload_time": "2023-09-01T16:25:01",
            "upload_time_iso_8601": "2023-09-01T16:25:01.573071Z",
            "url": "https://files.pythonhosted.org/packages/bb/a4/93a2c44a3ef3403dcc94e9e53c85a25eaac87e240c44e2b96c1d54be053c/flake8_import_linter-0.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-01 16:25:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "danmilgram",
    "github_project": "flake8-import-linter",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "flake8-import-linter"
}
        
Elapsed time: 0.10248s