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.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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1134b19e9be5b8a608b5097f65ab81b2d029509e4dbf1c093ecc5d449fbba0cc |
|
MD5 | 30787dbfb6dd8bf00392c971c783b262 |
|
BLAKE2b-256 | 963457fc4427321f95093a07afd1af2f18fefcadc3fcb7640a79b6a4929e3720 |
Close
Hashes for flake8_unused_arguments-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e71dac90cdf3476aabe5d56f791957ce4e075cbda9b10f94c3000168b5f637c |
|
MD5 | d5c69f0d269fa4a4aab04d575cc5da6a |
|
BLAKE2b-256 | 964ad964e9b87b3f864970c5c0d294262f48e478c8be923affffbed2f9645a9c |