Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
flake8-variables-names
Advanced tools
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.
pip install flake8-variables-names
Sample file:
# test.py
a = 1
foo = 2
result = a + foo
Usage:
$ 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 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 |
We would love you to contribute to our project. It's simple:
Here are useful tips:
make check
.
Please do it before CI does.FAQs
A flake8 extension that helps to make more readable variables names
We found that flake8-variables-names demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.