Is there a way to provide the `django-stubs` depen...
# general
r
Is there a way to provide the
django-stubs
dependency to mypy when running the
check
goal without a lockfile? I see an example here, but it uses a lockfile. The reason I'm not using a lockfile is because it doesn't support dependency management with renovate.
I get the following error when running check:
pyproject.toml:1: error: Error importing plugin "mypy_django_plugin.main": No module named 'mypy_django_plugin'  [misc]
h
I don't think so. Come to think of it, how does anything work without a lockfile? :)
I suppose you could manually add an explicit BUILD file dep from your django-using code to the stubs (which you'd have to add to your requirements.txt)?
r
ASAIU lockfiles aren't required so I'm guessing things just work by pip installing every time
I tried adding an explicit dependency to django-stubs but it didn't work 😞