Flake8 plugin to check explicitly passed arguments.
Project description
Flake8 plugin to check explicitly passed arguments.
Getting Started
Disclaimer
Installation
Install using pip3:
$ pip3 install flake8-kw-args
Usage
Command line interface
Run flake8:
$ flake8 [options] file file ...
Examples
If there is no error the output is empty:
$ cat example.py
def get_user(name, surname):
pass
get_user(name='Daniel', surname='Jenkins')
$ flake8 example.py
If there is an error the output is has error message indicating the file, line and column where the error was found:
$ cat example.py
def get_user(name, surname):
pass
get_user(name='Daniel', 'Jenkins')
$ flake8 example.py
example.py:4:24: KWA: argument not passed by keyword.
Development
Clone the project
To start working with the project, clone it with the following commands.
$ git clone git@github.com:casafari/flake8-kw-args.git
$ cd flake-kw-args
Tests
Install it with pip3:
$ pip3 install tox
Now you can run the tests by with tox.
$ tox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-kw-args-0.0.3.tar.gz
(3.6 kB
view details)
File details
Details for the file flake8-kw-args-0.0.3.tar.gz.
File metadata
- Download URL: flake8-kw-args-0.0.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34a43ad46905b6a558f17155166147a965781898f09e8cce79923f0d02cb8b28
|
|
| MD5 |
602c8e9931ad9365d8526a173dc7690a
|
|
| BLAKE2b-256 |
fd53455c6f28db640ddbeb9085d1f15a261cb7808321c09ab1812e032c3d9a9c
|