Skip to content

Commit 710ad44

Browse files
Better tox configuration (#15777)
It solves two problems: 1. `fix_annotate` and `async_matrix` were removed in #15728 2. It is better to reuse stuff like `runtests.py` not to rewrite the same command we already have --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8792ff1 commit 710ad44

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

runtests.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@
4848
# time to run.
4949
cmds = {
5050
# Self type check
51-
"self": [executable, "-m", "mypy", "--config-file", "mypy_self_check.ini", "-p", "mypy"],
51+
"self": [
52+
executable,
53+
"-m",
54+
"mypy",
55+
"--config-file",
56+
"mypy_self_check.ini",
57+
"-p",
58+
"mypy",
59+
"-p",
60+
"mypyc",
61+
],
5262
# Lint
5363
"lint": ["pre-commit", "run", "--all-files"],
5464
# Fast test cases only (this is the bulk of the test suite)

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ passenv =
5353
MYPY_FORCE_COLOR
5454
MYPY_FORCE_TERMINAL_WIDTH
5555
commands =
56-
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
57-
python -m mypy --config-file mypy_self_check.ini misc --exclude misc/fix_annotate.py --exclude misc/async_matrix.py --exclude misc/sync-typeshed.py
56+
python runtests.py self
57+
python -m mypy --config-file mypy_self_check.ini misc --exclude misc/sync-typeshed.py

0 commit comments

Comments
 (0)