https://github.com/ar4s/flake8_tuple
Check code for one-element tuple.
https://github.com/ar4s/flake8_tuple
flake8-plugin hacktoberfest hacktoberfest2021 python
Last synced: 8 months ago
JSON representation
Check code for one-element tuple.
- Host: GitHub
- URL: https://github.com/ar4s/flake8_tuple
- Owner: ar4s
- License: bsd-3-clause
- Created: 2015-08-17T19:28:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-17T16:46:40.000Z (over 4 years ago)
- Last Synced: 2024-11-14T14:57:54.672Z (over 1 year ago)
- Topics: flake8-plugin, hacktoberfest, hacktoberfest2021, python
- Language: Python
- Homepage:
- Size: 54.7 KB
- Stars: 23
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
============
flake8_tuple
============
.. image:: https://github.com/ar4s/flake8_tuple/actions/workflows/main.yml/badge.svg
:target: https://github.com/ar4s/flake8_tuple/actions/workflows/main.yml
.. 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 3.x (tested on 3.4, 3.5, 3.6 and 3.7)
* flake8 or pycodestyle
Licence
-------
BSD license