skip to Main Content

I wanted to turn off the messages in VSC about using f-strings in logging messages so I found this which says I need to enable logging-not-lazy and disable logging-fstring-interpolation.

I didn’t have a pylint extension in my VSC yet it was still linting my files so I have no idea how to actually enable and disable the above messages. I can easily find how to enable and disable all pylinting but I’m struggling find how to enable and disable selectively.

2

Answers


  1. You should be able to open a project settings file and add this line to enable or disable certain messages:

    pylint.fstring: enable/disable

    Login or Signup to reply.
  2. Try this "pylint.lint.disable": ["logging-fstring-interpolation"]

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search