Vscode has a blue exclamation point message for python code, which is annoying
“Variable name “**” doesn’t conform to snake_case naming,” nameless “doesn’t conform to snake_case naming,” nameless “doesn’t conform to snake_case naming,” nameless “doesn’t conform to snake_case naming
Look around, find a similar one on StackOverflow, and note how to do it
The core
Add the following configuration to vscode’s configuration file:
"python.linting.pylintArgs": ["--disable=C,R"]
Copy the code
C is the convention in the code above. Represents a violation of coding style standards. R is for refactoring. I’m talking about really badly written code
steps
Inside the vscodeCtrl+shift+p
Then search Settings to the image belowThen preferences: Open Settings (JSON) Open settings.json file to add to the file
"python.linting.pylintArgs": ["--disable=C,R"]
Copy the code
Have set before python. Linting. PylintArgs inside plus “- disable = C, R” is ok, pay attention to add a comma at the end of different item, or complains
Like mine