3

我的 pytest.ini 目前看起来像这样:

[pytest]
addopts = --doctest-modules --cov=. --cov-report html --pep8 --flakes
doctest_encoding = utf-8

所以我已经测试了 PEP8。但我也想测试 numpydoc 格式的文档字符串:

  • 所有参数的命名顺序是否正确?
  • 如果有返回语句,文档字符串中是否也有Returns
  • ...

这可能吗

4

0 回答 0