]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Move mypy configuration to pyproject.toml
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 5 Oct 2021 13:41:15 +0000 (15:41 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 5 Oct 2021 13:41:15 +0000 (15:41 +0200)
.mypy.ini [deleted file]
pyproject.toml

diff --git a/.mypy.ini b/.mypy.ini
deleted file mode 100644 (file)
index 2c6008c..0000000
--- a/.mypy.ini
+++ /dev/null
@@ -1,18 +0,0 @@
-[mypy]
-files = psycopg/psycopg, psycopg_pool/psycopg_pool, psycopg_c/psycopg_c
-warn_unused_ignores = True
-show_error_codes = True
-strict = True
-
-[mypy-pytest]
-ignore_missing_imports = True
-
-[mypy-setuptools]
-ignore_missing_imports = True
-
-[mypy-shapely.*]
-ignore_missing_imports = True
-
-[mypy-tests.*]
-disallow_untyped_defs = False
-disallow_untyped_calls = False
index 875b3c51cd579f9e42d828ddefe6e20500da50aa..6c48169e66e3dcb26bd5de65e82df956fde1d33d 100644 (file)
@@ -12,3 +12,23 @@ testpaths=[
 # Note: On Travis they these options seem to leak objects
 # log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(name)s:%(filename)s:%(lineno)d %(message)s"
 # log_level = "DEBUG"
+
+
+[tool.mypy]
+files = ["psycopg/psycopg", "psycopg_pool/psycopg_pool", "psycopg_c/psycopg_c"]
+warn_unused_ignores = true
+show_error_codes = true
+strict = true
+
+[[tool.mypy.overrides]]
+module = [
+    "pytest",
+    "setuptools",
+    "shapely.*",
+]
+ignore_missing_imports = true
+
+[[tool.mypy.overrides]]
+module = "tests.*"
+disallow_untyped_defs = false
+disallow_untyped_calls = false