Checks for click, by r2c. Available in [Bento](https://bento.dev).
Project description
flake8-click
Flake8 plugin for detecting Click best practices, by r2c. Available by default alongside other great tools in Bento.
Checks
r2c-click-option-function-argument-check
: missing a matching function argument for options defined withclick.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
$ pip install flake8-click
Specify python2
or python3
to install for a specific Python version.
And double check that it was installed correctly:
$ flake8 --version
3.7.9 (flake8-click: 0.2.5, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1)
Usage
$ flake8 --select=r2c-click /path/to/code
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.1.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file flake8-click-0.3.1.tar.gz
.
File metadata
- Download URL: flake8-click-0.3.1.tar.gz
- Upload date:
- Size: 4.8 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 | adfdeecabe99c8664b9384e3c27f354dcbd7c4183dea90e48d71ffab8ee26664 |
|
MD5 | 647d0abf6b514284e71d768bbd6e1804 |
|
BLAKE2b-256 | 035fedc646bb9a3ba44570180ff140af6f9347d49fbd443664290f68d291bc9d |
File details
Details for the file flake8_click-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: flake8_click-0.3.1-py3-none-any.whl
- Upload date:
- Size: 5.1 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 | 9aa68dae25102de7ec70056e1e9ef3f62ff51c5c218dd6fef818b14df27979b2 |
|
MD5 | 675b24eafee09ebfabc40715a356e9bd |
|
BLAKE2b-256 | 4b5bd6020316918d008e58f99adad24c7448ad6f71e5fb01bc09e23be5bebc10 |