Skip to main content

Check code for 1 element tuple.

Project description

https://img.shields.io/travis/ar4s/flake8_tuple.svg https://img.shields.io/pypi/v/flake8_tuple.svg

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, 3.6 and 3.7)

  • flake8 or pycodestyle

Licence

BSD license

History

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.

Project details


Download files

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

Source Distribution

flake8_tuple-0.4.0.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file flake8_tuple-0.4.0.tar.gz.

File metadata

  • Download URL: flake8_tuple-0.4.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for flake8_tuple-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8d41db2e4a5320ffd29cf78a95f1d7da9f22b47949427a4d7f8391333eec2a15
MD5 873ac452e3ad0f6a01b7ab596d086a07
BLAKE2b-256 613d704e06f7a04ba56ece965601e927845141d3a0236e617417e5d56c99c3e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page