From e941c844e4446b6200ac102ef285544c406a2fcd Mon Sep 17 00:00:00 2001 From: John Snow Date: Thu, 27 May 2021 17:17:05 -0400 Subject: python: move mypy.ini into setup.cfg mypy supports reading its configuration values from a central project configuration file; do so. Signed-off-by: John Snow Reviewed-by: Cleber Rosa Message-id: 20210527211715.394144-22-jsnow@redhat.com Signed-off-by: John Snow --- python/setup.cfg | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/setup.cfg') diff --git a/python/setup.cfg b/python/setup.cfg index 9aeab2bb0d..bd88b44ad8 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -27,6 +27,11 @@ extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's exclude = __pycache__, .venv, +[mypy] +strict = True +python_version = 3.6 +warn_unused_configs = True + [pylint.messages control] # Disable the message, report, category or checker with the given id(s). You # can either give multiple identifiers separated by comma (,) or put this -- cgit 1.4.1