Skip to content

Commit a7f1d3c

Browse files
authored
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`
1 parent ca28b1f commit a7f1d3c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/regr_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ def run_testcases(
166166
"--python-version",
167167
version,
168168
"--show-traceback",
169-
"--show-error-codes",
170169
"--no-error-summary",
171170
"--platform",
172171
platform,

tests/typecheck_typeshed.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@ def run_mypy_as_subprocess(directory: str, platform: str, version: str) -> Retur
5252
"--python-version",
5353
version,
5454
"--strict",
55+
"--pretty",
5556
"--show-traceback",
56-
"--show-error-codes",
5757
"--no-error-summary",
5858
"--enable-error-code",
5959
"ignore-without-code",
60-
"--namespace-packages",
6160
]
6261
if directory == "tests" and platform == "win32":
6362
command.extend(["--exclude", "tests/pytype_test.py"])

0 commit comments

Comments
 (0)