Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-logging-arg-count-0.3.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

flake8_logging_arg_count-0.3.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file flake8-logging-arg-count-0.3.0.tar.gz.

File metadata

File hashes

Hashes for flake8-logging-arg-count-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5f797fb8ac827c055bfb7f6cac3116c35feaf2585cf7b9ea386bfd0c6ffd2988
MD5 16e61ec92587c122a0199bafb923b3d8
BLAKE2b-256 ef84f409bcb8a0284ecf6c9006361b788901e7fb1b966da240f74d2fcf642da4

See more details on using hashes here.

File details

Details for the file flake8_logging_arg_count-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_logging_arg_count-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a724ac329a3d1032efcce318bd627c30e9ec7fc9023faf192852a846706d425f
MD5 c9b030182994dc6d89b56dda8a08450b
BLAKE2b-256 eb6e8f684dfde293b2c735861256ce7929808f41b1114bbc6c1011ce9657fa0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page