diff --git a/pyproject.toml b/pyproject.toml index 285367a..79e933d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,3 +5,16 @@ requires = [ ] build-backend = "setuptools.build_meta" + +[tool.mypy] +files = [ + "wcmatch/*.py" +] +strict = true +show_error_codes = true + +[[tool.mypy.overrides]] +module = [ + 'wcmatch.glob.*' +] +warn_unused_ignores = false diff --git a/tox.ini b/tox.ini index 732cbe7..f2866c1 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ deps= -r requirements/setup.txt -r requirements/test.txt commands= - {envbindir}/mypy --strict --show-error-codes --no-warn-unused-ignores wcmatch + {envbindir}/mypy {envbindir}/py.test --cov wcmatch --cov-append tests {envbindir}/coverage html -d {envtmpdir}/coverage {envbindir}/coverage xml