skillfed

flake8-variables-names

A flake8 extension that helps to make more readable variables names

flake8-variables-names v0.0.6 434.0K downloads/30d#6,699 on PyPI53
Permissive license MIT DORMANT released

What it is and what it does

flake8-variables-names is a flake8 plugin that enforces variable naming standards by catching names that are too vague or too short to be self-documenting. It detects three categories of problems: single-letter variable names (VNE001), generic names like 'result', 'value', or 'info' (VNE002), and names that shadow Python builtins (VNE003). The tool runs in non-strict mode by default but can be switched to strict mode with a command-line flag to apply a more aggressive blacklist.

The package has no runtime dependencies and integrates directly into your flake8 workflow. It's designed around the philosophy that variable names should clearly indicate what they contain, making code more readable without requiring additional comments. It supports Python 3.7 through 3.10 and is stable enough for production use, though development has been dormant since mid-2023.

Use it for:

  • Enforce consistent naming standards across a team codebase to improve code readability.
  • Catch accidental single-letter or generic variable names during code review automation.
  • Detect when new code shadows Python builtins, preventing subtle bugs.
  • Gradually migrate a legacy codebase toward clearer naming conventions.
  • Configure strict mode for high-standards projects where variable clarity is critical.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A flake8 extension that detects poorly named variables by flagging single-letter names, overly generic names like 'result' or 'value', and names that shadow Python builtins.

Yes, if you use flake8 and want to enforce readable variable names. Installation is frictionless, there are no dependencies, and the MIT license poses no restrictions. The dormant status is not a concern—the plugin is stable and does one thing well. Install it if your team values explicit variable naming; skip it if you prefer flexibility in naming conventions or use a different linter.

Install

flake8-variables-names on PyPI

pip

pip install flake8-variables-names

uv

uv add flake8-variables-names

poetry

poetry add flake8-variables-names

Installing flake8-variables-names

Before you install

Installation is straightforward with no runtime dependencies. The package is dormant (last commit 2024-06-28, 1149 days since last release), but the repository remains active and unarchived, suggesting stable maintenance rather than abandonment.

License in practice

MIT license is permissive, allowing use in commercial and private projects with minimal restrictions—only requiring preservation of the license notice.

Quickstart

pip install flake8-variables-names

Then run flake8 on your code:
flake8 your_file.py

Or enable strict mode:
flake8 --use-varnames-strict-mode your_file.py

Requires flake8 to be installed; this is a plugin that extends flake8, not a standalone tool.

Verify before relying

  • Whether the strict mode blacklist is documented or customizable beyond the flag.
  • Current compatibility with recent flake8 versions (last release was 2023-06-22).
  • Whether VNE error codes can be selectively ignored or configured per project.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance dormant — 1,149 days since the last release
Last repo commit
First released
Downloads 433,987/month — #6,699 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: flake8_variables_names-0.0.6-py3-none-any.whl

Keywords: flake8, naming

Environment :: ConsoleOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: DocumentationTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Quality Assurance

Tags

flake8 variable naming rulesdetect poor variable namesenforce variable name claritysingle letter variable detectionflake8 naming convention pluginvariable name linterbuiltin shadowing detection
flake8-plugincode-qualitynaming-conventions

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

flake8-builtins

A flake8 plugin that detects when Python…

copyleft · top 5,000 on PyPI

pep8-naming

A flake8 plugin that checks Python code for…

permissive · top 5,000 on PyPI

html-tag-names

Provides a curated list of valid HTML tag names…

copyleft · top 15,000 on PyPI

html-void-elements

Provides a list of HTML void element tag names…

copyleft · top 15,000 on PyPI

flake8-functions

A flake8 extension that enforces function-level…

permissive · top 15,000 on PyPI

flake8-annotations-complexity

A flake8 plugin that flags type annotations…

permissive · top 15,000 on PyPI

flake8-expression-complexity

A flake8 extension that detects overly complex…

permissive · top 15,000 on PyPI

flake8-logging

A Flake8 plugin that detects and flags common…

permissive · top 15,000 on PyPI

flake8-cognitive-complexity

A flake8 extension that checks Python code for…

permissive · top 15,000 on PyPI

flake8-fixme

A flake8 plugin that detects and flags…

permissive · top 15,000 on PyPI