﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33843	Django attempts connect to database during mypy checks	Daniil Zverev	nobody	"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
}}}"	Bug	closed	Core (Other)	4.0	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
