From 12829ccd217344de913732d02ae24eb47892f999 Mon Sep 17 00:00:00 2001 From: facelessuser Date: Sun, 31 Oct 2021 17:49:27 -0600 Subject: [PATCH] Move mypy configuration to pyproject.toml --- pyproject.toml | 7 +++++++ tox.ini | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 285367a..7cc7d61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,3 +5,10 @@ requires = [ ] build-backend = "setuptools.build_meta" + +[tool.mypy] +files = [ + "soupsieve/*.py" +] +strict = true +show_error_codes = true diff --git a/tox.ini b/tox.ini index add98cb..81a4fd6 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ passenv = * deps = -rrequirements/tests.txt commands = - mypy --strict --show-error-codes soupsieve + mypy py.test --cov soupsieve --cov-append {toxinidir} coverage html -d {envtmpdir}/coverage coverage xml