From 3a5fbd270c298e4f7b89b2cd594950a1cab02a0f Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 21 Mar 2022 13:30:43 -0400 Subject: [PATCH] chore: modern mypy config Signed-off-by: Henry Schreiner --- Makefile | 4 ++-- mypy.ini | 13 ------------- pyproject.toml | 11 +++++++++++ 3 files changed, 13 insertions(+), 15 deletions(-) delete mode 100644 mypy.ini diff --git a/Makefile b/Makefile index 17ede926..044725ac 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,9 @@ format-check: format: black . typecheck: - mypy -p rich --strict --no-incremental + mypy -p rich--no-incremental typecheck-report: - mypy -p rich --strict --html-report mypy_report + mypy -p rich --html-report mypy_report .PHONY: docs docs: cd docs; make html diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index acccf082..00000000 --- a/mypy.ini +++ /dev/null @@ -1,13 +0,0 @@ -[mypy] - -[mypy-pygments.*] -ignore_missing_imports = True - -[mypy-IPython.*] -ignore_missing_imports = True - -[mypy-commonmark.*] -ignore_missing_imports = True - -[mypy-ipywidgets.*] -ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml index 3fd47ce4..13981ab9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,3 +50,14 @@ asv = "^0.5.1" [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" + + +[tool.mypy] +files = ["rich"] +warn_unused_configs = true +show_error_codes = true +strict = true + +[[tool.mypy.overrides]] +module = ["wcwidth.*", "pygments.*", "IPython.*", "commonmark.*", "ipywidgets.*"] +ignore_missing_imports = true