Skip to content

Commit f724827

Browse files
TechNiickScirlat DanutKludex
authored
Remove mypy skip flags (#2497)
* Remove flags * Apply suggestions from code review * Remove mypy overrides --------- Co-authored-by: Scirlat Danut <[email protected]> Co-authored-by: Marcelo Trylesinski <[email protected]>
1 parent ac7e643 commit f724827

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

pyproject.toml

-8
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,6 @@ python_version = "3.8"
6666
module = "starlette.testclient.*"
6767
implicit_optional = true
6868

69-
# TODO: Uncomment the following configuration when
70-
# https://github.com/python/mypy/issues/10045 is solved. In the meantime,
71-
# we are calling `mypy tests` directly. Check `scripts/check` for more info.
72-
# [[tool.mypy.overrides]]
73-
# module = "tests.*"
74-
# disallow_untyped_defs = false
75-
# check_untyped_defs = true
76-
7769
[tool.pytest.ini_options]
7870
addopts = "-rxXs --strict-config --strict-markers"
7971
xfail_strict = true

scripts/check

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ set -x
1212
${PREFIX}ruff format --check --diff $SOURCE_FILES
1313
# TODO: Use `[[tool.mypy.overrides]]` on the `pyproject.toml` when the mypy issue is solved:
1414
# github.com/python/mypy/issues/10045. Check github.com/encode/starlette/pull/2180 for more info.
15-
${PREFIX}mypy starlette
16-
${PREFIX}mypy tests --disable-error-code no-untyped-def --disable-error-code no-untyped-call
15+
${PREFIX}mypy $SOURCE_FILES
1716
${PREFIX}ruff check $SOURCE_FILES

0 commit comments

Comments
 (0)