{ "info": { "author": "Aristide Niyungeko", "author_email": "aristide.niyungeko@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance" ], "description": "# flake8-regex\nSearches for regex patterns provided in a configuration file\n\n## Usage\n\nThese steps are tested using Mac OSX 10.10.5 and python 3.4.2\n\n1- Get flake8 and flake8-regex:\n\n```\npip install flake8 flake8-regex\n```\n\n2- Create a config module such as\n\n**file**: your_config_module.py\n\n```\nimport re\n\nrules = [\n {\n 'regex': re.compile(r\"\"\"(^simple.*|\n ^pattern.*)\"\"\", re.X),\n 'code': '100', # Any 3 digit code, 'R' namespace will be prefixed to that in the report\n 'message': \"neither 'simple' nor 'pattern' are allowed at the beginning of a line\",\n },\n]\n\n```\n**Important note**: The config file can be named anything, but the list MUST be named `rules`\n\n3- Set a FLAKE8_REGEX_CONFIG_MODULE environment variable\n\n```\nexport FLAKE8_REGEX_CONFIG_MODULE=absolute.path.to.your_config_module\n```\n\n4- run it!\n\nFor example:\n\n**for file**: code.py\n\n```\nsimple = \"foo\"\npattern = \"bar\"\ngood = None\n```\n\n```\nflake8 code.py\n\ncode.py:1:1: R100 neither 'simple' nor 'pattern' are allowed at the beginning of a line\ncode.py:2:1: R100 neither 'simple' nor 'pattern' are allowed at the beginning of a line\n```\n\n## Known issues\n\nThe current implementation only reports the first item in the list of rules that matches the line\nevaluated. In the future all matching items will be reported.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aristiden7o/flake8-regex", "keywords": "flake8 regex", "license": "GNU General Public License v2 (GPLv2)", "maintainer": null, "maintainer_email": null, "name": "flake8-regex", "package_url": "https://pypi.org/project/flake8-regex/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/flake8-regex/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/aristiden7o/flake8-regex" }, "release_url": "https://pypi.org/project/flake8-regex/0.3/", "requires_dist": null, "requires_python": null, "summary": "Arbitrary regex checker, extension for flake8", "version": "0.3" }, "last_serial": 1735423, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "3b37e22e3f61306fc69c0937fff56afd", "sha256": "812e6f9cfc66f3b8ad2bbb93ec0dede2043a16b5f5d04dc1c8f8e3590c7e67bd" }, "downloads": -1, "filename": "flake8-regex-0.3.tar.gz", "has_sig": false, "md5_digest": "3b37e22e3f61306fc69c0937fff56afd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2685, "upload_time": "2015-09-23T20:23:28", "url": "https://files.pythonhosted.org/packages/6a/9f/77394c31f7c51f07c78b0a2b2fad5b348775ce49d95e2e531d201d26d732/flake8-regex-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3b37e22e3f61306fc69c0937fff56afd", "sha256": "812e6f9cfc66f3b8ad2bbb93ec0dede2043a16b5f5d04dc1c8f8e3590c7e67bd" }, "downloads": -1, "filename": "flake8-regex-0.3.tar.gz", "has_sig": false, "md5_digest": "3b37e22e3f61306fc69c0937fff56afd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2685, "upload_time": "2015-09-23T20:23:28", "url": "https://files.pythonhosted.org/packages/6a/9f/77394c31f7c51f07c78b0a2b2fad5b348775ce49d95e2e531d201d26d732/flake8-regex-0.3.tar.gz" } ] }