mirror of
https://github.com/Textualize/rich.git
synced 2026-02-06 10:58:48 +00:00
chore: modern mypy config
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
parent
1572d87854
commit
3a5fbd270c
4
Makefile
4
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
|
||||
|
||||
13
mypy.ini
13
mypy.ini
@ -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
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user