##// END OF EJS Templates
pytype: stop excluding lsprof.py...
Matt Harbison -
r49305:abac7983 default
parent child Browse files
Show More
@@ -1,100 +1,98 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/chgserver.py # [attribute-error]
13 mercurial/chgserver.py # [attribute-error]
14 mercurial/cmdutil.py # No attribute 'markcopied' on mercurial.context.filectx [attribute-error]
14 mercurial/cmdutil.py # No attribute 'markcopied' on mercurial.context.filectx [attribute-error]
15 mercurial/context.py # many [attribute-error]
15 mercurial/context.py # many [attribute-error]
16 mercurial/copies.py # No attribute 'items' on None [attribute-error]
16 mercurial/copies.py # No attribute 'items' on None [attribute-error]
17 mercurial/crecord.py # tons of [attribute-error], [module-attr]
17 mercurial/crecord.py # tons of [attribute-error], [module-attr]
18 mercurial/debugcommands.py # [wrong-arg-types]
18 mercurial/debugcommands.py # [wrong-arg-types]
19 mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error]
19 mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error]
20 mercurial/exchange.py # [attribute-error]
20 mercurial/exchange.py # [attribute-error]
21 mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
21 mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
22 mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
22 mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
23 mercurial/hgweb/webcommands.py # [missing-parameter]
23 mercurial/hgweb/webcommands.py # [missing-parameter]
24 mercurial/hgweb/wsgicgi.py # confused values in os.environ
24 mercurial/hgweb/wsgicgi.py # confused values in os.environ
25 mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
25 mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
26 mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
26 mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
27 mercurial/keepalive.py # [attribute-error]
27 mercurial/keepalive.py # [attribute-error]
28 mercurial/localrepo.py # [attribute-error]
28 mercurial/localrepo.py # [attribute-error]
29 mercurial/lsprof.py # unguarded import
30 mercurial/manifest.py # [unsupported-operands], [wrong-arg-types]
29 mercurial/manifest.py # [unsupported-operands], [wrong-arg-types]
31 mercurial/minirst.py # [unsupported-operands], [attribute-error]
30 mercurial/minirst.py # [unsupported-operands], [attribute-error]
32 mercurial/patch.py # [wrong-arg-types]
31 mercurial/patch.py # [wrong-arg-types]
33 mercurial/pure/osutil.py # [invalid-typevar], [not-callable]
32 mercurial/pure/osutil.py # [invalid-typevar], [not-callable]
34 mercurial/pure/parsers.py # [attribute-error]
33 mercurial/pure/parsers.py # [attribute-error]
35 mercurial/pycompat.py # bytes vs str issues
34 mercurial/pycompat.py # bytes vs str issues
36 mercurial/repoview.py # [attribute-error]
35 mercurial/repoview.py # [attribute-error]
37 mercurial/sslutil.py # [attribute-error]
36 mercurial/sslutil.py # [attribute-error]
38 mercurial/statprof.py # bytes vs str on TextIO.write() [wrong-arg-types]
37 mercurial/statprof.py # bytes vs str on TextIO.write() [wrong-arg-types]
39 mercurial/testing/storage.py # tons of [attribute-error]
38 mercurial/testing/storage.py # tons of [attribute-error]
40 mercurial/ui.py # [attribute-error], [wrong-arg-types]
39 mercurial/ui.py # [attribute-error], [wrong-arg-types]
41 mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
40 mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
42 mercurial/util.py # [attribute-error], [wrong-arg-count]
41 mercurial/util.py # [attribute-error], [wrong-arg-count]
43 mercurial/utils/procutil.py # [attribute-error], [module-attr], [bad-return-type]
42 mercurial/utils/procutil.py # [attribute-error], [module-attr], [bad-return-type]
44 mercurial/utils/stringutil.py # [module-attr], [wrong-arg-count]
43 mercurial/utils/stringutil.py # [module-attr], [wrong-arg-count]
45 mercurial/utils/memorytop.py # not 3.6 compatible
44 mercurial/utils/memorytop.py # not 3.6 compatible
46 mercurial/win32.py # [not-callable]
45 mercurial/win32.py # [not-callable]
47 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
46 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
48 mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error]
47 mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error]
49 mercurial/wireprotov1peer.py # [attribute-error]
48 mercurial/wireprotov1peer.py # [attribute-error]
50 mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
49 mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
51 mercurial/wireprotov2server.py # [unsupported-operands], [attribute-error]
50 mercurial/wireprotov2server.py # [unsupported-operands], [attribute-error]
52
51
53 TODO: use --no-cache on test server? Caching the files locally helps during
52 TODO: use --no-cache on test server? Caching the files locally helps during
54 development, but may be a hinderance for CI testing.
53 development, but may be a hinderance for CI testing.
55
54
56 $ pytype -V 3.6 --keep-going --jobs auto mercurial \
55 $ pytype -V 3.6 --keep-going --jobs auto mercurial \
57 > -x mercurial/bundlerepo.py \
56 > -x mercurial/bundlerepo.py \
58 > -x mercurial/chgserver.py \
57 > -x mercurial/chgserver.py \
59 > -x mercurial/cmdutil.py \
58 > -x mercurial/cmdutil.py \
60 > -x mercurial/context.py \
59 > -x mercurial/context.py \
61 > -x mercurial/copies.py \
60 > -x mercurial/copies.py \
62 > -x mercurial/crecord.py \
61 > -x mercurial/crecord.py \
63 > -x mercurial/debugcommands.py \
62 > -x mercurial/debugcommands.py \
64 > -x mercurial/dispatch.py \
63 > -x mercurial/dispatch.py \
65 > -x mercurial/exchange.py \
64 > -x mercurial/exchange.py \
66 > -x mercurial/hgweb/hgweb_mod.py \
65 > -x mercurial/hgweb/hgweb_mod.py \
67 > -x mercurial/hgweb/server.py \
66 > -x mercurial/hgweb/server.py \
68 > -x mercurial/hgweb/webcommands.py \
67 > -x mercurial/hgweb/webcommands.py \
69 > -x mercurial/hgweb/wsgicgi.py \
68 > -x mercurial/hgweb/wsgicgi.py \
70 > -x mercurial/httppeer.py \
69 > -x mercurial/httppeer.py \
71 > -x mercurial/interfaces \
70 > -x mercurial/interfaces \
72 > -x mercurial/keepalive.py \
71 > -x mercurial/keepalive.py \
73 > -x mercurial/localrepo.py \
72 > -x mercurial/localrepo.py \
74 > -x mercurial/lsprof.py \
75 > -x mercurial/manifest.py \
73 > -x mercurial/manifest.py \
76 > -x mercurial/minirst.py \
74 > -x mercurial/minirst.py \
77 > -x mercurial/patch.py \
75 > -x mercurial/patch.py \
78 > -x mercurial/pure/osutil.py \
76 > -x mercurial/pure/osutil.py \
79 > -x mercurial/pure/parsers.py \
77 > -x mercurial/pure/parsers.py \
80 > -x mercurial/pycompat.py \
78 > -x mercurial/pycompat.py \
81 > -x mercurial/repoview.py \
79 > -x mercurial/repoview.py \
82 > -x mercurial/sslutil.py \
80 > -x mercurial/sslutil.py \
83 > -x mercurial/statprof.py \
81 > -x mercurial/statprof.py \
84 > -x mercurial/testing/storage.py \
82 > -x mercurial/testing/storage.py \
85 > -x mercurial/thirdparty \
83 > -x mercurial/thirdparty \
86 > -x mercurial/ui.py \
84 > -x mercurial/ui.py \
87 > -x mercurial/unionrepo.py \
85 > -x mercurial/unionrepo.py \
88 > -x mercurial/utils/procutil.py \
86 > -x mercurial/utils/procutil.py \
89 > -x mercurial/utils/stringutil.py \
87 > -x mercurial/utils/stringutil.py \
90 > -x mercurial/utils/memorytop.py \
88 > -x mercurial/utils/memorytop.py \
91 > -x mercurial/win32.py \
89 > -x mercurial/win32.py \
92 > -x mercurial/wireprotoframing.py \
90 > -x mercurial/wireprotoframing.py \
93 > -x mercurial/wireprotoserver.py \
91 > -x mercurial/wireprotoserver.py \
94 > -x mercurial/wireprotov1peer.py \
92 > -x mercurial/wireprotov1peer.py \
95 > -x mercurial/wireprotov1server.py \
93 > -x mercurial/wireprotov1server.py \
96 > -x mercurial/wireprotov2server.py \
94 > -x mercurial/wireprotov2server.py \
97 > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt
95 > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt
98
96
99 Only show the results on a failure, because the output on success is also
97 Only show the results on a failure, because the output on success is also
100 voluminous and variable.
98 voluminous and variable.
General Comments 0
You need to be logged in to leave comments. Login now