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.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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0fd04f269fb8445787dfa8812cf0529e0a4e0857aace2f4d7796fb852c14814 |
|
MD5 | 9edfc0bb1caace2249a89f5a06b3ed72 |
|
BLAKE2b-256 | d2c611c1bf828f7009de3096bc4f3bcc62120ceb6de427b089cc2084801e710a |
Close
Hashes for flake8_unused_arguments-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145a0cf32ab553c7c01688257d905df814bb6922d8b84c945300bb75b12f1a0a |
|
MD5 | 92e69ec3ad25005127139b55ed19ed48 |
|
BLAKE2b-256 | bf74944e09dab4709a5e9d02c631d128969f87dbe71bd43bbfd2244fd9d848a0 |