From: Denis Laxalde Date: Tue, 2 Nov 2021 14:25:23 +0000 (+0100) Subject: Let mypy check tests/test_dns* code X-Git-Tag: 3.0.3~3^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c86bdc6607dcded2bdfa1b97e1ddd674dc5dc51;p=thirdparty%2Fpsycopg.git Let mypy check tests/test_dns* code We need to add dnspython to dev dependencies in order to get types for the dns module when running mypy. --- diff --git a/psycopg/setup.py b/psycopg/setup.py index 7000374e6..ae7d3cb59 100644 --- a/psycopg/setup.py +++ b/psycopg/setup.py @@ -47,6 +47,7 @@ extras_require = { # Requirements needed for development "dev": [ "black", + "dnspython ~= 2.1.0", "flake8 ~= 4.0.1", "mypy >= 0.910", "pytest-mypy >= 0.8.1", diff --git a/pyproject.toml b/pyproject.toml index 0c8390e4c..3872d5162 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,7 @@ files = [ "tests/pool", "tests/pq", "tests/scripts", + "tests/test_dns*", "tests/test_psycopg_dbapi20.py", "tests/test_sql.py", "tests/types",