Skip to main content

Flake8 linter for the Click module

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

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


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

Uploaded Source

Built Distribution

flake8_click-0.2.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8-click-0.2.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.3 Darwin/18.7.0

File hashes

Hashes for flake8-click-0.2.5.tar.gz
Algorithm Hash digest
SHA256 40cbfbab670e6e23444f8547fbce5ca6b377d3564d33eed91eeae7ee4acff68b
MD5 9b5dffd8ab2d3747c09b6be05d5ef1e0
BLAKE2b-256 500003c5c50abb3f49cc89fbe95442389e3eeb6c34c49208ce369a63a0a5dfe5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flake8_click-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.3 Darwin/18.7.0

File hashes

Hashes for flake8_click-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 82ddc2f9bfe45fc4e143875a90fbfede2c75a484236b643e4545f64dbb445d06
MD5 8e6675152806612ab75c8fc682596c8c
BLAKE2b-256 31044588480a3722c5b2bf87c55636d8fac66b1a51f0071d31bd4053a2ea2a1b

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