Checks for click, by r2c. Available in [Bento](https://bento.dev).
Project description
click-linter
Flake8 plugin for detecting click best practices
Checks
r2c-click-option-function-argument-check
: missing argument forclick.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-click-0.3.0b1.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file flake8-click-0.3.0b1.tar.gz
.
File metadata
- Download URL: flake8-click-0.3.0b1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.6 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d47b2cb3ecc7d65c554c2a2318d98daf8467423004cfc3efc43d8c1f75e98742 |
|
MD5 | c29ed041e09240c7c15931e632a939bf |
|
BLAKE2b-256 | d7ac2248592f3a6bffd310c3b7cc59dae4b7f98579b526af2f4cc8af66c02ab8 |
File details
Details for the file flake8_click-0.3.0b1-py3-none-any.whl
.
File metadata
- Download URL: flake8_click-0.3.0b1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.6 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8999c9ae2fcf2432b814dda6fc67fcdada3a989870c48f2e50ea32126106117f |
|
MD5 | c51cdeda655b6d2368a867f01eedad04 |
|
BLAKE2b-256 | 059f3b0d937e5c6bdeeab5b66e79d71cd4e565e739f6d3dc0cdaaaf4de3714ca |