##// END OF EJS Templates
pytype: stop excluding pycompat.py...
Matt Harbison -
r49320:12a43f85 default
parent child Browse files
Show More
@@ -1,79 +1,77 b''
1 #require pytype py3 slow
1 #require pytype py3 slow
2
2
3 $ cd $RUNTESTDIR/..
3 $ cd $RUNTESTDIR/..
4
4
5 Many of the individual files that are excluded here confuse pytype
5 Many of the individual files that are excluded here confuse pytype
6 because they do a mix of Python 2 and Python 3 things
6 because they do a mix of Python 2 and Python 3 things
7 conditionally. There's no good way to help it out with that as far as
7 conditionally. There's no good way to help it out with that as far as
8 I can tell, so let's just hide those files from it for now. We should
8 I can tell, so let's just hide those files from it for now. We should
9 endeavor to empty this list out over time, as some of these are
9 endeavor to empty this list out over time, as some of these are
10 probably hiding real problems.
10 probably hiding real problems.
11
11
12 mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo
12 mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo
13 mercurial/context.py # many [attribute-error]
13 mercurial/context.py # many [attribute-error]
14 mercurial/crecord.py # tons of [attribute-error], [module-attr]
14 mercurial/crecord.py # tons of [attribute-error], [module-attr]
15 mercurial/debugcommands.py # [wrong-arg-types]
15 mercurial/debugcommands.py # [wrong-arg-types]
16 mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error]
16 mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error]
17 mercurial/exchange.py # [attribute-error]
17 mercurial/exchange.py # [attribute-error]
18 mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
18 mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
19 mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
19 mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
20 mercurial/hgweb/wsgicgi.py # confused values in os.environ
20 mercurial/hgweb/wsgicgi.py # confused values in os.environ
21 mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
21 mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
22 mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
22 mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
23 mercurial/keepalive.py # [attribute-error]
23 mercurial/keepalive.py # [attribute-error]
24 mercurial/localrepo.py # [attribute-error]
24 mercurial/localrepo.py # [attribute-error]
25 mercurial/manifest.py # [unsupported-operands], [wrong-arg-types]
25 mercurial/manifest.py # [unsupported-operands], [wrong-arg-types]
26 mercurial/minirst.py # [unsupported-operands], [attribute-error]
26 mercurial/minirst.py # [unsupported-operands], [attribute-error]
27 mercurial/pure/osutil.py # [invalid-typevar], [not-callable]
27 mercurial/pure/osutil.py # [invalid-typevar], [not-callable]
28 mercurial/pure/parsers.py # [attribute-error]
28 mercurial/pure/parsers.py # [attribute-error]
29 mercurial/pycompat.py # bytes vs str issues
30 mercurial/repoview.py # [attribute-error]
29 mercurial/repoview.py # [attribute-error]
31 mercurial/sslutil.py # [attribute-error]
30 mercurial/sslutil.py # [attribute-error]
32 mercurial/testing/storage.py # tons of [attribute-error]
31 mercurial/testing/storage.py # tons of [attribute-error]
33 mercurial/ui.py # [attribute-error], [wrong-arg-types]
32 mercurial/ui.py # [attribute-error], [wrong-arg-types]
34 mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
33 mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
35 mercurial/utils/memorytop.py # not 3.6 compatible
34 mercurial/utils/memorytop.py # not 3.6 compatible
36 mercurial/win32.py # [not-callable]
35 mercurial/win32.py # [not-callable]
37 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
36 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
38 mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error]
37 mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error]
39 mercurial/wireprotov1peer.py # [attribute-error]
38 mercurial/wireprotov1peer.py # [attribute-error]
40 mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
39 mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
41
40
42 TODO: use --no-cache on test server? Caching the files locally helps during
41 TODO: use --no-cache on test server? Caching the files locally helps during
43 development, but may be a hinderance for CI testing.
42 development, but may be a hinderance for CI testing.
44
43
45 $ pytype -V 3.6 --keep-going --jobs auto mercurial \
44 $ pytype -V 3.6 --keep-going --jobs auto mercurial \
46 > -x mercurial/bundlerepo.py \
45 > -x mercurial/bundlerepo.py \
47 > -x mercurial/context.py \
46 > -x mercurial/context.py \
48 > -x mercurial/crecord.py \
47 > -x mercurial/crecord.py \
49 > -x mercurial/debugcommands.py \
48 > -x mercurial/debugcommands.py \
50 > -x mercurial/dispatch.py \
49 > -x mercurial/dispatch.py \
51 > -x mercurial/exchange.py \
50 > -x mercurial/exchange.py \
52 > -x mercurial/hgweb/hgweb_mod.py \
51 > -x mercurial/hgweb/hgweb_mod.py \
53 > -x mercurial/hgweb/server.py \
52 > -x mercurial/hgweb/server.py \
54 > -x mercurial/hgweb/wsgicgi.py \
53 > -x mercurial/hgweb/wsgicgi.py \
55 > -x mercurial/httppeer.py \
54 > -x mercurial/httppeer.py \
56 > -x mercurial/interfaces \
55 > -x mercurial/interfaces \
57 > -x mercurial/keepalive.py \
56 > -x mercurial/keepalive.py \
58 > -x mercurial/localrepo.py \
57 > -x mercurial/localrepo.py \
59 > -x mercurial/manifest.py \
58 > -x mercurial/manifest.py \
60 > -x mercurial/minirst.py \
59 > -x mercurial/minirst.py \
61 > -x mercurial/pure/osutil.py \
60 > -x mercurial/pure/osutil.py \
62 > -x mercurial/pure/parsers.py \
61 > -x mercurial/pure/parsers.py \
63 > -x mercurial/pycompat.py \
64 > -x mercurial/repoview.py \
62 > -x mercurial/repoview.py \
65 > -x mercurial/sslutil.py \
63 > -x mercurial/sslutil.py \
66 > -x mercurial/testing/storage.py \
64 > -x mercurial/testing/storage.py \
67 > -x mercurial/thirdparty \
65 > -x mercurial/thirdparty \
68 > -x mercurial/ui.py \
66 > -x mercurial/ui.py \
69 > -x mercurial/unionrepo.py \
67 > -x mercurial/unionrepo.py \
70 > -x mercurial/utils/memorytop.py \
68 > -x mercurial/utils/memorytop.py \
71 > -x mercurial/win32.py \
69 > -x mercurial/win32.py \
72 > -x mercurial/wireprotoframing.py \
70 > -x mercurial/wireprotoframing.py \
73 > -x mercurial/wireprotoserver.py \
71 > -x mercurial/wireprotoserver.py \
74 > -x mercurial/wireprotov1peer.py \
72 > -x mercurial/wireprotov1peer.py \
75 > -x mercurial/wireprotov1server.py \
73 > -x mercurial/wireprotov1server.py \
76 > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt
74 > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt
77
75
78 Only show the results on a failure, because the output on success is also
76 Only show the results on a failure, because the output on success is also
79 voluminous and variable.
77 voluminous and variable.
General Comments 0
You need to be logged in to leave comments. Login now