lamby / django-lint

Tool to lint Django applications and projects
http://chris-lamb.co.uk/projects/django-lint/
GNU General Public License v3.0
190 stars 30 forks source link

valid pylint options confuse django-lint #1

Open fmarier opened 13 years ago

fmarier commented 13 years ago

I've got this in my manage.py to disable some pylint checks:

#!/usr/bin/python
from django.core.management import execute_manager
try:
    # pylint: disable=W0403,F0401
    import settings # Assumed to be in the same directory.

and when I run django-lint, I get errors like these:

************* Module libravatar.manage
E:  4: Bad option value 'W0403'
E:  4: Bad option value 'F0401'

Could it be that django-lint has problems recognizing valid pylint options?

wcraigtrader commented 13 years ago

I'm seeing this as well:

# pylint: disable=W0403,C0301

produces:

************* Module foo.manage
E:  5: Bad option value 'W0403'
E:  5: Bad option value 'C0301'
olivierlefloch commented 11 years ago

I had the same issue until I used the "-p" option to run pylint's default checks:

-p, --pylint          run normal PyLint checks