Skip to content

Commit

Permalink
Better tox configuration (#15777)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sobolevn and pre-commit-ci[bot] authored Jul 29, 2023
1 parent 8792ff1 commit 710ad44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@
# time to run.
cmds = {
# Self type check
"self": [executable, "-m", "mypy", "--config-file", "mypy_self_check.ini", "-p", "mypy"],
"self": [
executable,
"-m",
"mypy",
"--config-file",
"mypy_self_check.ini",
"-p",
"mypy",
"-p",
"mypyc",
],
# Lint
"lint": ["pre-commit", "run", "--all-files"],
# Fast test cases only (this is the bulk of the test suite)
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ passenv =
MYPY_FORCE_COLOR
MYPY_FORCE_TERMINAL_WIDTH
commands =
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
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
python runtests.py self
python -m mypy --config-file mypy_self_check.ini misc --exclude misc/sync-typeshed.py

0 comments on commit 710ad44

Please sign in to comment.