Can Pylint error checking be customized?

后端 未结 6 2049
名媛妹妹
名媛妹妹 2021-02-02 07:25

I am using pydev where I have set up pylint. The problem is that even inside the comments, pylint reports warnings. I was looking to disable any sort of checking inside any line

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-02 08:05

    As said by cfedermann, you can specify messages to be disabled in a ~/.pylintrc file (notice you can generate a stub file using pylint --generate-rcfile if you don't want to use inline comments.

    You'll also see in the generated file, in the [BASIC] section, options like "method-rgx", "function-rgx", etc. which you can configure as you like to support camel cases style rather than pep8 underscore style.

提交回复
热议问题