mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
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:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user