{ "info": { "author": "Stefan Hoops", "author_email": "shoops@virginia.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# nssacPreCommitHook\n\n## Install\n\n### Linux and MacOS X\n* System wide installation\n``` sh\nsudo pip install nssacPreCommitHook\n```\n\n* User local installation\n``` sh\npip install nssacPreCommitHook --user\n```\n\n### Windows\n* System installation [(Instructions on how to run a console as administrator)](https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/)\n``` sh\n pip install nssacPreCommitHook\n```\n\n* User local installation (not recommeded as the script path is not in the search PATH)\n``` sh\npip install nssacPreCommitHook --user\n```\n\n## Configuration\nThe configuration uses a [JSON schema](https://github.com/NSSAC/nssacPreCommitHook/blob/master/schema/preCommitHook.json) to specify the license and the copyright statements to be used.\n\nTwo examples are provided:\n * [Example 1](https://github.com/NSSAC/nssacPreCommitHook/blob/master/schema/example.json)\n * [Example 2](https://github.com/NSSAC/nssacPreCommitHook/blob/master/test/example.json)\n\n## Enable nssacPreCommitHook for a repository\nDownload [Example](https://github.com/NSSAC/nssacPreCommitHook/blob/master/schema/example.json) and save it. \n\n``` sh\npreCommitHook.py --init -r repository -c Path_to_Example\n```\n\nIf you saved the example as repository/.nssac.json you may ommit `-c Path_to_Example`\n\n## Suported file formats:\nThe patterns section of the example currently supports the following formats\n* __C/C++__ \"*.cpp\", \"*.hpp\", \"*.c\", \"*.h\", \"*.h.in\"\n* __Java__ \"*.java\"\n* __XML__ \"*.xsd\", \"*.xml\", \"*.rng\"\n* __Shell__ \"*.sh\"\n* __CMake__ \"*.cmake\", \"CMakeLists.txt\"\n* __Python__ \"*.py\"\n\nIt is not difficult to add more file types often is is just adding another pattern to the include section of an exiting pattern.\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": "http://github.com/NSSAC/nssacPreCommitHook", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "nssacPreCommitHook", "package_url": "https://pypi.org/project/nssacPreCommitHook/", "platform": "", "project_url": "https://pypi.org/project/nssacPreCommitHook/", "project_urls": { "Homepage": "http://github.com/NSSAC/nssacPreCommitHook" }, "release_url": "https://pypi.org/project/nssacPreCommitHook/1.0.1/", "requires_dist": [ "jsonschema", "pathspec" ], "requires_python": "", "summary": "A pre commit hook used to maintain license and copyright information in source files.", "version": "1.0.1" }, "last_serial": 5299603, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "4e988c45ab1d866b9676f3fcc5dc5b6a", "sha256": "268c7b29e70b36cacbb9f6cdb14eb8f0e66378ab17728a10fcf8646069495a0b" }, "downloads": -1, "filename": "nssacPreCommitHook-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4e988c45ab1d866b9676f3fcc5dc5b6a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14931, "upload_time": "2019-05-21T20:23:20", "url": "https://files.pythonhosted.org/packages/a8/18/a909cf5f69ae568b8c80e72825626a3862cbe139ac4cac930baaf23db3ba/nssacPreCommitHook-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5b2e5e038f4ffa038aa0a00272bc4cea", "sha256": "db86802865bef60dbeb8cba6c0744e5a0b45ceebb5867f9522293ff37b949263" }, "downloads": -1, "filename": "nssacPreCommitHook-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5b2e5e038f4ffa038aa0a00272bc4cea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7983, "upload_time": "2019-05-21T20:23:22", "url": "https://files.pythonhosted.org/packages/ad/f6/f9bf0a23eb26acd1bb5522756a5226b1897de25430d08b2527da573beecb/nssacPreCommitHook-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4e988c45ab1d866b9676f3fcc5dc5b6a", "sha256": "268c7b29e70b36cacbb9f6cdb14eb8f0e66378ab17728a10fcf8646069495a0b" }, "downloads": -1, "filename": "nssacPreCommitHook-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4e988c45ab1d866b9676f3fcc5dc5b6a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14931, "upload_time": "2019-05-21T20:23:20", "url": "https://files.pythonhosted.org/packages/a8/18/a909cf5f69ae568b8c80e72825626a3862cbe139ac4cac930baaf23db3ba/nssacPreCommitHook-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5b2e5e038f4ffa038aa0a00272bc4cea", "sha256": "db86802865bef60dbeb8cba6c0744e5a0b45ceebb5867f9522293ff37b949263" }, "downloads": -1, "filename": "nssacPreCommitHook-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5b2e5e038f4ffa038aa0a00272bc4cea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7983, "upload_time": "2019-05-21T20:23:22", "url": "https://files.pythonhosted.org/packages/ad/f6/f9bf0a23eb26acd1bb5522756a5226b1897de25430d08b2527da573beecb/nssacPreCommitHook-1.0.1.tar.gz" } ] }