]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Use a standard mypy config file
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 24 Jun 2020 11:12:17 +0000 (23:12 +1200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 24 Jun 2020 11:12:17 +0000 (23:12 +1200)
It integrates better with the editor (trying ALE on Vim).
Newer mypy version allows to hide the file.

.mypy.ini [new file with mode: 0644]
tox.ini

diff --git a/.mypy.ini b/.mypy.ini
new file mode 100644 (file)
index 0000000..793fbaa
--- /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 40fea1a3faa6d30440a9bec9b2aa3a3e726019aa..72c7104442e5a3c9298cc296fe7b4a6d40ade162 100644 (file)
--- 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