Skip to content

create a django-stubs compatibility plugin #268

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
wants to merge 1 commit into from
Closed

create a django-stubs compatibility plugin #268

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 12, 2020

closes #267

this creates a mypy plugin to add compatibility with the django-stubs package. currently, mypy will completely crash when attempting to run on a project using both django-stubs and django-configurations this is because configurations is never initialized by django-stubs

this plugin (when added to setup.cfg correctly) runs before the django-stubs plugin and initializes the importer correctly, allowing mypy to run

add plugin note to readme
@ghost
Copy link
Author

ghost commented Nov 12, 2020

looks like the stubs team has a more permanent fix in the works here. i'll be closing this, and i've set up the plugin as a gist here in case anyone wants to use it as a workaround

This pull request was closed.
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

Successfully merging this pull request may close these issues.

mypy - django-configurations settings importer wasn't correctly installed
0 participants