Skip to main content

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

Metadata

Release files for flake8-click 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-click 0.2.5
File Size Uploaded Provenance Actions
flake8-click-0.2.5.tar.gz 4.1 kB Without provenance Details for flake8-click-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-click 0.2.5
File Interpreter ABI Platform Actions
flake8_click-0.2.5-py3-none-any.whl Python 3 none any Details for flake8_click-0.2.5-py3-none-any.whl

Total release size: 8.7 kB

Release files / flake8-click-0.2.5.tar.gz

Download URL flake8-click-0.2.5.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
40cbfbab670e6e23444f8547fbce5ca6b377d3564d33eed91eeae7ee4acff68b
BLAKE2b-256 checksum
How to use checksums
500003c5c50abb3f49cc89fbe95442389e3eeb6c34c49208ce369a63a0a5dfe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.3 Darwin/18.7.0

Release files / flake8_click-0.2.5-py3-none-any.whl

Download URL flake8_click-0.2.5-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82ddc2f9bfe45fc4e143875a90fbfede2c75a484236b643e4545f64dbb445d06
BLAKE2b-256 checksum
How to use checksums
31044588480a3722c5b2bf87c55636d8fac66b1a51f0071d31bd4053a2ea2a1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.3 Darwin/18.7.0

Security for flake8-click 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page