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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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