flake8-variables-names


Nameflake8-variables-names JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/best-doctor/flake8-variables-names
SummaryA flake8 extension that helps to make more readable variables names
upload_time2023-06-22 12:43:22
maintainer
docs_urlNone
authorIlya Lebedev
requires_python>=3.7
licenseMIT
keywords flake8 naming
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # flake8-variables-names

[![Build Status](https://github.com/best-doctor/flake8-variables-names/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/best-doctor/flake8-variables-names/actions/workflows/build.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/c7502e578af3f4437179/maintainability)](https://codeclimate.com/github/best-doctor/flake8-variables-names/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/c7502e578af3f4437179/test_coverage)](https://codeclimate.com/github/best-doctor/flake8-variables-names/test_coverage)
[![PyPI version](https://badge.fury.io/py/flake8-variables-names.svg)](https://badge.fury.io/py/flake8-variables-names)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-variables-names)

An extension for flake8 that helps to make more readable variables names.

We believe, that variable name should unmistakably shows, what it contains.
Thats why we try not to use varnames with only one symbol or not to use
too common names, such as `result`, `value` or `info`.

This extensions helps to detect such names. By default it works in
non-strict mode. You can change it with `--use-varnames-strict-mode`
parameter end extend variable names blacklist even more.

## Installation

```terminal
pip install flake8-variables-names
```

## Example

Sample file:

```python
# test.py

a = 1
foo = 2
result = a + foo
```

Usage:

```terminal
$ flake8 test.py
test.py:1:1: VNE001 single letter variable names are not allowed
test.py:2:1: VNE002 variable name should be clarified
```

## Error codes

| Error code |                          Description                    |
|:----------:|:-------------------------------------------------------:|
|   VNE001   | single letter variable names like 'XXX' are not allowed |
|   VNE002   | variable name 'XXX' should be clarified                 |
|   VNE003   | variable names that shadow builtins are not allowed     |

## Contributing

We would love you to contribute to our project. It's simple:

- Create an issue with bug you found or proposal you have.
  Wait for approve from maintainer.
- Create a pull request. Make sure all checks are green.
- Fix review comments if any.
- Be awesome.

Here are useful tips:

- You can run all checks and tests with `make check`.
  Please do it before CI does.
- We use [BestDoctor python styleguide](https://github.com/best-doctor/guides/blob/master/guides/en/python_styleguide.md).
- We respect [Django CoC](https://www.djangoproject.com/conduct/).
  Make soft, not bullshit.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/best-doctor/flake8-variables-names",
    "name": "flake8-variables-names",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "flake8 naming",
    "author": "Ilya Lebedev",
    "author_email": "melevir@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6a/4f/a04c504e1cc53a17f296837cc98140707b45f2deaad6d3e34503c161a3b0/flake8_variables_names-0.0.6.tar.gz",
    "platform": null,
    "description": "# flake8-variables-names\n\n[![Build Status](https://github.com/best-doctor/flake8-variables-names/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/best-doctor/flake8-variables-names/actions/workflows/build.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/c7502e578af3f4437179/maintainability)](https://codeclimate.com/github/best-doctor/flake8-variables-names/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/c7502e578af3f4437179/test_coverage)](https://codeclimate.com/github/best-doctor/flake8-variables-names/test_coverage)\n[![PyPI version](https://badge.fury.io/py/flake8-variables-names.svg)](https://badge.fury.io/py/flake8-variables-names)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-variables-names)\n\nAn extension for flake8 that helps to make more readable variables names.\n\nWe believe, that variable name should unmistakably shows, what it contains.\nThats why we try not to use varnames with only one symbol or not to use\ntoo common names, such as `result`, `value` or `info`.\n\nThis extensions helps to detect such names. By default it works in\nnon-strict mode. You can change it with `--use-varnames-strict-mode`\nparameter end extend variable names blacklist even more.\n\n## Installation\n\n```terminal\npip install flake8-variables-names\n```\n\n## Example\n\nSample file:\n\n```python\n# test.py\n\na = 1\nfoo = 2\nresult = a + foo\n```\n\nUsage:\n\n```terminal\n$ flake8 test.py\ntest.py:1:1: VNE001 single letter variable names are not allowed\ntest.py:2:1: VNE002 variable name should be clarified\n```\n\n## Error codes\n\n| Error code |                          Description                    |\n|:----------:|:-------------------------------------------------------:|\n|   VNE001   | single letter variable names like 'XXX' are not allowed |\n|   VNE002   | variable name 'XXX' should be clarified                 |\n|   VNE003   | variable names that shadow builtins are not allowed     |\n\n## Contributing\n\nWe would love you to contribute to our project. It's simple:\n\n- Create an issue with bug you found or proposal you have.\n  Wait for approve from maintainer.\n- Create a pull request. Make sure all checks are green.\n- Fix review comments if any.\n- Be awesome.\n\nHere are useful tips:\n\n- You can run all checks and tests with `make check`.\n  Please do it before CI does.\n- We use [BestDoctor python styleguide](https://github.com/best-doctor/guides/blob/master/guides/en/python_styleguide.md).\n- We respect [Django CoC](https://www.djangoproject.com/conduct/).\n  Make soft, not bullshit.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A flake8 extension that helps to make more readable variables names",
    "version": "0.0.6",
    "project_urls": {
        "Homepage": "https://github.com/best-doctor/flake8-variables-names"
    },
    "split_keywords": [
        "flake8",
        "naming"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3ae8845c33c7ac0f6c495c5cbcfebc6a281b28017570f2edea65b24daaed47f0",
                "md5": "a38953e0328dd3302cfd97d825857d3c",
                "sha256": "4aff935d54b3f7afcd026b4dae55029877bd05a7c507b294b45bc7bf577d7b47"
            },
            "downloads": -1,
            "filename": "flake8_variables_names-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a38953e0328dd3302cfd97d825857d3c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 6051,
            "upload_time": "2023-06-22T12:43:20",
            "upload_time_iso_8601": "2023-06-22T12:43:20.716108Z",
            "url": "https://files.pythonhosted.org/packages/3a/e8/845c33c7ac0f6c495c5cbcfebc6a281b28017570f2edea65b24daaed47f0/flake8_variables_names-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6a4fa04c504e1cc53a17f296837cc98140707b45f2deaad6d3e34503c161a3b0",
                "md5": "c676dcf29fba5b7647b608972fdec251",
                "sha256": "292c50e4813d632aa3adcd02c185e7bb583f5fc8ebe02e70f13c958bfe46ad91"
            },
            "downloads": -1,
            "filename": "flake8_variables_names-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "c676dcf29fba5b7647b608972fdec251",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5343,
            "upload_time": "2023-06-22T12:43:22",
            "upload_time_iso_8601": "2023-06-22T12:43:22.427259Z",
            "url": "https://files.pythonhosted.org/packages/6a/4f/a04c504e1cc53a17f296837cc98140707b45f2deaad6d3e34503c161a3b0/flake8_variables_names-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-22 12:43:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "best-doctor",
    "github_project": "flake8-variables-names",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "flake8-variables-names"
}
        
Elapsed time: 0.07880s