diff --git a/mypy-requirements.txt b/mypy-requirements.txt new file mode 100644 index 0000000000..6b0535fc1c --- /dev/null +++ b/mypy-requirements.txt @@ -0,0 +1 @@ +mypy==1.9.0 diff --git a/tox.ini b/tox.ini index 4cc82033f0..53ecc2d722 100644 --- a/tox.ini +++ b/tox.ini @@ -93,7 +93,6 @@ envlist = deps = coverage: pytest coverage: pytest-cov - mypy,mypyinstalled: mypy ; proto 3 and 4 tests install the respective version of protobuf proto3: protobuf~=3.19.0 @@ -109,6 +108,8 @@ setenv = commands_pre = + mypy: pip install -r {toxinidir}/mypy-requirements.txt + api: pip install -r {toxinidir}/opentelemetry-api/test-requirements.txt sdk: pip install -r {toxinidir}/opentelemetry-sdk/test-requirements.txt