Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

valid pylint options confuse django-lint #1

Open
fmarier opened this issue Mar 17, 2011 · 2 comments
Open

valid pylint options confuse django-lint #1

fmarier opened this issue Mar 17, 2011 · 2 comments

Comments

@fmarier
Copy link

fmarier commented Mar 17, 2011

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
Copy link

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
Copy link

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

-p, --pylint          run normal PyLint checks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants