{ "info": { "author": "Boris Verkhovskiy", "author_email": "boris@verhovs.ky", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only" ], "description": "\n\npyupgrade-docs\n============\n\nRun `pyupgrade` on python code blocks in documentation files.\n\n## install\n\n`pip install pyupgrade-docs`\n\n## usage\n\n`pyupgrade-docs` provides a single executable (`pyupgrade-docs`) which will modify\n`.rst` / `.md` files in place.\n\nIt currently supports the following [`pyupgrade`](https://github.com/asottile/pyupgrade)\noptions:\n\n- `--keep-percent-format`\n- `--py3-plus` `--py3-only`\n- `--py36-plus`\n\nFollowing additional parameters can be used:\n\n - `-E` / `--skip-errors`\n\n`pyupgrade-docs` will format code in the following block types:\n\n(markdown)\n```markdown\n ```python\n def hello():\n print(\"hello world\")\n ```\n```\n\n(rst)\n```rst\n .. code-block:: python\n\n def hello():\n print(\"hello world\")\n```\n\n## usage with pre-commit\n\nSee [pre-commit](https://pre-commit.com) for instructions\n\nSample `.pre-commit-config.yaml`:\n\n\n```yaml\n- repo: https://github.com/verhovsky/pyupgrade-docs\n rev: v0.1.0\n hooks:\n - id: pyupgrade-docs\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/verhovsky/pyupgrade_docs", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyupgrade-docs", "package_url": "https://pypi.org/project/pyupgrade-docs/", "platform": "", "project_url": "https://pypi.org/project/pyupgrade-docs/", "project_urls": { "Homepage": "https://github.com/verhovsky/pyupgrade_docs" }, "release_url": "https://pypi.org/project/pyupgrade-docs/0.1.1/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Run `pyupgrade` on python code blocks in documentation files", "version": "0.1.1" }, "last_serial": 5652802, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bf902ceed59d42825da630efc31b115b", "sha256": "946327b14d3375c9ca55e4589c2e6236057dbee99b946af6c94e3c7b6dd6ef6e" }, "downloads": -1, "filename": "pyupgrade_docs-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bf902ceed59d42825da630efc31b115b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3935, "upload_time": "2019-08-06T21:07:50", "url": "https://files.pythonhosted.org/packages/55/e6/610cf73e86770476102531d1cd1658668b1fb13658c85064486b41a803c7/pyupgrade_docs-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d2d6c8495a03d1bffa963d444dc74aed", "sha256": "5847a9bb0724ff28e90642afbbeb11ba5246b2525883427c3cc8ee53f76be64b" }, "downloads": -1, "filename": "pyupgrade_docs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d2d6c8495a03d1bffa963d444dc74aed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3843, "upload_time": "2019-08-09T00:45:13", "url": "https://files.pythonhosted.org/packages/f1/25/87a8812a6c86d60247e52c826ec7f916245648eecefc850a979ec7128a63/pyupgrade_docs-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d2d6c8495a03d1bffa963d444dc74aed", "sha256": "5847a9bb0724ff28e90642afbbeb11ba5246b2525883427c3cc8ee53f76be64b" }, "downloads": -1, "filename": "pyupgrade_docs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d2d6c8495a03d1bffa963d444dc74aed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3843, "upload_time": "2019-08-09T00:45:13", "url": "https://files.pythonhosted.org/packages/f1/25/87a8812a6c86d60247e52c826ec7f916245648eecefc850a979ec7128a63/pyupgrade_docs-0.1.1.tar.gz" } ] }