]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Let mypy check tests/test_dns* code
authorDenis Laxalde <denis.laxalde@dalibo.com>
Tue, 2 Nov 2021 14:25:23 +0000 (15:25 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 10 Nov 2021 01:57:39 +0000 (02:57 +0100)
We need to add dnspython to dev dependencies in order to get types for
the dns module when running mypy.

psycopg/setup.py
pyproject.toml

index 7000374e6734949b88030cfe4827b7dd6f06fc08..ae7d3cb5914449da30c0273f5d0a619bb8679ed7 100644 (file)
@@ -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",
index 0c8390e4c7de953c83599d852bec5072bc484754..3872d51622bda8334d3a53f2b842d58b86e17861 100644 (file)
@@ -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",