Registry / testing / flake8-tuple

flake8-tuple

JSON →
library0.4.1pypypi✓ verified 91d ago

Flake8 plugin that checks for 1-element tuples written as `x,` instead of `(x,)`, and other tuple-related style issues. Version 0.4.1, stable but rarely updated.

pip install flake8-tuple
INSTALL
IMPORT
SIG · FLAKE8-TUPLE
F
flake8-tuple
testingpythonv0.4.1
Install
1.8s avg
Import
91ms
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.4.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.094s · 19.4MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.8s · import 0.088s · 20MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

flake8_tuple
✓ import flake8_tuple
Plugin auto-loads when installed; no explicit import needed for flake8 users

Install the plugin and run flake8. The plugin automatically registers checks TUPLE100.

pip install flake8-tuple # Then run flake8 on your Python files: flake8 mymodule.py
Debug
Known issues
gotchaPlugin only registers one check code: TUPLE100 (1-element tuple). It does not check for other tuple pitfalls.
fix
Use other tools like pylint or mypy for comprehensive tuple checks.
affects: all
gotchaThe plugin requires flake8 version 3.0.0 or later due to new plugin registration API.
fix
Upgrade flake8 to >=3.0.0 and upgrade flake8-tuple to >=0.4.0.
affects: <0.4.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'flake8.tuple'
Incorrect import: trying to import flake8.tuple instead of flake8_tuple.
fix
Do not import anything explicitly; just install flake8-tuple and run flake8.
flake8: TUPLE100 not reported
Plugin not installed or flake8 version too old (<3.0.0).
fix
Ensure flake8>=3.0.0 and install flake8-tuple: pip install flake8-tuple --upgrade
Upgrade
Version history
0.4.1latest on PyPI · released Nov 15, 2020
Audit
Dependencies
flake8requiredRuns as a flake8 plugin
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
flake8-tuple — pip install flake8-tuple · libregistry