Can py.test test docstring for the numpy style?

Viewed 440

My pytest.ini currently looks like this:

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

So I already test for PEP8. But I would also like to test the docstrings for numpydoc format:

  • Are all parameters named in the correct order?
  • If there is a return statement, is there also Returns in the docstring?
  • ...

Is this possible

0 Answers
Related