From 524891e96cb18e3dfdc4ccffe22a9a28ed9ed2b3 Mon Sep 17 00:00:00 2001 From: "Paulo S. Costa" Date: Thu, 22 Apr 2021 19:59:25 -0700 Subject: [PATCH] Add ignore-missing-imports arg to mypy --- CONTRIBUTING.md | 2 +- Makefile | 4 ++-- tox.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6e27d565..2cd9ccaa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/Makefile b/Makefile index 6bed4f76..bf2eff15 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/tox.ini b/tox.ini index 24e44a22..dba27dbb 100644 --- a/tox.ini +++ b/tox.ini @@ -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]