diff --git a/pyproject.toml b/pyproject.toml index 48562e714..3cf7c0d40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,14 +66,6 @@ python_version = "3.8" module = "starlette.testclient.*" implicit_optional = true -# TODO: Uncomment the following configuration when -# https://github.com/python/mypy/issues/10045 is solved. In the meantime, -# we are calling `mypy tests` directly. Check `scripts/check` for more info. -# [[tool.mypy.overrides]] -# module = "tests.*" -# disallow_untyped_defs = false -# check_untyped_defs = true - [tool.pytest.ini_options] addopts = "-rxXs --strict-config --strict-markers" xfail_strict = true diff --git a/scripts/check b/scripts/check index 7f169e3bc..3e8f05784 100755 --- a/scripts/check +++ b/scripts/check @@ -12,6 +12,5 @@ set -x ${PREFIX}ruff format --check --diff $SOURCE_FILES # TODO: Use `[[tool.mypy.overrides]]` on the `pyproject.toml` when the mypy issue is solved: # github.com/python/mypy/issues/10045. Check github.com/encode/starlette/pull/2180 for more info. -${PREFIX}mypy starlette -${PREFIX}mypy tests --disable-error-code no-untyped-def --disable-error-code no-untyped-call +${PREFIX}mypy $SOURCE_FILES ${PREFIX}ruff check $SOURCE_FILES