diff options
author | Julthep Nandakwang <julthep@nandakwang.com> | 2022-06-25 14:54:01 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 09:54:01 +0200 |
commit | e3d13c8884d22b80f59518e74ca134cf2ec9028e (patch) | |
tree | d2b87a50ad389db502f5bd8da14c8c3747d1c004 | |
parent | 8a86414fad8b9275926980e45e7baf80a607c75f (diff) | |
download | pylint-git-e3d13c8884d22b80f59518e74ca134cf2ec9028e.tar.gz |
Add documentation examples for `logging-format-truncated` (#7040)
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
-rw-r--r-- | doc/data/messages/l/logging-format-truncated/bad.py | 3 | ||||
-rw-r--r-- | doc/data/messages/l/logging-format-truncated/details.rst | 1 | ||||
-rw-r--r-- | doc/data/messages/l/logging-format-truncated/good.py | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/doc/data/messages/l/logging-format-truncated/bad.py b/doc/data/messages/l/logging-format-truncated/bad.py new file mode 100644 index 000000000..9f3f16260 --- /dev/null +++ b/doc/data/messages/l/logging-format-truncated/bad.py @@ -0,0 +1,3 @@ +import logging + +logging.warning("Here is a variable: %", my_var) # [logging-format-truncated] diff --git a/doc/data/messages/l/logging-format-truncated/details.rst b/doc/data/messages/l/logging-format-truncated/details.rst deleted file mode 100644 index ab8204529..000000000 --- a/doc/data/messages/l/logging-format-truncated/details.rst +++ /dev/null @@ -1 +0,0 @@ -You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ ! diff --git a/doc/data/messages/l/logging-format-truncated/good.py b/doc/data/messages/l/logging-format-truncated/good.py index c40beb573..5dd3889a6 100644 --- a/doc/data/messages/l/logging-format-truncated/good.py +++ b/doc/data/messages/l/logging-format-truncated/good.py @@ -1 +1,3 @@ -# This is a placeholder for correct code for this message. +import logging + +logging.warning("Here is a variable: %s", my_var) |