Solve the problem of ignoring the Python plugin pylint error in Vscode

Source: Internet
Author: User

Pylint is a Vscode python plugin that can help with code specifications and aesthetics.
But some of the errors you do not want to see, you can choose to ignore the sex.

  • For example, in Re.compile (), you can add a parameter re.S that . matches any character. And Pylint will keep the error. This method does not exist, resulting in a failure to run. This problem does not occur in Pycharm.

To customize the Ignore error, proceed as follows:

  1. Search in the Setting,json filepython.linting.pylintArgs
  2. Modify the following.
  3. In the python.linting.pylintArgs add string --disable=错误码 , if there are multiple error codes, separate the parentheses. I just ignored it here E1101 . You can change it intoE1101, E1102

    Note: There is a lot of information on the Internet, many people say it is added --disable-msg=错误码 but this method does not apply to me, maybe I downloaded the latest version. The method mentioned above can be used to test.

What other questions can you leave a message to discuss.

Solve the problem of ignoring the Python plugin pylint error in Vscode

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.