chore: modern mypy config

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner 2022-03-21 13:30:43 -04:00
parent 1572d87854
commit 3a5fbd270c
No known key found for this signature in database
GPG Key ID: B9D0E45146A241E8
3 changed files with 13 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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