diff --git a/mypy.ini b/mypy.ini index 976ba0294..4ff4483ab 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,2 +1,3 @@ [mypy] +disallow_untyped_defs = True ignore_missing_imports = True diff --git a/scripts/lint.sh b/scripts/lint.sh index 11b59f2b9..6472f1845 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -3,6 +3,6 @@ set -e set -x -mypy fastapi --disallow-untyped-defs +mypy fastapi black fastapi tests --check isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only --thirdparty fastapi fastapi tests