-
-
Notifications
You must be signed in to change notification settings - Fork 521
Open
Labels
3rd partyPresence of a third party dependency has been mentionedPresence of a third party dependency has been mentionedbugSomething isn't workingSomething isn't working
Description
Following documentation do not solve the issue of django-stubs working with django-configurations
[tool.mypy]
mypy_path = "./src"
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "myproj.settings"
strict_settings = false
Returns an Error:
Error constructing plugin instance of NewSemanalDjangoPlugin
...
raise ImproperlyConfigured(install_failure)
django.core.exceptions.ImproperlyConfigured: django-configurations settings importer wasn't correctly installed. Please use one of the starter functions to install it as mentioned in the docs: https://django-configurations.readthedocs.io/
Note:
Whilst commenting usage of django-stubs in [tool.mypy] directive of pyproject.toml leading to expected issue of mypy not being able to catch django types from models.py (for example).
Note 2:
As I see this PR #180 is still open.
Would it be better to remove django-configurations entry from README.md since it could cause confusion?
System information
- OS: macOS Sonoma
pythonversion: 3.11.4djangoversion: 4.2.5mypyversion: 1.4.1mypy-extensionsversion: 1.0.0django-stubsversion: 4.2.3django-stubs-extversion: 4.2.2djangorestframework-stubsversion: 3.14.2
striveforbest and paduszyk
Metadata
Metadata
Assignees
Labels
3rd partyPresence of a third party dependency has been mentionedPresence of a third party dependency has been mentionedbugSomething isn't workingSomething isn't working