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-tupleVerified import paths — ran on the pinned version, not inferred.
Install the plugin and run flake8. The plugin automatically registers checks TUPLE100.
Use other tools like pylint or mypy for comprehensive tuple checks.
Upgrade flake8 to >=3.0.0 and upgrade flake8-tuple to >=0.4.0.
Do not import anything explicitly; just install flake8-tuple and run flake8.
Ensure flake8>=3.0.0 and install flake8-tuple: pip install flake8-tuple --upgrade