Metadata-Version: 2.1
Name: flake8-click
Version: 0.3.0
Summary: Checks for click, by r2c. Available in [Bento](https://bento.dev).
Home-page: https://bento.dev
Author: R2C
Author-email: hello@returntocorp.com
Requires-Python: >=3.6,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: attrs
Requires-Dist: click (>=7.0,<8.0)
Requires-Dist: flake8 (>=3.7,<4.0)
Requires-Dist: libcst (>=0.2.4,<0.3.0)
Description-Content-Type: text/markdown

# click-linter

Flake8 plugin for detecting click best practices

## Checks

- `r2c-click-option-function-argument-check`: missing argument for `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

```
$ python -m pip install flake8-click
```

_Specify `python2` or `python3` to install for a specific Python version._

And double check that it was installed correctly:

```
$ python -m flake8 -h
Usage: flake8 [options] file file ...

...

Installed plugins: flake8-click : 0.1.0, mccabe: 0.5.3, pycodestyle: 2.2.0, pyflakes: 1.3.0
```

Note the `flake8-click: 0.1.0`.

## Using

Click best practices is a flake8 plugin. You can easily use this plugin by

```
$ python -m flake8 --select=CLC /path/to/code
```

## Testing

```
$ pytest
```

