{ "info": { "author": "amix", "author_email": "amix@amix.dk", "bugtrack_url": null, "classifiers": [ "Development Status :: 6 - Mature", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Software Development", "Topic :: Utilities" ], "description": "py_static_check\n---------------\n\npy_static_check can statically check your Python code for a lot of common errors.\nIt uses a modified pyflakes code and extends with following things:\n\n * Ability to specify what star imports resolve to (-s argument)\n * Ability to ignore unused import warnings (-i argument)\n * Better sorting of warnings/errors\n\nFor more information check out:\n\n * http://amix.dk/blog/post/19665#py-static-check-Statically-check-your-Python-code\n * http://amix.dk/blog/post/19361#Static-checking-Python-code\n\nTo install it do following:\n\n sudo easy_install py_static_check\n\n\nHere are some of the things py_static_check can do.\n\n\nCatch undefined names, even for star imports\n--------------------------------------------\n\nExample code::\n\n from os import *\n\n def function_with_error():\n print path\n print paths\n\nstar_imports.py::\n\n import os\n STAR_IMPORTS = {\n 'os': os.__all__,\n }\n\nWhen ran with py_static_check::\n\n $ py_static_check -s tests/star_import.py tests/undefined_name_star.py\n tests/undefined_name.py:5: undefined name 'paths\n\n\nIgnore not used warnings\n------------------------\n\nExampel code::\n\n from os import path\n\nWhen ran with py_static_check -i option::\n\n $ py_static_check -i tests/ignore_not_used.py\n\n $ py_static_check tests/ignore_not_used.py\n tests/ignore_not_used.py:10: 'path' imported but unused\n\n\nAssigned but never used\n-----------------------\n\nLike pyflakes it can catch a lot of errors, such as defining a variable without using it.\n\nExampel code::\n\n def some_function():\n def inner_fn():\n local_var = \"\"\n\nWhen ran with py_static_check::\n\n $ py_static_check tests/assigned_but_never_used.py\n\n tests/assigned_but_never_used.py:8: local variable 'local_var' is assigned to but never used\n\nCopyright: 2011 by amix\nLicense: MIT.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.amix.dk/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "py_static_check", "package_url": "https://pypi.org/project/py_static_check/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/py_static_check/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.amix.dk/" }, "release_url": "https://pypi.org/project/py_static_check/1.2/", "requires_dist": null, "requires_python": null, "summary": "Statically check your Python code", "version": "1.2" }, "last_serial": 796951, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "ffb42a19194f39d906df9cc43cf28a65", "sha256": "0aa1ea8de2f8c4a94660f631ddab09e04d5b90c28b32c100d4bd63682f42a92c" }, "downloads": -1, "filename": "py_static_check-1.0-py2.7.egg", "has_sig": false, "md5_digest": "ffb42a19194f39d906df9cc43cf28a65", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 24400, "upload_time": "2011-12-19T20:59:43", "url": "https://files.pythonhosted.org/packages/8b/f8/e861f171372dc349e7ddfcbf1adb85470d4f56b86153294d88fe529f9223/py_static_check-1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "b77d61ea007ab33b7f3c52dd693fc121", "sha256": "bb0410dcd604a871fb95d2770888ea8221c1772e4d9528ad72974627d48322f3" }, "downloads": -1, "filename": "py_static_check-1.0.tar.gz", "has_sig": false, "md5_digest": "b77d61ea007ab33b7f3c52dd693fc121", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10362, "upload_time": "2011-12-19T20:53:57", "url": "https://files.pythonhosted.org/packages/79/5f/d608bccc387c667d5044b669888b700b11fb9f1f2f348e46fecc01b1b157/py_static_check-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "bbe6b98f7a76615c4257ed92a88d697c", "sha256": "bb7d88a9c7fe2417c3a9d6cc754b3a18523640709de91255908a3e20951dee01" }, "downloads": -1, "filename": "py_static_check-1.1-py2.7.egg", "has_sig": false, "md5_digest": "bbe6b98f7a76615c4257ed92a88d697c", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21947, "upload_time": "2011-12-19T21:08:31", "url": "https://files.pythonhosted.org/packages/37/4a/9b95f4b1ffed1f4ed3846e866b5fedba3f9cb0dddf973f0a5d974605b73e/py_static_check-1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "4fecbc08dd726122880af0339ea25e98", "sha256": "1bbb75ea894ce28e069c02122f3ef4fabe5cf904ebbab259645956ab5b5e718d" }, "downloads": -1, "filename": "py_static_check-1.1.tar.gz", "has_sig": false, "md5_digest": "4fecbc08dd726122880af0339ea25e98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10495, "upload_time": "2011-12-19T21:08:30", "url": "https://files.pythonhosted.org/packages/27/57/e3553c8b5fa77921754429908579f7d9a3b7665d0ccf422a14565e82aeb7/py_static_check-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "612eee5fc32b793820626b2fc4dc2f61", "sha256": "f8355d971c1271c587379b2fc922f5b533e97141295d514206a6385751e9f679" }, "downloads": -1, "filename": "py_static_check-1.2-py2.7.egg", "has_sig": false, "md5_digest": "612eee5fc32b793820626b2fc4dc2f61", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21989, "upload_time": "2011-12-19T21:59:03", "url": "https://files.pythonhosted.org/packages/09/56/4c15db657129dcc0100e5d0786ccc8c0cb7c328a1e9c2d78691792a3aeaf/py_static_check-1.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "eb9abc0f6d29fd40413684d7536c3f41", "sha256": "67bc0377ee40a422d5d92a7d4a5e6f2275ba16567fe6a1836f7833b1cdad479f" }, "downloads": -1, "filename": "py_static_check-1.2.tar.gz", "has_sig": false, "md5_digest": "eb9abc0f6d29fd40413684d7536c3f41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10499, "upload_time": "2011-12-19T21:59:02", "url": "https://files.pythonhosted.org/packages/38/7f/de1683a9a61586caa476ceda3572f07b3f229c6ee756dd339c97ad4658fd/py_static_check-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "612eee5fc32b793820626b2fc4dc2f61", "sha256": "f8355d971c1271c587379b2fc922f5b533e97141295d514206a6385751e9f679" }, "downloads": -1, "filename": "py_static_check-1.2-py2.7.egg", "has_sig": false, "md5_digest": "612eee5fc32b793820626b2fc4dc2f61", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21989, "upload_time": "2011-12-19T21:59:03", "url": "https://files.pythonhosted.org/packages/09/56/4c15db657129dcc0100e5d0786ccc8c0cb7c328a1e9c2d78691792a3aeaf/py_static_check-1.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "eb9abc0f6d29fd40413684d7536c3f41", "sha256": "67bc0377ee40a422d5d92a7d4a5e6f2275ba16567fe6a1836f7833b1cdad479f" }, "downloads": -1, "filename": "py_static_check-1.2.tar.gz", "has_sig": false, "md5_digest": "eb9abc0f6d29fd40413684d7536c3f41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10499, "upload_time": "2011-12-19T21:59:02", "url": "https://files.pythonhosted.org/packages/38/7f/de1683a9a61586caa476ceda3572f07b3f229c6ee756dd339c97ad4658fd/py_static_check-1.2.tar.gz" } ] }