Skip to content

Commit a201e66

Browse files
committed
split out the packaging test from the general self type check
as per #18609 (comment)
1 parent 72e1ff8 commit a201e66

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

runtests.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,23 @@
5656
# Self type check
5757
"self": [
5858
executable,
59-
"-c",
60-
"from mypy.main import main as mypy; "
61-
"mypy(args=['--config-file', 'mypy_self_check.ini', '-p', 'mypy', '-p', 'mypyc']); "
62-
"mypy(args=['--config-file', 'mypy_self_check.ini', 'setup.py'])",
59+
"-m",
60+
"mypy",
61+
"--config-file",
62+
"mypy_self_check.ini",
63+
"-p",
64+
"mypy",
65+
"-p",
66+
"mypyc",
67+
],
68+
# Type check setup.py as well
69+
"self-packaging": [
70+
executable,
71+
"-m",
72+
"mypy",
73+
"--config-file",
74+
"mypy_self_check.ini",
75+
"setup.py",
6376
],
6477
# Lint
6578
"lint": ["pre-commit", "run", "--all-files"],

0 commit comments

Comments
 (0)