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.4.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flake8_logging_arg_count-0.4.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file flake8_logging_arg_count-0.4.1.tar.gz.

File metadata

File hashes

Hashes for flake8_logging_arg_count-0.4.1.tar.gz
Algorithm Hash digest
SHA256 02f8c98ef9c7422efbb77e2de8f9afd40134d4e20b70fc286aeac75b9d775e39
MD5 c57a72d7439c602f1478e215a527685f
BLAKE2b-256 40947702ef5106ac0c8a32222acf57ccaee71d55c40d2246eb4ebd694adfcf8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flake8_logging_arg_count-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e955313d75c0fe213bb8c0562f47e4c23558650d4e2f913db1fd7a9906008dd4
MD5 6761104d5349e92b7f2fb71f0a2c1a79
BLAKE2b-256 fa1173f07d014d8067e263aad7ab0115f643c8529f43a6d4fb47b06d1bde304a

See more details on using hashes here.

Supported by

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