Django, Jenkins and PyLint Look at Everything

I am currently running Jenkins CI with pylint to see the Django project I was working on. One thing I was upset with is the pylint report for all the central django modules that I import, which means that my own project files are buried in heaps of other django modules (e.g. / usr / local / lib / python2.6 /dist-packages/django/contrib/admin/options.py, which gives only 67 violations).

Is there a way to make it less illegible and just look at the files related to my project, or should it always overwrite all imported data?

Thanks,

J

+4
source share
2 answers

Right, well, thanks to the creator of Django_Jenkins ( kmmbvnr ), the correct way to get it to look only at your project files is to use the following:

In settings.py you need:

PROJECT_APPS=( 'appname', ) 

And that sorts the search through every dependency there.

Hope this helps!

J

+11
source

From pylint docs :

Command line options

...

- ignore = file

Add (may be a directory) to the blacklist. This should be the base name, not the path. You can set this option several times.

So:

 pylint . --ignore=django 

will probably solve your problems.

0
source

All Articles