flake8-click-0.3.1
توضیحات
Checks for click, by r2c. Available in [Bento](https://bento.dev).
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flake8-click-0.3.1 |
| نام | flake8-click |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | R2C |
| ایمیل نویسنده | hello@returntocorp.com |
| آدرس صفحه اصلی | https://bento.dev |
| آدرس اینترنتی | https://pypi.org/project/flake8-click/ |
| مجوز | - |
# flake8-click
Flake8 plugin for detecting [Click](https://click.palletsprojects.com/en/7.x/) best practices, by [r2c](https://r2c.dev). Available by default alongside other great tools in [Bento](https://bento.dev).
## Checks
- `r2c-click-option-function-argument-check`: missing a matching function argument for options defined with `click.option`
- `r2c-click-names-are-well-formed`: checks for
- click option name does not begin with '-'
- click argument name begins with '-'
- click parameter is missing name
- `r2c-click-launch-uses-literal`: `click.launch` may be called with user input, leading to a security
vulnerability
## Installing
```console
$ pip install flake8-click
```
_Specify `python2` or `python3` to install for a specific Python version._
And double check that it was installed correctly:
```console
$ flake8 --version
3.7.9 (flake8-click: 0.2.5, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1)
```
## Usage
```console
$ flake8 --select=r2c-click /path/to/code
```
نیازمندی
| مقدار | نام |
|---|---|
| - | attrs |
| >=3.7,<4.0 | flake8 |
| >=0.2.4,<0.3.0 | libcst |
| >=7.0,<8.0 | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl flake8-click-0.3.1:
pip install flake8-click-0.3.1.whl
نصب پکیج tar.gz flake8-click-0.3.1:
pip install flake8-click-0.3.1.tar.gz