============
flake8_tuple
============
.. image:: https://img.shields.io/travis/ar4s/flake8_tuple.svg
:target: https://travis-ci.org/ar4s/flake8_tuple
.. image:: https://img.shields.io/pypi/v/flake8_tuple.svg
:target: https://pypi.python.org/pypi/flake8_tuple
A flake8_tuple plugin checks for (probably) unintended one element tuples like::
foo = 123,
Install
--------
Install with ``pip``::
$ pip install flake8-tuple
You can check that ``flake8`` has picked it up by looking for ``flake8-tuple``
in the output of ``--version``:
.. code-block:: sh
$ flake8 --version
2.6.2 (pycodestyle: 2.0.0, flake8-tuple: 0.2.10, pyflakes: 1.2.3, mccabe: 0.5.0) CPython 2.7.11+ on Linux
Warnings
--------
This plugin add new flake8 warning:
- ``T801``: one element tuple.
Requirements
-------------
* Python 2.x, 3.x (tested on 2.7, 3.4, 3.5, 3.6 and 3.7)
* flake8 or pycodestyle
Licence
-------
BSD license
## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Far4s%2Fflake8_tuple.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Far4s%2Fflake8_tuple?ref=badge_large)
History
-------
0.4.1 (2019-12-05)
------------------
* Fix #26 False positive on 1-tuple assignments containing a function call with a kwarg.
0.3.1 (2019-05-05)
------------------
* Fix #21 preceding-blankline bug.
0.3.0 (2019-03-19)
-------------------
* Refactor and simplify crucial for loop.
0.2.14 (2019-03-12)
-------------------
* Fix reading from stdin when it is closed.
0.2.13 (2016-07-25)
-------------------
* Fixed #14 - false negative
0.2.12 (2016-07-25)
-------------------
* Fixed #12 - flake8>=3.0.0 compatibility
0.2.11 (2016-07-05)
-------------------
* Fixed issue #8 - non exists file raise IOError
* Fixed issues #10 and #11 - compatibility with older versions of flake8
0.2.10 (2016-06-30)
-------------------
* Fixed issue #9 - ``pycodestyle`` instead of ``pep8``
0.2.9 (2016-04-07)
------------------
* Fixed issue #7 - stdin not supported
0.2.8 (2016-03-09)
------------------
* Fixed issue #6 - EOF in multi-line string
* Added ``test/issues`` for run flake8
0.2.7 (2016-03-08)
------------------
* Fixed issue #5 - parsing continue beyond ')'
0.2.4 (2016-02-29)
------------------
* Added support for Python 2.7.x
0.1.0 (2015-01-11)
------------------
* First release on PyPI.
Raw data
{
"_id": null,
"home_page": "https://github.com/ar4s/flake8_tuple",
"name": "flake8-tuple",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "flake8_tuple",
"author": "Arkadiusz Adamski",
"author_email": "arkadiusz.adamski@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/66/40/03b86236fa107562e3e8f9a7dbecb51339828daeaedf7cb7af8e87fc1b41/flake8_tuple-0.4.1.tar.gz",
"platform": "",
"description": "============\nflake8_tuple\n============\n\n.. image:: https://img.shields.io/travis/ar4s/flake8_tuple.svg\n :target: https://travis-ci.org/ar4s/flake8_tuple\n\n.. image:: https://img.shields.io/pypi/v/flake8_tuple.svg\n :target: https://pypi.python.org/pypi/flake8_tuple\n\n\nA flake8_tuple plugin checks for (probably) unintended one element tuples like::\n\n foo = 123,\n\nInstall\n--------\n\nInstall with ``pip``::\n\n $ pip install flake8-tuple\n\nYou can check that ``flake8`` has picked it up by looking for ``flake8-tuple``\nin the output of ``--version``:\n\n.. code-block:: sh\n\n $ flake8 --version\n 2.6.2 (pycodestyle: 2.0.0, flake8-tuple: 0.2.10, pyflakes: 1.2.3, mccabe: 0.5.0) CPython 2.7.11+ on Linux\n\n\n\nWarnings\n--------\n\nThis plugin add new flake8 warning:\n\n- ``T801``: one element tuple.\n\n\nRequirements\n-------------\n\n* Python 2.x, 3.x (tested on 2.7, 3.4, 3.5, 3.6 and 3.7)\n* flake8 or pycodestyle\n\n\nLicence\n-------\n\nBSD license\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Far4s%2Fflake8_tuple.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Far4s%2Fflake8_tuple?ref=badge_large)\n\n\n\nHistory\n-------\n\n0.4.1 (2019-12-05)\n------------------\n* Fix #26 False positive on 1-tuple assignments containing a function call with a kwarg.\n\n\n0.3.1 (2019-05-05)\n------------------\n* Fix #21 preceding-blankline bug. \n\n\n0.3.0 (2019-03-19)\n-------------------\n* Refactor and simplify crucial for loop.\n\n\n0.2.14 (2019-03-12)\n-------------------\n* Fix reading from stdin when it is closed.\n\n\n0.2.13 (2016-07-25)\n-------------------\n* Fixed #14 - false negative\n\n\n0.2.12 (2016-07-25)\n-------------------\n* Fixed #12 - flake8>=3.0.0 compatibility\n\n\n0.2.11 (2016-07-05)\n-------------------\n* Fixed issue #8 - non exists file raise IOError\n* Fixed issues #10 and #11 - compatibility with older versions of flake8\n\n\n0.2.10 (2016-06-30)\n-------------------\n* Fixed issue #9 - ``pycodestyle`` instead of ``pep8``\n\n\n0.2.9 (2016-04-07)\n------------------\n* Fixed issue #7 - stdin not supported\n\n\n0.2.8 (2016-03-09)\n------------------\n\n* Fixed issue #6 - EOF in multi-line string\n* Added ``test/issues`` for run flake8\n\n\n0.2.7 (2016-03-08)\n------------------\n\n* Fixed issue #5 - parsing continue beyond ')'\n\n\n0.2.4 (2016-02-29)\n------------------\n\n* Added support for Python 2.7.x\n\n\n0.1.0 (2015-01-11)\n------------------\n\n* First release on PyPI.",
"bugtrack_url": null,
"license": "BSD",
"summary": "Check code for 1 element tuple.",
"version": "0.4.1",
"split_keywords": [
"flake8_tuple"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "99c35f8cc4cd4f7ba7c07205321359f54568baafb44a908703f98b9f7353bf3e",
"md5": "693be452892b94d3ad687a279d25f089",
"sha256": "d828cc8e461c50cacca116e9abb0c9e3be565e8451d3f5c00578c63670aae680"
},
"downloads": -1,
"filename": "flake8_tuple-0.4.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "693be452892b94d3ad687a279d25f089",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5140,
"upload_time": "2020-11-15T20:00:10",
"upload_time_iso_8601": "2020-11-15T20:00:10.175970Z",
"url": "https://files.pythonhosted.org/packages/99/c3/5f8cc4cd4f7ba7c07205321359f54568baafb44a908703f98b9f7353bf3e/flake8_tuple-0.4.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "664003b86236fa107562e3e8f9a7dbecb51339828daeaedf7cb7af8e87fc1b41",
"md5": "077f2d0c956ab30216f508f2b669577e",
"sha256": "8a1b42aab134ef4c3fef13c6a8f383363f158b19fbc165bd91aed9c51851a61d"
},
"downloads": -1,
"filename": "flake8_tuple-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "077f2d0c956ab30216f508f2b669577e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5752,
"upload_time": "2019-12-05T08:54:30",
"upload_time_iso_8601": "2019-12-05T08:54:30.521727Z",
"url": "https://files.pythonhosted.org/packages/66/40/03b86236fa107562e3e8f9a7dbecb51339828daeaedf7cb7af8e87fc1b41/flake8_tuple-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2019-12-05 08:54:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "ar4s",
"github_project": "flake8_tuple",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "flake8-tuple"
}