Pilint's warning appears only on Jenkins

When I run pylint locally, I do not see a warning. I really did not expect to see a warning at all. This happens in at least two different versions of jenkins, currently running the latest version 1.576. A warning is displayed in the user interface using the latest version 0.7.11, which is the latest.

This is the line of code marked in the warning:

request.context.__parent__ = report # pylint: disable=W0201 

And the warning it gives is 5 copies of W0201

I wouldn't believe it myself, unless I saw it.

This warning has also been disabled above in the code:

 #pylint: disable=R0901, R0904, R0914, W0201 

None of the approaches have any effect.

+5
source share
1 answer

Perhaps the pylintrc file is different between machines / users.

Try copying the local ~ / .pylintrc file to the jenkins home folder.

Details here: How to disable Pylint warning?

0
source

Source: https://habr.com/ru/post/1201099/


All Articles