Skip to main content

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

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.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

flake8_click-0.3.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file flake8-click-0.3.0.tar.gz.

File metadata

  • Download URL: flake8-click-0.3.0.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

Hashes for flake8-click-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9272c737766cf7e3895005397dba483503b3503bfcfa246a8fb7ca72e065bd86
MD5 f8d44eb6f80fc5b3783998ca622a7d60
BLAKE2b-256 27010b8a2256f860ba3418f5644de21cc47a3b32ee5df72248b90c9433018b94

See more details on using hashes here.

File details

Details for the file flake8_click-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: flake8_click-0.3.0-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

Hashes for flake8_click-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d8680893aafdaf042e3008a70a15895e8ba24f913e7014f930f2649ca740eef
MD5 ff1269d4739cbac6f2336ec05c305ee8
BLAKE2b-256 a48cbcf138e0c5d07516eca47325a10d3024d1c2538ec33c2b98ac5f9662d44d

See more details on using hashes here.

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