Skip to main content

Flake8 keyword parameter validation

Project description

flake8-keyword-params

flake8 plugin to require that optional parameters are keyword-only.

Installation

Standard python package installation:

pip install flake8-keyword-params

Options

keyword-params-include-name : Include plugin name in messages

keyword-params-no-include-name : Do not include plugin name in messages (default setting)

All options may be specified on the command line with a -- prefix, or can be placed in your flake8 config file.

Error Codes

Code Message
KWP001 Optional parameter 'param' should be keyword only

Examples

def foo(x = None):  <-- KWP001

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-keyword-params-1.0.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

flake8_keyword_params-1.0.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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