flake8-isolated-packages


Nameflake8-isolated-packages JSON
Version 2.2.0 PyPI version JSON
download
home_pagehttps://github.com/DDmitiy/flake8_isolated_packages
SummaryThis Flake8 plugin is for checking imports isolations.
upload_time2023-06-26 13:39:26
maintainer
docs_urlNone
authorDudov Dmitry
requires_python>=3.7,<4.0
licenseMIT
keywords flake8_isolated_packages flake8 plugin isolated_packages
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # flake8_isolated_packages

This *Flake8* plugin is for checking imports isolations.  
**One rule:** Any module from specified package could not be import in another package

# Quick Start Guide

1. Install ``flake8-isolated-packages`` from PyPI with pip::

        pip install flake8-isolated-packages

2. Configure a mark that you would like to validate::

        cd project_root/
        vi setup.cfg

3. Add to file following: 
   
        [flake8]  
        isolated_packages = service, tests  
        test_folders = tests

3. Run flake8::

        flake8 .

# flake8 codes

   * FIP100: You try to import from isolated package

# Settings

**isolated_packages**  
It specifies a list of folders, that cannot be imported outside of their package

**test_folders**  
It specifies a list of folders, that contains tests and in which can be imported something from even isolated packages

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DDmitiy/flake8_isolated_packages",
    "name": "flake8-isolated-packages",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "flake8_isolated_packages,flake8,plugin,isolated_packages",
    "author": "Dudov Dmitry",
    "author_email": "dudov.dm@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/56/3b/293fbf06a1f41b0462f4d84b2dbd0a8e8b52f095aa111c48ee8cd41f4c37/flake8_isolated_packages-2.2.0.tar.gz",
    "platform": null,
    "description": "# flake8_isolated_packages\n\nThis *Flake8* plugin is for checking imports isolations.  \n**One rule:** Any module from specified package could not be import in another package\n\n# Quick Start Guide\n\n1. Install ``flake8-isolated-packages`` from PyPI with pip::\n\n        pip install flake8-isolated-packages\n\n2. Configure a mark that you would like to validate::\n\n        cd project_root/\n        vi setup.cfg\n\n3. Add to file following: \n   \n        [flake8]  \n        isolated_packages = service, tests  \n        test_folders = tests\n\n3. Run flake8::\n\n        flake8 .\n\n# flake8 codes\n\n   * FIP100: You try to import from isolated package\n\n# Settings\n\n**isolated_packages**  \nIt specifies a list of folders, that cannot be imported outside of their package\n\n**test_folders**  \nIt specifies a list of folders, that contains tests and in which can be imported something from even isolated packages\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "This Flake8 plugin is for checking imports isolations.",
    "version": "2.2.0",
    "project_urls": {
        "Homepage": "https://github.com/DDmitiy/flake8_isolated_packages",
        "Repository": "https://github.com/DDmitiy/flake8_isolated_packages"
    },
    "split_keywords": [
        "flake8_isolated_packages",
        "flake8",
        "plugin",
        "isolated_packages"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5a25b1d3e0f78ecdb4f2dc01d086f0a117173b5252c3bbfcc38bdcd101b7b562",
                "md5": "ff9f6ae81cc671952a300e051b29914e",
                "sha256": "008163b446e53619d1a938596534d1032a30250ac0a5f4f854af32fe5be43797"
            },
            "downloads": -1,
            "filename": "flake8_isolated_packages-2.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ff9f6ae81cc671952a300e051b29914e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 3925,
            "upload_time": "2023-06-26T13:39:25",
            "upload_time_iso_8601": "2023-06-26T13:39:25.114620Z",
            "url": "https://files.pythonhosted.org/packages/5a/25/b1d3e0f78ecdb4f2dc01d086f0a117173b5252c3bbfcc38bdcd101b7b562/flake8_isolated_packages-2.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "563b293fbf06a1f41b0462f4d84b2dbd0a8e8b52f095aa111c48ee8cd41f4c37",
                "md5": "e979b9eef361af3a40e1a9c763455e97",
                "sha256": "f490635ac9097937da512f9a9616eb28f29dc7dd2a1fd7e96eead2eb9fc62692"
            },
            "downloads": -1,
            "filename": "flake8_isolated_packages-2.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e979b9eef361af3a40e1a9c763455e97",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 3424,
            "upload_time": "2023-06-26T13:39:26",
            "upload_time_iso_8601": "2023-06-26T13:39:26.618034Z",
            "url": "https://files.pythonhosted.org/packages/56/3b/293fbf06a1f41b0462f4d84b2dbd0a8e8b52f095aa111c48ee8cd41f4c37/flake8_isolated_packages-2.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-26 13:39:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DDmitiy",
    "github_project": "flake8_isolated_packages",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "flake8-isolated-packages"
}
        
Elapsed time: 0.09450s