D7295: pytype: add a (very slow) test that executes pytype
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Nov 6 23:01:39 UTC 2019
durin42 created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This doesn't actually pass yet, but I wanted to share it early so
others can play with pytype.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7295
AFFECTED FILES
tests/test-check-pytype.t
CHANGE DETAILS
diff --git a/tests/test-check-pytype.t b/tests/test-check-pytype.t
new file mode 100644
--- /dev/null
+++ b/tests/test-check-pytype.t
@@ -0,0 +1,33 @@
+#require pytype py3 slow
+
+ $ cd $RUNTESTDIR/..
+
+Many of the individual files that are excluded here confuse pytype
+because they do a mix of Python 2 and Python 3 things
+conditionally. There's no good way to help it out with that as far as
+I can tell, so let's just hide those files from it for now. We should
+endeavor to empty this list out over time, as some of these are
+probably hiding real problems.
+
+ $ pytype mercurial \
+ > -x mercurial/encoding.py \
+ > -x mercurial/error.py \
+ > -x mercurial/pycompat.py \
+ > -x mercurial/urllibcompat.py \
+ > -x mercurial/lsprof.py \
+ > -x mercurial/i18n.py \
+ > -x mercurial/sslutil.py \
+ > -x mercurial/scmwindows.py \
+ > -x mercurial/keepalive.py \
+ > -x mercurial/windows.py \
+ > -x mercurial/wireprotoframing.py \
+ > -x mercurial/utils/stringutil.py \
+ > -x mercurial/hgweb/server.py \
+ > -x mercurial/hgweb/wsgicgi.py \
+ > -x mercurial/minirst.py \
+ > -x mercurial/chgserver.py \
+ > -x mercurial/bundlerepo.py \
+ > -x mercurial/interfaces \
+ > -x mercurial/cffi \
+ > -x mercurial/pure \
+ > -x mercurial/thirdparty
To: durin42, #hg-reviewers
Cc: mjpieters, mercurial-devel
More information about the Mercurial-devel
mailing list