diff --git a/changelog.d/pr421.trivial.rst b/changelog.d/pr421.trivial.rst new file mode 100644 index 00000000..b00b9e55 --- /dev/null +++ b/changelog.d/pr421.trivial.rst @@ -0,0 +1,2 @@ +Insert mypy configuration into :file:`pyproject.toml` and remove +config options from :file:`tox.ini`. diff --git a/pyproject.toml b/pyproject.toml index e26c034c..64c9a32c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,14 @@ requires = [ build-backend = "setuptools.build_meta" +[tool.mypy] +# ignore_missing_imports = true +check_untyped_defs = true +show_error_codes = true +# strict = true +pretty = true + + [tool.black] line-length = 88 target-version = ['py37', 'py38', 'py39', 'py310', 'py311'] diff --git a/tox.ini b/tox.ini index b18aa1f7..1bc77e1b 100644 --- a/tox.ini +++ b/tox.ini @@ -49,7 +49,7 @@ commands = flake8 {posargs:} description = Check code style basepython = python3 deps = mypy -commands = mypy {posargs:--ignore-missing-imports --check-untyped-defs src} +commands = mypy {posargs:src} [testenv:docstrings]