【问题标题】:List of Tox-supported toolsTox 支持的工具列表
【发布时间】:2020-09-28 17:48:58
【问题描述】:

我如何知道 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/

【问题讨论】:

    标签: python mypy tox flake8


    【解决方案1】:

    不是tox 支持,而是工具支持(或不支持)。比如flake8可以read its settings from tox.inimypy doesn't

    没有详尽的清单列出了哪些工具可以读取tox.ini,哪些不可以。您必须分别阅读每个工具的文档。

    【讨论】:

      猜你喜欢
      • 2011-02-14
      • 2011-02-12
      • 1970-01-01
      • 1970-01-01
      • 2012-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多