Skip to content

Commit 28b6eb3

Browse files
author
Thomas Preud'homme
committed
Disable mypy cache
Mypy crashes with "AssertionError: Cannot find module for UpdatedBase" when analyzing lnt/server/db/migrations/upgrade_0_to_1.py with a populated cache. This leads to a number of files not being analyzed by mypy. Reviewed By: cmatthews Differential Revision: https://reviews.llvm.org/D95033
1 parent 9a0d67c commit 28b6eb3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ deps =
2121
sqlalchemy-stubs
2222
future
2323
commands =
24-
# No where close to passing yet, but nice to have.
25-
- mypy --install-types --non-interactive --junit-xml=junit-{envname}.xml --py2 --ignore-missing-imports lnt
26-
- mypy --install-types --non-interactive --junit-xml=junit-{envname}.xml --ignore-missing-imports lnt
24+
# Nowhere close to passing yet, but nice to have. The option
25+
# --no-incremental is currently needed to suppress warnings about
26+
# UpdatedBase when running tests several times. Future versions of
27+
# mypy should be checked to see if it can be removed and not get
28+
# warnings after running tox several times.
29+
- mypy --no-incremental --junit-xml=junit-{envname}.xml --py2 --ignore-missing-imports lnt
30+
- mypy --no-incremental --junit-xml=junit-{envname}.xml --ignore-missing-imports lnt
2731

2832
[testenv:flake8]
2933
skip_install = true

0 commit comments

Comments
 (0)