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
Built Distribution
Close
Hashes for flake8-keyword-params-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e34ee153126828fc04ef3f9cc79a7c0aa856de54587c8bfc51a314e3dd03ac7 |
|
MD5 | f58355704e3bfb30f1ea0ce00b432fd2 |
|
BLAKE2b-256 | f535b2848a21555f55e0de3c850cb1af2e074d29a0255c6fe26730415d9c9b19 |
Close
Hashes for flake8_keyword_params-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c973f8bf080dfcab5448cfee273476a782127034783535831212ffd13dd88ada |
|
MD5 | dd2edf28afb563dab0875be19d8d8e11 |
|
BLAKE2b-256 | f7f21411d7648aa710c86f40f56d2d71651e1df4344e511de7d9429200384163 |