{ "info": { "author": "Victor Mawusi Ayi", "author_email": "ayivima@hotmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Framework :: Flake8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance" ], "description": "FLAKE8-LINELEAK\n===============\n\nIntroduction\n------------\nIf your script has more than a set number of lines, your code lines are leaking :)\n...And if your code lines are leaking, it's difficult to navigate and understand :).\n\nLineleak is a ``flake8`` plugin that counts the lines containing live code in a script, \nand 'yells' if a set limit is exceeded. It is meant to help enforce short scripts and \nmodular python programming.\n\nFor usefulness, lineleak only counts lines which contains live code. Thus the following \nlines are excluded from a count:\n\n* Blank lines\n* Comment lines\n* Lines of a docstring \n\n\nUsage \n-----\nTo benefit from ``lineleak``, Use flake8 the usual way with plugins::\n\n $ flake8 [options] file ... \n\nThe default line count limit is set at 100, and imposed on physical lines. These defaults, \nhowever, can be overridden with optional arguments as shown below and illustrated in the \nillustration section::\n\n\toptional arguments:\n\n --lineleak-logical\n\t Applies line count limit to logical lines.\n\n --max-line-count=MAX_LINE_COUNT\n Changes the maximum limit for live code line count.\n\n --live-code-count\n\t Displays the number of physical and logical lines containing live code.\n\n --lineleak-ignore\n\t Specifies a comma separated list of paths of files which leakline must ignore.\n\n\nCodes\n-----\n* ``LLW404`` Reports that logical line count has exceeded limit\n* ``LLW405`` Reports that physical line count has exceeded specified limit\n* ``LLI200`` Informs about the number of logical and physical lines containing live code.\n\nIllustration\n------------\na. Overriding default line count limit (limit -> 100)::\n\n $ flake8 --max-line-count=50 testfile.py\n testfile.py:82:1: LLW405 Maximum number of physical live code lines (50) exceeded.\n\nb. Imposing limit on logical, instead of physical, lines::\n\n $ flake8 --max-line-count=50 --lineleak-logical testfile.py\n testfile.py:103:1: LLW404 Maximum number of logical live code lines (50) exceeded.\n\nc. Display just the number of lines containing live code::\n\n $ flake8 --live-code-count testfile.py\n testfile.py:118:1: LLI200 [INFO] Live code count: 56 logical and 79 physical lines\n\nd. Ignore file(s) by specifying a comma separated list of their file paths.\n\n Results using lineleak-ignore::\n\n $ flake8 --max-line-count=5 --filename=*.py --lineleak-ignore=.\\lineleak.py,.\\subber.py\n .\\lineleak0.9.9.py:19:1: LLW405 Maximum number of physical live code lines (5) exceeded.\n .\\setup.py:10:1: LLW405 Maximum number of physical live code lines (5) exceeded.\n\n Results without lineleak-ignore::\n\n $ flake8 --max-line-count=5 --filename=*.py\n .\\lineleak.py:19:1: LLW405 Maximum number of physical live code lines (5) exceeded.\n .\\lineleak0.9.9.py:19:1: LLW405 Maximum number of physical live code lines (5) exceeded.\n .\\setup.py:10:1: LLW405 Maximum number of physical live code lines (5) exceeded.\n .\\subber.py:10:1: LLW405 Maximum number of physical live code lines (5) exceeded.\n\ne. Ignore limit enforcement.\n\n In adherence with flake8 design principles, lineleak can be silenced by adding the \n appropriate error codes of lineleak to the ignore list::\n\n $ flake8 --ignore=LL testfile.py\n $\n\n\nInstallation\n------------\nInstall using pip::\n\n pip install flake8-leakline\n\n\nDependencies & Compatibility\n----------------------------\n* Requires ``flake8 >= 3.3``\n* Requires ``python >= 3.4``\n\n\nEnvironment\n-----------\n* Shell\n\nSoftware Cycle Stage\n--------------------\n* Development - Alpha\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ayivima/flake8-lineleak", "keywords": "flake8,lineleak,counter,lines,plugin", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "flake8-lineleak", "package_url": "https://pypi.org/project/flake8-lineleak/", "platform": "", "project_url": "https://pypi.org/project/flake8-lineleak/", "project_urls": { "Homepage": "https://github.com/ayivima/flake8-lineleak" }, "release_url": "https://pypi.org/project/flake8-lineleak/1.0.2/", "requires_dist": [ "flake8 (>=3.3.0)", "attrs" ], "requires_python": ">=3.4", "summary": "Lineleak is a flake8 plugin that counts the lines containing live code in a script, and 'yells' if a set limit is exceeded. It is meant to help enforce short scripts and modular python programming.", "version": "1.0.2" }, "last_serial": 5400186, "releases": { "0.9.7": [], "0.9.8": [ { "comment_text": "", "digests": { "md5": "302f038ddacee171c9e02f7eda207497", "sha256": "f2defd3b05dd19ab12a6960f874ea37d9c63475f5e3b7c25bd4d08b11b978a6e" }, "downloads": -1, "filename": "flake8-lineleak-0.9.8.tar.gz", "has_sig": false, "md5_digest": "302f038ddacee171c9e02f7eda207497", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4230, "upload_time": "2019-06-05T18:54:54", "url": "https://files.pythonhosted.org/packages/02/a5/eb323b22dea1da986ecf058f7375361958e17cf135f6947866194d85926b/flake8-lineleak-0.9.8.tar.gz" } ], "0.9.9": [ { "comment_text": "", "digests": { "md5": "89c555869c12717046982e6dd97b6dd7", "sha256": "89756dd4e39199ec218c05f843ae56dbaec487e9fbfd427be91a0f749865ecc3" }, "downloads": -1, "filename": "flake8-lineleak-0.9.9.tar.gz", "has_sig": false, "md5_digest": "89c555869c12717046982e6dd97b6dd7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4223, "upload_time": "2019-06-05T19:43:06", "url": "https://files.pythonhosted.org/packages/90/28/8d92f372afbf34284f1e1ff49647b9459e830beb997e37f19b0625559d8c/flake8-lineleak-0.9.9.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "8a0b494e8ea0f3f27fcbf4786a9da65d", "sha256": "94c25e6596503e6c9a29ef6a203edf94e4c3d925baefd5ea956f273e8efb20e0" }, "downloads": -1, "filename": "flake8-lineleak-1.0.tar.gz", "has_sig": false, "md5_digest": "8a0b494e8ea0f3f27fcbf4786a9da65d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4545, "upload_time": "2019-06-06T12:31:32", "url": "https://files.pythonhosted.org/packages/a1/96/f9deef7f2edf2a8e9e0cb11d1de92c70729bc135794b98ea4bf91c78fd29/flake8-lineleak-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "58f4f520681f3c815cb172608dc07354", "sha256": "18c42ad4a7b324bbaecf587265687c780f65f79a73943d4dd658b85a875480c2" }, "downloads": -1, "filename": "flake8_lineleak-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "58f4f520681f3c815cb172608dc07354", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 5439, "upload_time": "2019-06-06T16:03:23", "url": "https://files.pythonhosted.org/packages/72/cd/5840940f3b1c14f17d0101f1c009074ed18049174a9f8ad62fb7d47ee2df/flake8_lineleak-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "605d98fba8dd34302c632d1a0ca26c59", "sha256": "e03f68c52c2d6c16848f323e872dc33bd6b241c075b7e4d98ea99b6a1b642605" }, "downloads": -1, "filename": "flake8-lineleak-1.0.1.tar.gz", "has_sig": false, "md5_digest": "605d98fba8dd34302c632d1a0ca26c59", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4502, "upload_time": "2019-06-06T16:03:24", "url": "https://files.pythonhosted.org/packages/72/2c/1a8cb557099f16631fd83748bad1e0cd419bbe085c3dc5e658929559a527/flake8-lineleak-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "6a4af739aa5ee6ebd933b6b996e564ba", "sha256": "5bd89769939e97e932d4dd1b83fd1eecece6ceaf1db6ab4fb2c509802c86384b" }, "downloads": -1, "filename": "flake8_lineleak-1.0.2-py3.7.egg", "has_sig": false, "md5_digest": "6a4af739aa5ee6ebd933b6b996e564ba", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=3.4", "size": 6766, "upload_time": "2019-06-14T11:44:01", "url": "https://files.pythonhosted.org/packages/9f/2b/35710c7fd9aee9f36e4dad078bd08830cbf02fa530ccca765faa0fa006b6/flake8_lineleak-1.0.2-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "159875fdb953dc3ab56bdb3ea1f0b8fa", "sha256": "049697250e6819bec0165c20402f32da1ca09d3233763fd467b1e5fd11fcf57c" }, "downloads": -1, "filename": "flake8_lineleak-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "159875fdb953dc3ab56bdb3ea1f0b8fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 5604, "upload_time": "2019-06-14T11:43:57", "url": "https://files.pythonhosted.org/packages/19/9b/a72b7110ee5a03a15800a0a9f005e9f1ce73f4ef881a0e3805734b3453b3/flake8_lineleak-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2cfb6a70dcf8827c7e01f878c38d00dc", "sha256": "c965ce4682f1acb58e9cfb1925bb015eb5371dcb757c2adbd81036c936c1f2e2" }, "downloads": -1, "filename": "flake8-lineleak-1.0.2.tar.gz", "has_sig": false, "md5_digest": "2cfb6a70dcf8827c7e01f878c38d00dc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4680, "upload_time": "2019-06-14T11:43:59", "url": "https://files.pythonhosted.org/packages/84/c3/51b4e2b777fe700074f2b091dcac82275fdc394630b0933c4fd9d36851ac/flake8-lineleak-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a4af739aa5ee6ebd933b6b996e564ba", "sha256": "5bd89769939e97e932d4dd1b83fd1eecece6ceaf1db6ab4fb2c509802c86384b" }, "downloads": -1, "filename": "flake8_lineleak-1.0.2-py3.7.egg", "has_sig": false, "md5_digest": "6a4af739aa5ee6ebd933b6b996e564ba", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=3.4", "size": 6766, "upload_time": "2019-06-14T11:44:01", "url": "https://files.pythonhosted.org/packages/9f/2b/35710c7fd9aee9f36e4dad078bd08830cbf02fa530ccca765faa0fa006b6/flake8_lineleak-1.0.2-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "159875fdb953dc3ab56bdb3ea1f0b8fa", "sha256": "049697250e6819bec0165c20402f32da1ca09d3233763fd467b1e5fd11fcf57c" }, "downloads": -1, "filename": "flake8_lineleak-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "159875fdb953dc3ab56bdb3ea1f0b8fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 5604, "upload_time": "2019-06-14T11:43:57", "url": "https://files.pythonhosted.org/packages/19/9b/a72b7110ee5a03a15800a0a9f005e9f1ce73f4ef881a0e3805734b3453b3/flake8_lineleak-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2cfb6a70dcf8827c7e01f878c38d00dc", "sha256": "c965ce4682f1acb58e9cfb1925bb015eb5371dcb757c2adbd81036c936c1f2e2" }, "downloads": -1, "filename": "flake8-lineleak-1.0.2.tar.gz", "has_sig": false, "md5_digest": "2cfb6a70dcf8827c7e01f878c38d00dc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4680, "upload_time": "2019-06-14T11:43:59", "url": "https://files.pythonhosted.org/packages/84/c3/51b4e2b777fe700074f2b091dcac82275fdc394630b0933c4fd9d36851ac/flake8-lineleak-1.0.2.tar.gz" } ] }