-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Closed as not planned
Copy link
Labels
Needs PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementationNeeds decision 🔒Needs a decision before implemention or rejectionNeeds a decision before implemention or rejection
Description
Bug description
import logging
logging.info('Good percent %')
Configuration
Command used
pylint --logging-format-style=old -d all -e logging-format-truncated --rcfile=/dev/null my_file.py
NOTE: Using --logging-format-style=new
format is not reproduced
Pylint output
E1201: Logging format string ends in middle of conversion specifier (logging-format-truncated)
Expected behavior
The percentage value is valid and it doesn't need to be scaped if there are not args to parse in the string
Notice the following example where the value is showed correctly without scaping vs scaping the value:
Pylint version
pylint 4.0.0-dev0
astroid 4.0.0a0
Python 3.12.11 (main, Jun 3 2025, 15:41:47) [Clang 17.0.0 (clang-1700.0.13.3)]
OS / Environment
MacOSX
Additional dependencies
Metadata
Metadata
Assignees
Labels
Needs PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementationNeeds decision 🔒Needs a decision before implemention or rejectionNeeds a decision before implemention or rejection