[PATCH 7 of 7 v2] import-checker: check docstrings in python

Yuya Nishihara yuya at tcha.org
Fri Apr 15 10:51:26 EDT 2016


On Wed, 13 Apr 2016 12:21:50 -0500, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1460497442 0
> #      Tue Apr 12 21:44:02 2016 +0000
> # Node ID 7e891620eaded8f66262d7007307f1b986a1ba5f
> # Parent  4fb9d603c45a64c98061abd264b3f691a6f336d0
> import-checker: check docstrings in python

I don't think it's worth running import-checker against doctests because
doctests inherit globals from the surrounding module. So we would never
write future imports in doctests, and would rarely have to add imports.


More information about the Mercurial-devel mailing list