cmsmanage/cmsmanage/mypy_django_configurations_plugin.py
Adam Goldsmith 9658366d72 Fix mypy for django-configurations
still have a lot of bad typing, but at least it runs again
2024-05-03 12:37:48 -04:00

13 lines
370 B
Python

# https://github.com/typeddjango/django-stubs/pull/180#issuecomment-820062352
import os
from configurations import importer
from mypy_django_plugin import main
def plugin(version):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cmsmanage.settings")
os.environ.setdefault("DJANGO_CONFIGURATION", "Dev")
importer.install()
return main.plugin(version)