##// END OF EJS Templates
pytype: add relative timestamp to the output if `ts` is available...
marmoute -
r53095:06973506 stable
parent child Browse files
Show More
@@ -1,124 +1,132
1 1 #!/bin/sh
2 2
3 3 set -e
4 4 set -u
5 5
6 6 cd "$(hg root)"
7 7
8 8 printf "pytype version: "
9 9 pytype --version
10 10
11 11 # Many of the individual files that are excluded here confuse pytype
12 12 # because they do a mix of Python 2 and Python 3 things
13 13 # conditionally. There's no good way to help it out with that as far as
14 14 # I can tell, so let's just hide those files from it for now. We should
15 15 # endeavor to empty this list out over time, as some of these are
16 16 # probably hiding real problems.
17 17 #
18 18 # hgext/absorb.py # [attribute-error]
19 19 # hgext/bugzilla.py # [pyi-error], [attribute-error]
20 20 # hgext/convert/bzr.py # [attribute-error]
21 21 # hgext/convert/cvs.py # [attribute-error], [wrong-arg-types]
22 22 # hgext/convert/cvsps.py # [attribute-error]
23 23 # hgext/convert/p4.py # [wrong-arg-types] (__file: mercurial.utils.procutil._pfile -> IO)
24 24 # hgext/convert/subversion.py # [attribute-error], [name-error], [pyi-error]
25 25 # hgext/fastannotate/context.py # no linelog.copyfrom()
26 26 # hgext/fastannotate/formatter.py # [unsupported-operands]
27 27 # hgext/fsmonitor/__init__.py # [name-error]
28 28 # hgext/git/__init__.py # [attribute-error]
29 29 # hgext/githelp.py # [attribute-error] [wrong-arg-types]
30 30 # hgext/hgk.py # [attribute-error]
31 31 # hgext/histedit.py # [attribute-error], [wrong-arg-types]
32 32 # hgext/keyword.py # [attribute-error]
33 33 # hgext/largefiles/storefactory.py # [attribute-error]
34 34 # hgext/lfs/__init__.py # [attribute-error]
35 35 # hgext/narrow/narrowbundle2.py # [attribute-error]
36 36 # hgext/narrow/narrowcommands.py # [attribute-error], [name-error]
37 37 # hgext/rebase.py # [attribute-error]
38 38 # hgext/remotefilelog/basepack.py # [attribute-error], [wrong-arg-count]
39 39 # hgext/remotefilelog/basestore.py # [attribute-error]
40 40 # hgext/remotefilelog/contentstore.py # [missing-parameter], [wrong-keyword-args], [attribute-error]
41 41 # hgext/remotefilelog/fileserverclient.py # [attribute-error]
42 42 # hgext/remotefilelog/shallowbundle.py # [attribute-error]
43 43 # hgext/remotefilelog/remotefilectx.py # [module-attr] (This is an actual bug)
44 44 # hgext/sqlitestore.py # [attribute-error]
45 45 # hgext/zeroconf/__init__.py # bytes vs str; tests fail on macOS
46 46 #
47 47 # mercurial/context.py # many [attribute-error]
48 48 # mercurial/crecord.py # tons of [attribute-error], [module-attr]
49 49 # mercurial/debugcommands.py # [wrong-arg-types]
50 50 # mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error]
51 51 # mercurial/exchange.py # [attribute-error]
52 52 # mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
53 53 # mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
54 54 # mercurial/hgweb/wsgicgi.py # confused values in os.environ
55 55 # mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
56 56 # mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
57 57 # mercurial/keepalive.py # [attribute-error]
58 58 # mercurial/localrepo.py # [attribute-error]
59 59 # mercurial/minirst.py # [unsupported-operands], [attribute-error]
60 60 # mercurial/pure/parsers.py # [attribute-error]
61 61 # mercurial/repoview.py # [attribute-error]
62 62 # mercurial/testing/storage.py # tons of [attribute-error]
63 63 # mercurial/win32.py # [not-callable]
64 64 # mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
65 65
66 66 # TODO: use --no-cache on test server? Caching the files locally helps during
67 67 # development, but may be a hinderance for CI testing.
68 68
69 69 # TODO: include hgext and hgext3rd
70 70
71 # use ts to produce some timing if available
72 if ! command -v ts; then
73 ts() {
74 cat
75 }
76 fi
77
71 78 pytype --keep-going --jobs auto \
72 79 doc/check-seclevel.py hgdemandimport hgext mercurial \
73 80 -x hgext/absorb.py \
74 81 -x hgext/bugzilla.py \
75 82 -x hgext/convert/bzr.py \
76 83 -x hgext/convert/cvs.py \
77 84 -x hgext/convert/cvsps.py \
78 85 -x hgext/convert/p4.py \
79 86 -x hgext/convert/subversion.py \
80 87 -x hgext/fastannotate/context.py \
81 88 -x hgext/fastannotate/formatter.py \
82 89 -x hgext/fsmonitor/__init__.py \
83 90 -x hgext/git/__init__.py \
84 91 -x hgext/githelp.py \
85 92 -x hgext/hgk.py \
86 93 -x hgext/histedit.py \
87 94 -x hgext/keyword.py \
88 95 -x hgext/largefiles/storefactory.py \
89 96 -x hgext/lfs/__init__.py \
90 97 -x hgext/narrow/narrowbundle2.py \
91 98 -x hgext/narrow/narrowcommands.py \
92 99 -x hgext/rebase.py \
93 100 -x hgext/remotefilelog/basepack.py \
94 101 -x hgext/remotefilelog/basestore.py \
95 102 -x hgext/remotefilelog/contentstore.py \
96 103 -x hgext/remotefilelog/fileserverclient.py \
97 104 -x hgext/remotefilelog/remotefilectx.py \
98 105 -x hgext/remotefilelog/shallowbundle.py \
99 106 -x hgext/sqlitestore.py \
100 107 -x hgext/zeroconf/__init__.py \
101 108 -x mercurial/context.py \
102 109 -x mercurial/crecord.py \
103 110 -x mercurial/debugcommands.py \
104 111 -x mercurial/dispatch.py \
105 112 -x mercurial/exchange.py \
106 113 -x mercurial/hgweb/hgweb_mod.py \
107 114 -x mercurial/hgweb/server.py \
108 115 -x mercurial/hgweb/wsgicgi.py \
109 116 -x mercurial/httppeer.py \
110 117 -x mercurial/interfaces \
111 118 -x mercurial/keepalive.py \
112 119 -x mercurial/localrepo.py \
113 120 -x mercurial/minirst.py \
114 121 -x mercurial/pure/parsers.py \
115 122 -x mercurial/repoview.py \
116 123 -x mercurial/testing/storage.py \
117 124 -x mercurial/thirdparty \
118 125 -x mercurial/win32.py \
119 -x mercurial/wireprotov1server.py
126 -x mercurial/wireprotov1server.py \
127 | ts -i "(%.s)" | ts -s "%.s"
120 128
121 129 if find .pytype/pyi -name '*.pyi' | xargs grep -ql '# Caught error'; then
122 130 echo 'pytype crashed while generating the following type stubs:'
123 131 find .pytype/pyi -name '*.pyi' | xargs grep -l '# Caught error' | sort
124 132 fi
General Comments 0
You need to be logged in to leave comments. Login now