Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django, Jenkins and PyLint looking at everything

I am currently running Jenkins CI with pylint to look at a Django project I've been working on. One thing I have been frustrated by is pylint reporting for all the central django modules I import, meaning that my own project files get buried within mounds of other django modules (e.g. /usr/local/lib/python2.6/dist-packages/django/contrib/admin/options.py, which gives 67 violations alone).

Is there a way to make it less indiscriminate and just look at the files related to my project, or does it always have to recurse through all imports?

Thanks,

J

like image 271
jvc26 Avatar asked Dec 21 '22 12:12

jvc26


1 Answers

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

In settings.py, you need:

PROJECT_APPS=(
    'appname',
)

And that sorts out the searching through every dependency out there.

Hope that helps!

J

like image 120
jvc26 Avatar answered Dec 24 '22 02:12

jvc26