-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid constant name "application" (invalid-name) #77
Comments
Ran into the same problem. Would be great to see this fixed. |
+1 |
Same problem here. Should I ignore the wsgi.py module? |
As an alternative to disabling the message or ignoring the whole module, using PyLint's $ pylint testproj --load-plugins=pylint_django --good-names=application As usual, those options can also go into a PyLint configuration file to save typing on the command line: # FILE: pylintrc or .pylintrc
load-plugins = pylint_django
good-names = application Where would code to ignore As |
Any hint to start tackling this issue would be greatly appreciated, @carlio! Who will take care of maintenance and PRs in future, now that this repo is under the PyCQA umbrella? |
@bittner @colinhowe and myself joined this project as new maintainers just before it moved under PyCQA. I have closed a few issues yesterday and will continue to work on the rest during the next few weeks. Not sure what my permissions on the repo are after the move but I will gladly continue maintaining this package. |
@bittner @atodorov @colinhowe I'll will certainly be helping and now others are too and hopefully with the new moves it will help keep things going :-) It was a bit staid when I was on it alone so I think this is a good move for users and the lib itself. |
Okay, thanks! Remains the first part of the question to be answered: 😏
|
@bittner the easiest way will be to append 'application' to good_names in The other will be to add an augmentation which silences the invalid-name message from pylint when visiting a AssignName node, which is named "application" and lives inside the "wsgi" module. ATM I don't know if astroid nodes carry module information with them but quick look tells me no. |
pylint_django
complains about Django-generated code:Using: pylint==1.5.6 and pylint-django==0.7.2.
The text was updated successfully, but these errors were encountered: