#33843: Django attempts connect to database during mypy checks
--------------------------------------+------------------------
               Reporter:  Bizilizi    |          Owner:  nobody
                   Type:  Bug         |         Status:  new
              Component:  CSRF        |        Version:  4.0
               Severity:  Normal      |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  0
                  UI/UX:  0           |
--------------------------------------+------------------------
 Both stand alone call of mypy and pre-commit cals causes following errors:

 {{{
 django.db.utils.OperationalError: connection to server on socket
 "/tmp/.s.PGSQL.5432" failed: No such file or directory
         Is the server running locally and accepting connections on that
 socket?
 }}}

 We can not use mypy in our Django project due to this error. Any ideas
 what causes it?
 We have django-stubs as dependencies and in addition ignores errors from
 migrations, like that:

 {{{
 [mypy]
 exclude = ".+.migrations.|.+.tests.|.+.testing."
 .
 [mypy-*.migrations.*]
 ignore_errors = True
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33843>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070181fc3d4d53-182dcd85-37de-4e5b-af57-4bebbe1ebd12-000000%40eu-central-1.amazonses.com.

Reply via email to