{ "info": { "author": "Jack Taylor", "author_email": "rayjolt@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Framework :: Flake8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance" ], "description": "# flake8-file-encoding\n\nA Flake8 plugin to check for files opened without an explicit encoding.\n\n## Why check for encoding arguments?\n\nIf you don't specify an `encoding` argument to the\n[open](https://docs.python.org/3/library/functions.html#open) function, then\nPython will use a platform-dependent default encoding\u2014whatever\n[locale.getpreferredencoding](https://docs.python.org/3/library/locale.html#locale.getpreferredencoding)\nreturns. On many platforms this is\n[UTF-8](https://en.wikipedia.org/wiki/UTF-8), but on a significant minority it\nis something different. For example, the default encoding on Japanese Windows\nmachines is cp932 (Microsoft's version of\n[Shift-JIS](https://en.wikipedia.org/wiki/Shift_JIS)). If you open a UTF-8 file\non such a system but do not specify an encoding, then attempting to read any\nmulti-byte characters in the file will cause a UnicodeDecodeError.\n\n## Installation\n\n```bash\npip install flake8-file-encoding\n```\n\n## Usage\n\nOnce this plugin is installed, Flake8 will check for missing `encoding`\narguments along with its other checks. No special activation for this plugin is\nnecessary. For more details on running Flake8, see the\n[Flake8 documentation](http://flake8.pycqa.org/en/latest/index.html).\n\n## Errors\n\nCode | Message\n------ | --------\nFEN001 | open() call has no encoding argument\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/rayjolt/flake8-file-encoding", "keywords": "flake8,file,open,encoding", "license": "MIT", "maintainer": "Jack Taylor", "maintainer_email": "rayjolt@gmail.com", "name": "flake8-file-encoding", "package_url": "https://pypi.org/project/flake8-file-encoding/", "platform": "", "project_url": "https://pypi.org/project/flake8-file-encoding/", "project_urls": { "Homepage": "https://github.com/rayjolt/flake8-file-encoding" }, "release_url": "https://pypi.org/project/flake8-file-encoding/0.1.0/", "requires_dist": [ "flake8 (>=3,<4)" ], "requires_python": ">=3.4,<4.0", "summary": "A Flake8 plugin to check for files opened without an explicit encoding", "version": "0.1.0" }, "last_serial": 5406527, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cb5c1ecfe7c29d3171a41244225901bd", "sha256": "9106c9cc50c200ffc52621325f9463ebac6ee7320fcd3e954c9009e0bd92bcd0" }, "downloads": -1, "filename": "flake8_file_encoding-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cb5c1ecfe7c29d3171a41244225901bd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4,<4.0", "size": 3002, "upload_time": "2019-06-16T13:40:56", "url": "https://files.pythonhosted.org/packages/cc/fc/19f814ce3d20878d7b951c732d9d0a379a1cea24a87a76ca713909192821/flake8_file_encoding-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1e8ebe461625bf1305d7e080dacc4cb", "sha256": "e35eb7b1497f5ee980a75031fadf566b1c026f9160643ff0e1c43341ccb7908d" }, "downloads": -1, "filename": "flake8-file-encoding-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d1e8ebe461625bf1305d7e080dacc4cb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4,<4.0", "size": 2810, "upload_time": "2019-06-16T13:40:53", "url": "https://files.pythonhosted.org/packages/51/30/de7e57357f5db90ac2f872021825527cc30ada8d96b830486649c5725ee3/flake8-file-encoding-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cb5c1ecfe7c29d3171a41244225901bd", "sha256": "9106c9cc50c200ffc52621325f9463ebac6ee7320fcd3e954c9009e0bd92bcd0" }, "downloads": -1, "filename": "flake8_file_encoding-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cb5c1ecfe7c29d3171a41244225901bd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4,<4.0", "size": 3002, "upload_time": "2019-06-16T13:40:56", "url": "https://files.pythonhosted.org/packages/cc/fc/19f814ce3d20878d7b951c732d9d0a379a1cea24a87a76ca713909192821/flake8_file_encoding-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1e8ebe461625bf1305d7e080dacc4cb", "sha256": "e35eb7b1497f5ee980a75031fadf566b1c026f9160643ff0e1c43341ccb7908d" }, "downloads": -1, "filename": "flake8-file-encoding-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d1e8ebe461625bf1305d7e080dacc4cb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4,<4.0", "size": 2810, "upload_time": "2019-06-16T13:40:53", "url": "https://files.pythonhosted.org/packages/51/30/de7e57357f5db90ac2f872021825527cc30ada8d96b830486649c5725ee3/flake8-file-encoding-0.1.0.tar.gz" } ] }