From: Daniele Varrazzo Date: Wed, 24 Jun 2020 11:12:17 +0000 (+1200) Subject: Use a standard mypy config file X-Git-Tag: 3.0.dev0~475 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0d8138f34009595be5da03e06ca64bc31bdaadd;p=thirdparty%2Fpsycopg.git Use a standard mypy config file It integrates better with the editor (trying ALE on Vim). Newer mypy version allows to hide the file. --- diff --git a/.mypy.ini b/.mypy.ini new file mode 100644 index 000000000..793fbaadb --- /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 40fea1a3f..72c710444 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