Skip to content

Feature - Add options of DJANGO_SETTING_MODULE to be added to .pylintrc #312

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

Closed
luke-goddard opened this issue Feb 16, 2021 · 5 comments
Closed

Comments

@luke-goddard
Copy link

Would it be possible to add DJANGO_SETTING_MODULE to the pylintrc file?

@pzanitti
Copy link

It's supported, just drop django-settings-module=yourproject.settings below load-plugins=pylint_django.

@pzanitti
Copy link

Keep in mind editor linting will silently fail if you're using django-configurations and pylint-django>=2.4.0 as per #306 #307 etc.

If you are, install and stay in 2.3.0.

@luke-goddard
Copy link
Author

Perfect thank you that worked :) I'm quite new to configuring pylint it's not obvious to newcomers that this is possible.

@atodorov
Copy link
Contributor

Perfect thank you that worked :) I'm quite new to configuring pylint it's not obvious to newcomers that this is possible.

How about https://github.com/PyCQA/pylint-django#usage ? Wasn't that obvious enough ?

@carlio
Copy link
Member

carlio commented Feb 20, 2021

@atodorov The issue was about adding to .pylintrc which isn't mentioned in the README, might be worth adding it.

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

No branches or pull requests

4 participants