{ "info": { "author": "Yannier Gonz\u00e1lez Pedroso", "author_email": "ygpedroso2503@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Software Development" ], "description": "# python-githooks\n\n[![code linting: flake8](https://img.shields.io/badge/lint-flake8-blue.svg)](http://flake8.pycqa.org/) [![code quality: pytest](https://img.shields.io/badge/test-pytest-yellow.svg)](https://docs.pytest.org/) [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n[![CircleCI](https://circleci.com/gh/ygpedroso/python-githooks.svg?style=svg)](https://circleci.com/gh/ygpedroso/python-githooks)\n\n> Create git hooks with ease using a simple configuration file in a git project\n\n## Install\n```bash\npip install python-githooks\n```\n\n## Usage\n1. Create a `.githooks.ini` configuration file(If not provided a dummy configuration file will be created).\n2. Add sections based on `git hooks names` followed by a `command` property with the shell code you want to run.\n3. Run either `python -m python_githooks` or `githooks` in you virtual environment.\n* Configuration file Example:\n```\n# .githooks.ini\n\n[pre-commit]\ncommand = pytest --cov\n\n[pre-push]\ncommand = pytest --cov && flake8\n```\n* Remember to re-run `python -m python_githooks` or `githooks` every time you make changes to the configuration file, \nwhether it is for adding new hooks or modifying the current ones. \n\n## Removing a hook\nIf you already created a hook and now want to remove it, just set the command value to empty, like this:\n```\n# .githooks.ini\n\n[pre-commit]\ncommand = \n```\nThis will not actually physically remove the hook from the git local project, just will make it instantly exit with `0` \nstatus code.\n\n## License\npython-githooks is [MIT-licensed](https://github.com/ygpedroso/python-githooks/blob/master/LICENSE).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ygpedroso/python-githooks", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-githooks", "package_url": "https://pypi.org/project/python-githooks/", "platform": "", "project_url": "https://pypi.org/project/python-githooks/", "project_urls": { "Homepage": "https://github.com/ygpedroso/python-githooks" }, "release_url": "https://pypi.org/project/python-githooks/1.0.6/", "requires_dist": [ "configparser" ], "requires_python": "", "summary": "Create git hooks with ease using a simple configuration file in a git project", "version": "1.0.6" }, "last_serial": 4996182, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "ad9734a82dcaeb95ce2c0ab055e5fe9a", "sha256": "8ce2d01fac959a4a464253d64d09f510ab689db4c7fd41ced1eb6899c1b02c10" }, "downloads": -1, "filename": "python_githooks-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ad9734a82dcaeb95ce2c0ab055e5fe9a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4582, "upload_time": "2018-12-04T23:11:02", "url": "https://files.pythonhosted.org/packages/76/c8/680b703cb8f572c5b1186f75fba18db42582d5f0f4ab846820fccf38fa84/python_githooks-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9ae8a81dac625bafc97bb32ffc254e97", "sha256": "57c3c3c1e560f21d061c3cac073aac4529f23785b2025cf5934320c85c34f170" }, "downloads": -1, "filename": "python-githooks-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9ae8a81dac625bafc97bb32ffc254e97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2649, "upload_time": "2018-12-04T23:11:04", "url": "https://files.pythonhosted.org/packages/3b/e0/58196bcb292c5012007fdecad78b0aff49eed776cb3c6d0d0f3994cabcca/python-githooks-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b99bb80fa415b83ed1508449d18d2fc1", "sha256": "2fcb550b1417c7d7fc9a4a0e084ee08ae5d8d8d54ff16951ce081a3cefbf8036" }, "downloads": -1, "filename": "python_githooks-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b99bb80fa415b83ed1508449d18d2fc1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4607, "upload_time": "2018-12-04T23:22:30", "url": "https://files.pythonhosted.org/packages/de/af/a5caa7bdf2df559d1210621bcb192663861e50c1289adeed93f2b3f68981/python_githooks-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "238e21ee2e0277f2a4022ffdfb4388f5", "sha256": "d9a48a74ff3571e084b2b8a586cc899c83dc133908ea4f383201ed8534feda76" }, "downloads": -1, "filename": "python-githooks-1.0.1.tar.gz", "has_sig": false, "md5_digest": "238e21ee2e0277f2a4022ffdfb4388f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2676, "upload_time": "2018-12-04T23:22:31", "url": "https://files.pythonhosted.org/packages/4d/98/5ce147e4239b3db23f1b8952dcf3cc19211038579dc93de02df7d97e3da6/python-githooks-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "ce7f9e9abbed3ec814f30610c0ec198b", "sha256": "18f2b224a01ef8fc17f4fdd2a2bf7c398c1b747c305e8f117838975b9653a252" }, "downloads": -1, "filename": "python_githooks-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ce7f9e9abbed3ec814f30610c0ec198b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5228, "upload_time": "2018-12-04T23:55:23", "url": "https://files.pythonhosted.org/packages/b1/2f/7247b73e89abb1eef3d1c3eae4324b5749d72635258fbd8c913b3c2022fe/python_githooks-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3363da96942cc1a58af8490262330ec8", "sha256": "b8a454a5a14d6ccab094ed1de57ffe4758a223da69e03c3d4b49e61299357bbd" }, "downloads": -1, "filename": "python-githooks-1.0.2.tar.gz", "has_sig": false, "md5_digest": "3363da96942cc1a58af8490262330ec8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2673, "upload_time": "2018-12-04T23:55:26", "url": "https://files.pythonhosted.org/packages/69/21/497768c391add7c2be131a0b470826fcaef1bfa04a0148b5fd37f05f1fa1/python-githooks-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "9cd17210d5d188576dd4177e77802776", "sha256": "5c73ca9cb590938362e66c802254bfef033451e1d32202f685acc87daafdce74" }, "downloads": -1, "filename": "python_githooks-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "9cd17210d5d188576dd4177e77802776", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4643, "upload_time": "2018-12-05T16:05:33", "url": "https://files.pythonhosted.org/packages/9d/9c/3fd3689b272908443964c208f2830f7a36c4021904dfea1a96207935b0cc/python_githooks-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "627611d6d51c0a2348086bbf978e5ecd", "sha256": "f272178119559a28e7051aad62000d344783124048efdab3678b8a8e8c18428e" }, "downloads": -1, "filename": "python-githooks-1.0.3.tar.gz", "has_sig": false, "md5_digest": "627611d6d51c0a2348086bbf978e5ecd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2892, "upload_time": "2018-12-05T16:05:34", "url": "https://files.pythonhosted.org/packages/9d/1c/4742316bcf7a9092fe443b80a97a03fea75e95c3b47b8b123fe7cc42dc01/python-githooks-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "2c05761010002c8f50dc09a922a81461", "sha256": "f0475c3f2b00dddda0ad38a3a09a4102c709b608c19761f5c61df60d48a09ae0" }, "downloads": -1, "filename": "python_githooks-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "2c05761010002c8f50dc09a922a81461", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4643, "upload_time": "2018-12-05T16:42:18", "url": "https://files.pythonhosted.org/packages/34/34/9401f2234f5b4b2d87b0b013c0fa2fd4f6af97832937d0495ea726e740d4/python_githooks-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6443cad8c926ccb7a51879e249c936ea", "sha256": "aef761408124002a7cc73b6cf7e4c5d06bd775ec6b6b8f7fa34571619d8b0cba" }, "downloads": -1, "filename": "python-githooks-1.0.4.tar.gz", "has_sig": false, "md5_digest": "6443cad8c926ccb7a51879e249c936ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2905, "upload_time": "2018-12-05T16:42:20", "url": "https://files.pythonhosted.org/packages/f9/38/c48311eb20bfe415cb12df0bb968abe7e0a939106d45924a7205122b5944/python-githooks-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "1b76688bff6d9cc98ac8003892a02fcc", "sha256": "80f0d12611714f0688498bd73d5f6e982347b69824f7fa6fe3b0acdb650c5d4c" }, "downloads": -1, "filename": "python_githooks-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "1b76688bff6d9cc98ac8003892a02fcc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4860, "upload_time": "2018-12-12T23:19:26", "url": "https://files.pythonhosted.org/packages/ec/fb/d0c701f3689c062aa732f3d6033b6a645f7ec5b2e7d7e0a318335a08afb6/python_githooks-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bbbbb9a98387181d283b33019955ce4d", "sha256": "d5b5415e02146e75efb29e3542f864c2a58793b0916c074894df6d556fc52230" }, "downloads": -1, "filename": "python-githooks-1.0.5.tar.gz", "has_sig": false, "md5_digest": "bbbbb9a98387181d283b33019955ce4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3166, "upload_time": "2018-12-12T23:19:27", "url": "https://files.pythonhosted.org/packages/db/87/38c208cd810fcd50e6445a7b75220d88b5baba03752351c3a7733adcf63a/python-githooks-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "95368d22fcba45dd4cb7fb44ba218702", "sha256": "50ef3e0f824a7cc71bc1bc29d5b77232f8a1aaad162b14125aa0d0b4eb01fbac" }, "downloads": -1, "filename": "python_githooks-1.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "95368d22fcba45dd4cb7fb44ba218702", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4890, "upload_time": "2019-03-28T06:23:31", "url": "https://files.pythonhosted.org/packages/b4/ac/b0ce3bd4277addbb7425a135b3d54bd804ef76d1a2297940dd2fa1c473ce/python_githooks-1.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a599855cd94fc5725e1d1a9934ef23c", "sha256": "25c8a498130f61fdfa1093fe132d06a116c933d797c262175dd8e07b421b9ff9" }, "downloads": -1, "filename": "python-githooks-1.0.6.tar.gz", "has_sig": false, "md5_digest": "6a599855cd94fc5725e1d1a9934ef23c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3194, "upload_time": "2019-03-28T06:23:32", "url": "https://files.pythonhosted.org/packages/9d/4c/e2162181c5e8eb4ba925c992083415881b46e62515cc8af59a798b27cfff/python-githooks-1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "95368d22fcba45dd4cb7fb44ba218702", "sha256": "50ef3e0f824a7cc71bc1bc29d5b77232f8a1aaad162b14125aa0d0b4eb01fbac" }, "downloads": -1, "filename": "python_githooks-1.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "95368d22fcba45dd4cb7fb44ba218702", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4890, "upload_time": "2019-03-28T06:23:31", "url": "https://files.pythonhosted.org/packages/b4/ac/b0ce3bd4277addbb7425a135b3d54bd804ef76d1a2297940dd2fa1c473ce/python_githooks-1.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a599855cd94fc5725e1d1a9934ef23c", "sha256": "25c8a498130f61fdfa1093fe132d06a116c933d797c262175dd8e07b421b9ff9" }, "downloads": -1, "filename": "python-githooks-1.0.6.tar.gz", "has_sig": false, "md5_digest": "6a599855cd94fc5725e1d1a9934ef23c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3194, "upload_time": "2019-03-28T06:23:32", "url": "https://files.pythonhosted.org/packages/9d/4c/e2162181c5e8eb4ba925c992083415881b46e62515cc8af59a798b27cfff/python-githooks-1.0.6.tar.gz" } ] }