问题描述
我怎么知道tox是否提供对特定工具的支持?
具体来说,我想知道为什么此tox.ini部分适用于flake8:
[flake8]
max-line-length = 120 # works like a charm
[testenv:flake8]
deps = flake8
commands = flake8 mypackage/
而这个不适用于mypy:
[mypy]
ignore-missing-imports = True # won't be taken into account
[testenv:mypy]
deps = mypy
commands = mypy mypackage/
解决方法
它不是tox
支持,是工具支持(支持)。例如,flake8
可以read its settings from tox.ini
和mypy
doesn't。
没有详尽的清单列出哪些工具可以读tox.ini
,哪些不能。您必须分别阅读每种工具的文档。