I have an ever-growing list of modules to ignore in my pylintrc:
ignored-modules=anytree,apsw,bs4,cachecontrol,dateutil,inflect,matplotlib,markdown,munch,MySQLdb,pytest,pytz,requests_oauthlib,rrule,seaborn,titlecase,untangle,googleapiclient
because otherwise codacy will fail my pull request.
Is there a way to have codacy know about these (pip) modules?
Failing that is there a way to say "ignore these on codacy checks but don't ignore them during local runs of pylint"?
The fact that there is a
.codacy-pylintrcfile suggests it is possible to configurecodacy-pylintto use a dedicatepylintrcfile (with the-rcfile=.codacy-pylintrcoption)As opposed to a local run of
pylint, which will look by default for a regular~/.pylintrcfile (where you don't have to ignore those modules).As commented, that also means you can do the reverse:
pylintuses a custom file (with the-rcfile=xxxoption),codacy-pylintwould use the default.pylintrcfile