This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Check code for 1 element tuple.

Project Description

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:

$ 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 and 3.6)
  • flake8 or pycodestyle

Licence

BSD license

History

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.
Release History

Release History

This version
History Node

0.2.13

History Node

0.2.12

History Node

0.2.11

History Node

0.2.10

History Node

0.2.9

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
flake8_tuple-0.2.13.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Apr 30, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting