Added mypy config to tox.ini
import re
import os
-from setuptools import setup
+from setuptools import setup # type: ignore
# Grab the version without importing the module
# or we will get import errors on install if prerequisites are still missing
deps = flake8 >= 3.7
[testenv:mypy]
-commands = mypy psycopg3
+commands = mypy --config-file tox.ini
deps = mypy >= 0.770
[flake8]
max-line-length = 85
exclude = env, .tox
ignore = W503, E203
+
+[mypy]
+files = psycopg3, tests, setup.py
+warn_unused_ignores = True
+
+[mypy-pytest]
+ignore_missing_imports = True