diff --git a/pyproject.toml b/pyproject.toml index 87117ac..21dbb7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,6 +60,10 @@ show_missing = true precision = 2 fail_under = 100.00 skip_covered = true +exclude_also = [ + # `if TYPE_CHECKING:` blocks are only executed while running mypy. + "if TYPE_CHECKING:", +] [tool.isort] multi_line_output = 3 @@ -154,8 +158,8 @@ disable_error_code = [ ] [[tool.mypy.overrides]] -module= [ - # Don't try to typecheck the tests for now +module = [ + # Don't try to typecheck the tests for now. "tests.*", ] ignore_errors = true