python: move mypy.ini into setup.cfg
authorJohn Snow <jsnow@redhat.com>
Thu, 27 May 2021 21:17:05 +0000 (17:17 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 1 Jun 2021 20:21:21 +0000 (16:21 -0400)
mypy supports reading its configuration values from a central project
configuration file; do so.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-id: 20210527211715.394144-22-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/mypy.ini [deleted file]
python/setup.cfg

diff --git a/python/mypy.ini b/python/mypy.ini
deleted file mode 100644 (file)
index 1a581c5..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-[mypy]
-strict = True
-python_version = 3.6
-warn_unused_configs = True
index 9aeab2bb0d34697fce6a1c08472b53588c390dd7..bd88b44ad80e665151af1cf3dea671843fe89572 100644 (file)
@@ -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