flake8-tuple
Check code for 1 element tuple.
Decision gist · record as of 2026-08-14
Yes, if you are actively using flake8 and want to catch one-element tuple mistakes. The plugin is simple, has no dependencies, and the check it performs is narrow and useful. However, be aware that it is abandoned and may not work with very recent Python or flake8 versions—test it in your environment first.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires flake8 or pycodestyle to be installed; the plugin integrates as a flake8 extension.
- Installation is straightforward with no runtime dependencies.
- However, the package is abandoned—last release was 2019-12-05 and last commit 2021-10-17—so it will not receive updates for newer Python versions or flake8 API changes.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, allowing use in most projects without restriction.
last release 2019-12-05 (2444 days) · last repo commit 2021-10-17 · 24 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 140,521 downloads/mo, #11,270 on PyPI
Alternatives
Verify before relying
pip install flake8-tuple
Then run flake8 on your code:
flake8 --version
The output will show flake8-tuple is loaded. Code like `foo = 123,` will trigger warning T801.- Whether the plugin remains compatible with current flake8 versions given the lack of maintenance since 2021.
- Whether false positives mentioned in the changelog have been fully resolved.
What it is and what it does
flake8-tuple is a linter plugin for flake8 that catches a specific Python syntax mistake: one-element tuples created by accident. In Python, writing `foo = 123,` creates a tuple instead of assigning a plain integer, and this plugin detects such cases and reports them as warning T801. It integrates directly into flake8's checking pipeline, so once installed, it runs automatically alongside other flake8 checks.
The plugin has no runtime dependencies beyond flake8 itself and installs as a pure Python wheel. It was last updated in December 2019 and is no longer actively maintained, though the repository remains public and unfixed issues may still exist in edge cases.
Use it for
- Catch accidental one-element tuple assignments in code review or CI pipelines using flake8.
- Enforce consistent tuple syntax in Python codebases to prevent subtle bugs from trailing commas.
- Add tuple-specific linting rules to an existing flake8 setup without installing additional tools.
- Identify legacy code that may have unintended tuple assignments from typos or refactoring mistakes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are actively using flake8 and want to catch one-element tuple mistakes.
The plugin is simple, has no dependencies, and the check it performs is narrow and useful. However, be aware that it is abandoned and may not work with very recent Python or flake8 versions—test it in your environment first.
Install
flake8-tuple on PyPI
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—last release was 2019-12-05 and last commit 2021-10-17—so it will not receive updates for newer Python versions or flake8 API changes.
Requires flake8 or pycodestyle to be installed; the plugin integrates as a flake8 extension.
License in practice
BSD license is permissive, allowing use in most projects without restriction.
Quickstart
pip install flake8-tuple
Then run flake8 on your code:
flake8 --version
The output will show flake8-tuple is loaded. Code like `foo = 123,` will trigger warning T801.
Verify before relying
- Whether the plugin remains compatible with current flake8 versions given the lack of maintenance since 2021.
- Whether false positives mentioned in the changelog have been fully resolved.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,444 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 140,521 / month, #11,270 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7 |
Evidence: flake8_tuple-0.4.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flake8 plugin tuple detection”
- flake8-tupleA flake8 plugin that detects unintended one-element tuples in Python…
- flake8-picky-parenthesesA flake8 plugin that detects and reports redundant parentheses,…
- flake8-annotations-complexityA flake8 plugin that flags type annotations exceeding configurable…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also flake8 · flake8-blind-except · flake8-polyfill · flake8-bugbear · flake8-comprehensions · flake8-commas · flake8-pyi · flake8-executable · pytest-flake8 · pep8-naming