Fix mypy command

- Remove requirements_dev.txt
- Add detailed versions
This commit is contained in:
mhchia 2019-07-24 16:34:55 +08:00
parent d3a948be47
commit 1ae306ae8f
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A
3 changed files with 8 additions and 15 deletions

View File

@ -1,7 +0,0 @@
pytest>=3.7
codecov
pytest-cov
pytest-asyncio
pylint
grpcio
grpcio-tools

View File

@ -10,17 +10,17 @@ classifiers = [
# pylint: disable=invalid-name # pylint: disable=invalid-name
extras_require = { extras_require = {
"test": [ "test": [
"codecov", "codecov>=2.0.15,<3.0.0",
"pytest", "pytest>=4.6.3,<5.0.0",
"pytest-cov", "pytest-cov>=2.7.1,<3.0.0",
"pytest-asyncio", "pytest-asyncio>=0.10.0,<1.0.0",
], ],
"lint": [ "lint": [
"pylint", "pylint>=2.3.1,<3.0.0",
"mypy", "mypy>=0.701,<1.0",
], ],
"dev": [ "dev": [
"tox", "tox>=3.13.2,<4.0.0",
], ],
} }

View File

@ -18,4 +18,4 @@ basepython = python3
extras = dev extras = dev
commands = commands =
pylint --rcfile={toxinidir}/.pylintrc libp2p tests pylint --rcfile={toxinidir}/.pylintrc libp2p tests
mypy -p p2pclient --config-file {toxinidir}/mypy.ini mypy -p libp2p --config-file {toxinidir}/mypy.ini