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-overload-functions- don't show warnings for overload functions.unused-arguments-ignore-override-functions- don't show warnings for overridden 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.unused-arguments-ignore-lambdas- don't show warnings for all lambdas.unused-arguments-ignore-nested-functions- don't show warnings for nested functions. Only show warnings for functions in the top level of a module, or methods of a class in the top level of a module.unused-arguments-ignore-dunder- don't show warnings for double-underscore methods. These methods implement or override native builtin methods which have a specific signature. Therefore arguments must always be present. This is the case of methods like__new__,__init__,__getitem__,__setitem__,__reduce_ex__,__enter__,__exit__, etc.
Changelog
0.0.14
- Fixed compatibility with Python 3.14. Thanks to John T. Wodder II for contributing the fix!
0.0.13
- Added a new option for ignoring functions decorated with the override decorator. Thanks to Thomas M Kehrenberg for contributing this!
0.0.12
- Fixed an issue causing flake8 --help to break. Thanks to Calum Young for contributing this fix!
- Starting from this release, automated CI runs on each Github PR. Thanks again to Calum Young for contributing this work!
0.0.11
- Added a new option for ignoring functions decorated with overload.
- Added a new option for ignoring dunder methods (double-underscore) methods.
0.0.10
- Added new options for ignoring lambdas and nested functions. Thanks to João Eiras for contributing these!
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
Release files for flake8-unused-arguments 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flake8_unused_arguments-0.0.14.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flake8_unused_arguments-0.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / flake8_unused_arguments-0.0.14.tar.gz
| Download URL | flake8_unused_arguments-0.0.14.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b6cac6ecb325c0d5460edc6c52e2861c146eca03ddedc36dcb32beafeacbbec
|
|
BLAKE2b-256 checksum How to use checksums |
1b6a12e072814ac64c4ed18c039738d97e7326df1352f696f16872aa0cea482c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / flake8_unused_arguments-0.0.14-py3-none-any.whl
| Download URL | flake8_unused_arguments-0.0.14-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c0b7ce7236a156f4bd90adec67ad0e5d0139efcd15c2a1fc0fb3a6ffd7e435e
|
|
BLAKE2b-256 checksum How to use checksums |
b30b1d658aca231a3e4b3c0b9e7fed71ced551cbfd955a41cfd32b221b396edc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|