Skip to content

Commit 2ccbaf7

Browse files
author
Thomas Preud'homme
committed
Automatically install mypy stubs
New mypy version 0.911 adds a --non-interactive option allowing us to install mypy stubs automatically and non interactively with --install-types --non-interactive. Reviewed By: PrzemekWirkus Differential Revision: https://reviews.llvm.org/D104775
1 parent cbb4a76 commit 2ccbaf7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tox.ini

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@ commands =
1717
basepython = python3
1818
skip_install = true
1919
deps =
20-
mypy
20+
mypy >= 0.910
2121
sqlalchemy-stubs
22-
types-Flask
23-
types-Jinja2
24-
types-PyYAML
25-
types-Werkzeug
26-
types-click
27-
types-pkg_resources
2822
commands =
2923
# No where close to passing yet, but nice to have.
30-
- mypy --junit-xml=junit-{envname}.xml --py2 --ignore-missing-imports lnt
31-
- mypy --junit-xml=junit-{envname}.xml --ignore-missing-imports lnt
24+
- mypy --install-types --non-interactive --junit-xml=junit-{envname}.xml --py2 --ignore-missing-imports lnt
25+
- mypy --install-types --non-interactive --junit-xml=junit-{envname}.xml --ignore-missing-imports lnt
3226

3327
[testenv:flake8]
3428
skip_install = true

0 commit comments

Comments
 (0)