Skip to content
Advertisement

Tag: pylint

How to run pylint only on changed files in Gitlab?

I’m trying to run pylint only on changed python files, but my build keeps failing. I have extracted the changed files through git diff and saved them in a variable, but when I inject the variable into the pylint call, it fails. It works fine with a hardcoded filename however. Here is my yaml: Answer While qathulu answer is adequate,

pylint: Exclude directory

Suppose I have the following directory structure: I want to run pylint on everything, except the directory bdir/adir. Is there any way to do this? Things that do not work: –ignore=bdir/adir –ignore_patterns=.*bdir/adir.* Any of the answers in this similar post –ignore=adir (this will ignore both of the adir’s – not what I want). It seems that pylint’s ignore-filters only work

How can I install the pylint for python2.7?

I try to install the pylint for the python2.7 which in ubuntu 18.04, but it raises an error with this words: I have been used the pip3 installed the pylint successfully for python3.6. So, how can I install the pylint for python2.7? Answer pylint still maintains support for Python 2 until maybe next year or so. But you need to

Advertisement