{ "info": { "author": "Evgeny Vereshchagin", "author_email": "evvers@ya.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Quality Assurance" ], "description": "Hook that blocks bad commits.\nUseful for Python-development.\n\nInstallation\n------------\n\nYou can install, upgrade, uninstall git-pre-commit-hook\nwith these commands::\n\n $ pip install git-pre-commit-hook\n $ pip install --upgrade git-pre-commit-hook\n $ pip uninstall git-pre-commit-hook\n\nFeatures\n---------\n\n* Work fine with initial commit.\n* Work fine with all filenames.\n* Work with index contents instead of working copy.\n* Plugin architecture: adding new checks is easy.\n* Builtin plugins for:\n\n * validate json files\n * validate Python-code with\n `flake8 `_\n (\n `mccabe plugin `_\n is enabled\n )\n and\n `pep8-naming `_\n * validate Python-code with\n `frosted `_\n * validate .rst files with\n `restructuredtext_lint `_\n * validate .ini files with\n `configparser `_\n * validate .yaml files with `PyYAML `_\n * validate .xml files with\n `xml.etree.ElementTree `_\n * check filesize\n\nExamples\n--------\n\nInstall hook to current Git-repository::\n\n git-pre-commit-hook install \\\n --plugin flake8 \\\n --plugin frosted \\\n --plugin json \\\n --plugin file_size \\\n --plugin rst \\\n --plugin yaml\n\nInstalled hook rejects commits:\n\n* if any file has size greater than 10MB\n* if files with .json extension contains invalid JSON\n* if Python-code doesn't pass check with flake8 (with pep8-naming)\n* if Python-code doesn't pass check with frosted\n* if files with .rst extension contains invalid RST\n* if files with .yaml extension contains invalid YAML\n\nList available plugins::\n\n git-pre-commit-hook list-plugins\n\nShow information about plugin::\n\n git-pre-commit-hook show-plugin-info json\n\n\nContributing\n------------\n\n1. Fork `git-pre-commit-hook `_\n\n2. Clone your fork\n\n3. Install tox::\n\n pip install tox\n\n4. Create development environment::\n\n tox -e devenv\n source devenv/bin/activate\n\n5. Edit code\n\n6. Run tests::\n\n tox\n\n7. Send pull request\n\nLinks\n-----\n\n* `Fork me on GitHub `_", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/evvers/git-pre-commit-hook", "keywords": "git pre-commit hook pep8 pep8-naming flake8 mccabe frosted", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "git-pre-commit-hook", "package_url": "https://pypi.org/project/git-pre-commit-hook/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/git-pre-commit-hook/", "project_urls": { "Homepage": "https://github.com/evvers/git-pre-commit-hook" }, "release_url": "https://pypi.org/project/git-pre-commit-hook/0.0.11/", "requires_dist": null, "requires_python": null, "summary": "pre-commit hook for Git", "version": "0.0.11" }, "last_serial": 1100273, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b447ddb129bb27512723bb36c9ba90d3", "sha256": "f71cbc0de9b7fd20cb33035d001f80bcd0388252e2782c087b58a70806cae5e2" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b447ddb129bb27512723bb36c9ba90d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4157, "upload_time": "2014-05-05T03:43:38", "url": "https://files.pythonhosted.org/packages/98/58/729e86e7e9b7d53d273de0f41c0d7143f267994ece36180010ed046b502f/git-pre-commit-hook-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "314ec08501d46364694d13bdff68caa6", "sha256": "3b7170717d09ee99400f7adad7a2d6f84458867119bbf233299dc6a286aceea6" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.10.tar.gz", "has_sig": false, "md5_digest": "314ec08501d46364694d13bdff68caa6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5624, "upload_time": "2014-05-18T17:46:03", "url": "https://files.pythonhosted.org/packages/e7/a7/fa0b097c5c28cdb01ed4e554706af75870da10a26b9d48b82d51de09e182/git-pre-commit-hook-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "48b259f63b593f9da6f47bc90b5abd9f", "sha256": "abed7d0713c652464a475392d90c30f3556aa8319f27772f009acc6ba68e7bfc" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.11.tar.gz", "has_sig": false, "md5_digest": "48b259f63b593f9da6f47bc90b5abd9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5836, "upload_time": "2014-05-21T20:24:43", "url": "https://files.pythonhosted.org/packages/ac/94/46dc93172fbe32671b0ead620555b4d97322a92a731c59bb77885da18a51/git-pre-commit-hook-0.0.11.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "043586708a5e2125f0a04ffd16a53570", "sha256": "a6a65aa692a34c217f258bbc90c703469927e7341042147551ee2a3ce1be98d9" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.2.tar.gz", "has_sig": false, "md5_digest": "043586708a5e2125f0a04ffd16a53570", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4468, "upload_time": "2014-05-05T21:44:49", "url": "https://files.pythonhosted.org/packages/8b/1d/c5a38789fbb753d3f4f63285953edfad2c69b6fb323d24e480804c62a38d/git-pre-commit-hook-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "60fef53f9747fa83a6f9fdc8ff4d624f", "sha256": "59565c51dc0fcf6480eeae113d550aacdd00f79f04bd046f515e5f06650fb165" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.3.tar.gz", "has_sig": false, "md5_digest": "60fef53f9747fa83a6f9fdc8ff4d624f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4594, "upload_time": "2014-05-06T00:03:48", "url": "https://files.pythonhosted.org/packages/f9/77/2e64b9fcc39587c3da9200eeb68a67455e0417addaf01ce8ae02509de117/git-pre-commit-hook-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "e1b6c39c2640e01963fbfc5f103903d3", "sha256": "7518ad4759f8effe2f92d0b435748a32166fa9e7c2adbb9eec3f581d661b7634" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.4.tar.gz", "has_sig": false, "md5_digest": "e1b6c39c2640e01963fbfc5f103903d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4511, "upload_time": "2014-05-06T17:10:37", "url": "https://files.pythonhosted.org/packages/e7/0a/9fbceacb53275da38d5557d88cde617021de11ed0e7f0352c2fc1f7513c5/git-pre-commit-hook-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "dc1d2c17589bb4101c1366bd144af4d5", "sha256": "31e3c4ab8e724c2074d6e3e0b7e3e5d777bbb9be8c0905f1ca15c7845c66737e" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.5.tar.gz", "has_sig": false, "md5_digest": "dc1d2c17589bb4101c1366bd144af4d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4725, "upload_time": "2014-05-06T17:20:21", "url": "https://files.pythonhosted.org/packages/17/d5/89605a96acd5a7ce7ad8ddfcde48a45828779cb691eee5386d898b1b0482/git-pre-commit-hook-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "1394d3cf6fe0075d7cb6a182264574e9", "sha256": "6d1c59aa9c04773d17504750ee04a28dabf8f58241f838eee2e0e6cfebfdccd5" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.6.tar.gz", "has_sig": false, "md5_digest": "1394d3cf6fe0075d7cb6a182264574e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4917, "upload_time": "2014-05-07T09:38:01", "url": "https://files.pythonhosted.org/packages/88/56/acc1a64bf80c4d7b0b139b877e280299bcc7732493365e459ada4528d08c/git-pre-commit-hook-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "07e0a71f579133f1ccc59735cca89814", "sha256": "250d34f0faed04f4d5b917172faaf8952b7feaae61a6705689ff49a228748a66" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.7.tar.gz", "has_sig": false, "md5_digest": "07e0a71f579133f1ccc59735cca89814", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5123, "upload_time": "2014-05-12T10:09:53", "url": "https://files.pythonhosted.org/packages/1e/76/814c25d78c6b65f4787dddded7bd4a45a5709d0185d42094a9a4f30d37d7/git-pre-commit-hook-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "1ea050be4b2e0159cac16d1a4ec663d4", "sha256": "8531e3fb9829c397a870087782cc002e9f31958fee0b0355f9f3073c7c8a697b" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.8.tar.gz", "has_sig": false, "md5_digest": "1ea050be4b2e0159cac16d1a4ec663d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5250, "upload_time": "2014-05-12T12:52:39", "url": "https://files.pythonhosted.org/packages/1a/5a/44fc849ad59d78e00f3accbabf18aabeaf4d58d9fbb1249d66cfb4d9865b/git-pre-commit-hook-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "9128c4de3fbee480846456d8966cef1a", "sha256": "eeb800b184f9e4d44c53f30e1d083c693fdf11b9c31df849fda1b831a169b546" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.9.tar.gz", "has_sig": false, "md5_digest": "9128c4de3fbee480846456d8966cef1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5259, "upload_time": "2014-05-14T10:58:17", "url": "https://files.pythonhosted.org/packages/76/c5/4153219095a63debaa3f13ed17487ea9521d21ff4ea691ac60623ecc7645/git-pre-commit-hook-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48b259f63b593f9da6f47bc90b5abd9f", "sha256": "abed7d0713c652464a475392d90c30f3556aa8319f27772f009acc6ba68e7bfc" }, "downloads": -1, "filename": "git-pre-commit-hook-0.0.11.tar.gz", "has_sig": false, "md5_digest": "48b259f63b593f9da6f47bc90b5abd9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5836, "upload_time": "2014-05-21T20:24:43", "url": "https://files.pythonhosted.org/packages/ac/94/46dc93172fbe32671b0ead620555b4d97322a92a731c59bb77885da18a51/git-pre-commit-hook-0.0.11.tar.gz" } ] }