flake8 extension to warn on unused function arguments
Project description
flake8-unused-arguments
A flake8 plugin that checks for unused function arguments.
This package adds the following warnings:
U100
- An unused argument.U101
- An unused argument starting with an underscore
Configuration options also exist:
unused-arguments-ignore-abstract-functions
- don't show warnings for abstract functions.unused-arguments-ignore-stub-functions
- don't show warnings for empty functions.unused-arguments-ignore-variadic-names
- don't show warnings for unused *args and **kwargs.
Changelog
0.0.8
- Whoops, report the right version when using flake8 --help.
0.0.7
- The first unused argument in a @classmethod decorated function wasn't properly detected. Thanks to Sebastian Dietrich for contributing the fix!
0.0.6
- Stub functions that have docstrings are now correctly detected as stub functions
- Functions with only a docstring are considered stub functions
0.0.5
- The positions reported are now for the arguments themselves, rather than the function
0.0.4
- Wrong project name in the readme, whoopsies
0.0.3
- treat functions that start with "raise NotImplementedError()" as stub functions
0.0.2
- fixed error in packaging
0.0.1
- initial release
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
Built Distribution
Close
Hashes for flake8-unused-arguments-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 112df1ae775c93db828f3288bff5a326d8bda3ed4baf1b8877241ecd9ab4fe7a |
|
MD5 | 0e331eb1cb517146d380a1079c0b01e1 |
|
BLAKE2b-256 | 3b6e9c2d254d8f72477ff28dcc4a88bd48d9c10a6551b4ba8964eae2a0aff806 |
Close
Hashes for flake8_unused_arguments-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87cb011bb0accb6edb894f4301665635caad24ca803e8fb6d44398bf69a35230 |
|
MD5 | fc03040d4a987099cac1b9923d243a80 |
|
BLAKE2b-256 | 71f956f66267b40a8363f3bb2f6bfb14c2b1afcfb7fee7883368f6acfb8072b5 |