django-stubs
django-stubs copied to clipboard
Install all optional requirements of Django
Today I faced a problem: https://github.com/typeddjango/django-stubs/pull/1601
New pytest-mypy-plugins
has jinja2
as a dependency. After that we got new stubtest
failures.
So, I realized that we don't have many optional Django dependencies for the runtime analysis. For example, from extras https://github.com/django/django/blob/6a523500af5bab3e05d9be9fc1a74d986c102f1a/setup.cfg#L48:
-
argon2
-
bcrypt
Database drivers:
-
mysqlclient
: https://github.com/django/django/blob/6a523500af5bab3e05d9be9fc1a74d986c102f1a/django/db/backends/mysql/base.py -
cx_Oracle
: https://github.com/django/django/blob/6a523500af5bab3e05d9be9fc1a74d986c102f1a/django/db/backends/oracle/base.py
Maybe caches? What else?
Not specifically extras, but psycopg2 or 3 will result in change the stubtest as well.
Would you prefer to go "full-extras" or to try and run multiple stubtests with different allowlists?
Multiple subtests seem better.