A flake8 plugin for detecting logging statements with mismatched argument counts
Project description
flake8-logging-arg-count
flake8 plugin that checks if the number of arguments is inline with the number of %s
placeholders.
- For example:
-
This is OK
logging.warning('My message %s', x)
-
These will trigger
LAC101
logging.warning('My message %s', x, y)
logging.warning('My message %s %s', x)
-
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
File details
Details for the file flake8-logging-arg-count-0.3.0.tar.gz
.
File metadata
- Download URL: flake8-logging-arg-count-0.3.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f797fb8ac827c055bfb7f6cac3116c35feaf2585cf7b9ea386bfd0c6ffd2988 |
|
MD5 | 16e61ec92587c122a0199bafb923b3d8 |
|
BLAKE2b-256 | ef84f409bcb8a0284ecf6c9006361b788901e7fb1b966da240f74d2fcf642da4 |
File details
Details for the file flake8_logging_arg_count-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: flake8_logging_arg_count-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a724ac329a3d1032efcce318bd627c30e9ec7fc9023faf192852a846706d425f |
|
MD5 | c9b030182994dc6d89b56dda8a08450b |
|
BLAKE2b-256 | eb6e8f684dfde293b2c735861256ce7929808f41b1114bbc6c1011ce9657fa0b |