django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

Install all optional requirements of Django

Open sobolevn opened this issue 1 year ago • 2 comments

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?

sobolevn avatar Jun 29 '23 08:06 sobolevn

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?

GabDug avatar Jun 29 '23 10:06 GabDug

Multiple subtests seem better.

sobolevn avatar Jun 29 '23 10:06 sobolevn