psycopg.git / summary / log / commit / refs
commit b0d8138f34009595be5da03e06ca64bc31bdaadd
Author: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date: Wed Jun 24 11:12:17 2020 +0000
Use a standard mypy config file
It integrates better with the editor (trying ALE on Vim).
Newer mypy version allows to hide the file.
.mypy.ini | 11 +++++++++++
tox.ini | 12 ++----------
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/.mypy.ini b/.mypy.ini
new file mode 100644
index 00000000..793fbaad
--- /dev/null
+++ b/.mypy.ini
@@ -0,0 +1,11 @@
+[mypy]
+files = psycopg3
+warn_unused_ignores = True
+show_error_codes = True
+strict = True
+
+[mypy-pytest]
+ignore_missing_imports = True
+
+[mypy-setuptools]
+ignore_missing_imports = True
diff --git a/tox.ini b/tox.ini
index 40fea1a3..72c71044 100644
--- a/tox.ini
+++ b/tox.ini
@@ -37,18 +37,10 @@ commands = flake8
deps = flake8 >= 3.8, < 3.9
[testenv:mypy]
-commands = mypy --config-file tox.ini
-deps = mypy >= 0.770
+commands = mypy
+deps = mypy >= 0.782
[flake8]
max-line-length = 85
ignore = W503, E203
extend-exclude = .venv
-
-[mypy]
-files = psycopg3
-warn_unused_ignores = True
-strict = True
-
-[mypy-pytest]
-ignore_missing_imports = True
[parent: 627fb8793ce4]