Improve mypy flags for regr_test.py and typecheck_typeshed.py (#9441)

- Remove redundant flags that are now enabled by default
- Add `--pretty` to `typecheck_typeshed.py`
This commit is contained in:
Alex Waygood
2023-01-02 12:01:44 +00:00
committed by GitHub
parent ca28b1f24d
commit a7f1d3c08d
2 changed files with 1 additions and 3 deletions

View File

@@ -52,12 +52,11 @@ def run_mypy_as_subprocess(directory: str, platform: str, version: str) -> Retur
"--python-version",
version,
"--strict",
"--pretty",
"--show-traceback",
"--show-error-codes",
"--no-error-summary",
"--enable-error-code",
"ignore-without-code",
"--namespace-packages",
]
if directory == "tests" and platform == "win32":
command.extend(["--exclude", "tests/pytype_test.py"])