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.9
- Check nested functions.
- Don't crash if an attribute is used in a raise statement.
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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80e437b126a441ba048dfc9f01987fbec1ea8521e65c00681aecdf4c466fa27b |
|
MD5 | 2af8b143c751de4b559a1abb629a4178 |
|
BLAKE2b-256 | b9cc60c0bfdc280b69748ffbb9624efe6f2a8067ce8c734e93a019ebaba5905c |
Close
Hashes for flake8_unused_arguments-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3b02aa5379e2edc7a3fc98e4bd12b2febf0573131a12fb7d698c04c0a8effda |
|
MD5 | a518d2cd24f01c6bcbd00760068a4386 |
|
BLAKE2b-256 | a4c25e8626f541e5402a6fcace10b13e89ac5493df2545876acf69a8ec88662d |