import os

from configurations.importer import install
from mypy.version import __version__  # noqa: F401
from mypy_django_plugin import main


def plugin(version):
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
    os.environ.setdefault('DJANGO_CONFIGURATION', 'Development')
    install()
    return main.plugin(version)

import os

from configurations.importer import install
from mypy.version import __version__  # noqa: F401
from mypy_django_plugin import main


def plugin(version):
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
    os.environ.setdefault('DJANGO_CONFIGURATION', 'Development')
    install()
    return main.plugin(version)

# noqa: F401