Add ignore-missing-imports arg to mypy

This commit is contained in:
Paulo S. Costa 2021-04-22 19:59:25 -07:00
parent 0e1a91969f
commit 524891e96c
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ make typecheck
Or if you don't have `make`:
```
mypy -p rich --ignore-missing-imports --warn-unreachable
mypy -p rich --config-file= --ignore-missing-imports --no-implicit-optional --warn-unreachable
```
Please add type annotations for all new code.

View File

@ -5,9 +5,9 @@ format-check:
format:
black .
typecheck:
mypy -p rich --ignore-missing-imports --warn-unreachable
mypy -p rich --config-file= --ignore-missing-imports --no-implicit-optional --warn-unreachable
typecheck-report:
mypy -p rich --ignore-missing-imports --warn-unreachable --html-report mypy_report
mypy -p rich --config-file= --ignore-missing-imports --no-implicit-optional --warn-unreachable --html-report mypy_report
.PHONY: docs
docs:
cd docs; make html

View File

@ -33,7 +33,7 @@ commands =
description = Runs all linting tasks
commands =
black .
mypy -p rich --ignore-missing-imports --warn-unreachable
mypy -p rich --config-file= --ignore-missing-imports --no-implicit-optional --warn-unreachable
skip_install = true
[testenv:docs]