{ "info": { "author": "Matthias Bussonnier", "author_email": "bussonniermatthias@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "# Friendly autopep8\n\nA wrapper around [autopep8] which rums it only on non commited lines. I.E run\n`git-diff` between the worktree and this index and apply autopep8 only to\nthere. \n\n## Usage\n\n### Commandline:\n\n```\n$ friendlyautopep8\nskip only deleted lines\nautopep8 --in-place --line-range 23 38 ./friendlyautopep8/__init__.py\nautopep8 --in-place --line-range 11 19 ./friendlyautopep8/__init__.py\n```\n\n\n```\n$ friendlyautopep8 HEAD~13\nautopep8 --in-place --line-range 12 78 ./friendlyautopep8/__init__.py\nautopep8 --in-place --line-range 81 134 ./friendlyautopep8/__init__.py\n```\n\n### progrmatic:\n\n\n```python\nfrom friendlypep8 import run_on_cwd\nrun_on_cwd(commmitish_or_None):\n```\n\n\n## Why ?\n\nBecause autopep8 is nice but [\"There must be a better\nway\"](https://www.youtube.com/watch?v=wf-BqAjZb8M). (Highly recommended to\nwatch). \n\n \n - Applying autopep8 (or even fixing manually) can break tools like git blame. \n - Extra changes (in whitespace, indent....) can distract reviewer from their tasks. \n\nThe fix is simple, pep-8 (or should I say pycodestyle) only the lines that are\nactively changed.\n\nThis will allow project that are not pep-8 complaint to __progressivley__\nbecome compliant if they wish. And does not prevent you from running on your\nchanges. \n\n## TODO.\n\n- Support applying on a commit range instead of non-comited\n- Support non-git. \n\n## Limitations\n\nNumber of whitelines between function/classes might be wrong. Probably other\nthings. \n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Carreau/friendlyautopep8", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "friendlyautopep8", "package_url": "https://pypi.org/project/friendlyautopep8/", "platform": "", "project_url": "https://pypi.org/project/friendlyautopep8/", "project_urls": { "Homepage": "https://github.com/Carreau/friendlyautopep8" }, "release_url": "https://pypi.org/project/friendlyautopep8/0.0.4/", "requires_dist": [ "autopep8" ], "requires_python": ">=3.4", "summary": "Just a wrapper around autopep8 which run _only_ on the changed (non commited", "version": "0.0.4" }, "last_serial": 2544618, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "52aa023d0477d24f8c5ed945da56709c", "sha256": "03abe1ceee14bbaf42eb1f35ca07335fcce01ac8411e00d0775a939c02cd8502" }, "downloads": -1, "filename": "friendlyautopep8-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "52aa023d0477d24f8c5ed945da56709c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 16755, "upload_time": "2016-12-19T17:46:29", "url": "https://files.pythonhosted.org/packages/8f/6c/79823cc912e3f1a1bc7fd8ea190e697699ba29b98e7ad086a6d2fa1e695f/friendlyautopep8-0.0.2-py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "24b6457a6ef0b06310e61a6ee847dedc", "sha256": "922e862f85f9fae0f1e132de829cb951345ee8ddf353c4215e9f9f01ef7247c2" }, "downloads": -1, "filename": "friendlyautopep8-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "24b6457a6ef0b06310e61a6ee847dedc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 96862, "upload_time": "2016-12-19T23:38:25", "url": "https://files.pythonhosted.org/packages/f3/fa/7c228f535969e74e54aefb7c16c06ee58b45cbd88ff54a88ce52b4934bee/friendlyautopep8-0.0.3-py3-none-any.whl" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "edc7e3d78cb7bd63c3d3dcb9336de1b2", "sha256": "73c16b75ec3ce601b86202959fa96b6c70cc500d58cffef9422467c7d34cfdce" }, "downloads": -1, "filename": "friendlyautopep8-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "edc7e3d78cb7bd63c3d3dcb9336de1b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 11031, "upload_time": "2016-12-29T18:36:46", "url": "https://files.pythonhosted.org/packages/22/30/309bf4ef6536062cdfed7d2c30e10881536692f4de9d114cb06833192b4b/friendlyautopep8-0.0.4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "edc7e3d78cb7bd63c3d3dcb9336de1b2", "sha256": "73c16b75ec3ce601b86202959fa96b6c70cc500d58cffef9422467c7d34cfdce" }, "downloads": -1, "filename": "friendlyautopep8-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "edc7e3d78cb7bd63c3d3dcb9336de1b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 11031, "upload_time": "2016-12-29T18:36:46", "url": "https://files.pythonhosted.org/packages/22/30/309bf4ef6536062cdfed7d2c30e10881536692f4de9d114cb06833192b4b/friendlyautopep8-0.0.4-py3-none-any.whl" } ] }