Skip to main content

Checks for click, by r2c. Available in [Bento](

Project description


Flake8 plugin for detecting Click best practices, by r2c. Available by default alongside other great tools in Bento.


  • 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


$ 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)


$ flake8 --select=r2c-click /path/to/code

Project details

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 hashes)

Uploaded source

Built Distribution

flake8_click-0.3.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page