Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of turning off pylint error report in vscode

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of closing the pylint error in vscode. The article is very detailed and has certain reference value. Interested friends must read it!

The way to close the pylint error in vscode is:

fpylint is Python plug-in in VScode, which can help code specification and beauty.

But there are errors you don't want to see, and you can selectively ignore them.

For example, in re.compile(), you can add the parameter re.S so that. Matches any character. Pylint will always report that this method does not exist, resulting in failure to run. This problem does not occur in Pycharm.

To customize ignore errors, do the following:

1. Search for python.linting.pylintArgs in the setting,json file

2. Amend as follows.

3. Add the string--disable= error code to python.linting.pylintArgs, and if there are multiple error codes, separate them with parentheses. I'm just ignoring E1101 here. You can change it to E1101, E1102.

Note: I read a lot of information on the Internet here, many people say add--disable-msg= error code but this method does not work for me, maybe I downloaded the latest version. The method mentioned above can be used to test it personally.

The above is "turn off vscode pylint error method" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report