contrib/check-pytype.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 27 Sep 2024 15:19:10 +0200
changeset 51975 76416b6e9d9b
parent 51876 51235f6aa067
child 52129 ff13068e9b1c
permissions -rwxr-xr-x
rev-branch-cache: properly ignores unaligned trailing data Previously, trailing data could lead to crash and would be written back to disk, disaligning all new data… This is no longer the cases. This was detected while playing with branchmap-v3 that access the rev-branch-cache much more aggressively.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49501
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
     1
#!/bin/sh
46898
e1d75c514ced tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
     2
49501
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
     3
set -e
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
     4
set -u
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
     5
51306
46280260d010 pytype: use "$(hg root)" instead of `hg root` to make shellcheck happier
Anton Shestakov <av6@dwimlabs.net>
parents: 51305
diff changeset
     6
cd "$(hg root)"
46898
e1d75c514ced tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
     7
51812
68ec9743ef04 contrib: print the version of pytype used to do the type checking
Matt Harbison <matt_harbison@yahoo.com>
parents: 51767
diff changeset
     8
printf "pytype version: "
68ec9743ef04 contrib: print the version of pytype used to do the type checking
Matt Harbison <matt_harbison@yahoo.com>
parents: 51767
diff changeset
     9
pytype --version
68ec9743ef04 contrib: print the version of pytype used to do the type checking
Matt Harbison <matt_harbison@yahoo.com>
parents: 51767
diff changeset
    10
49501
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    11
# Many of the individual files that are excluded here confuse pytype
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    12
# because they do a mix of Python 2 and Python 3 things
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    13
# conditionally. There's no good way to help it out with that as far as
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    14
# I can tell, so let's just hide those files from it for now. We should
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    15
# endeavor to empty this list out over time, as some of these are
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    16
# probably hiding real problems.
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    17
#
49868
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    18
# hgext/absorb.py               # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    19
# hgext/bugzilla.py             # [pyi-error], [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    20
# hgext/convert/bzr.py          # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    21
# hgext/convert/cvs.py          # [attribute-error], [wrong-arg-types]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    22
# hgext/convert/cvsps.py        # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    23
# hgext/convert/p4.py           # [wrong-arg-types] (__file: mercurial.utils.procutil._pfile -> IO)
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    24
# hgext/convert/subversion.py   # [attribute-error], [name-error], [pyi-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    25
# hgext/fastannotate/context.py # no linelog.copyfrom()
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    26
# hgext/fastannotate/formatter.py  # [unsupported-operands]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    27
# hgext/fsmonitor/__init__.py   # [name-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    28
# hgext/git/__init__.py         # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    29
# hgext/githelp.py              # [attribute-error] [wrong-arg-types]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    30
# hgext/hgk.py                  # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    31
# hgext/histedit.py             # [attribute-error], [wrong-arg-types]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    32
# hgext/keyword.py              # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    33
# hgext/largefiles/storefactory.py  # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    34
# hgext/lfs/__init__.py         # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    35
# hgext/narrow/narrowbundle2.py # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    36
# hgext/narrow/narrowcommands.py    # [attribute-error], [name-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    37
# hgext/rebase.py               # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    38
# hgext/remotefilelog/basepack.py   # [attribute-error], [wrong-arg-count]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    39
# hgext/remotefilelog/basestore.py  # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    40
# hgext/remotefilelog/contentstore.py   # [missing-parameter], [wrong-keyword-args], [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    41
# hgext/remotefilelog/fileserverclient.py  # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    42
# hgext/remotefilelog/shallowbundle.py     # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    43
# hgext/remotefilelog/remotefilectx.py  # [module-attr] (This is an actual bug)
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    44
# hgext/sqlitestore.py          # [attribute-error]
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    45
# hgext/zeroconf/__init__.py    # bytes vs str; tests fail on macOS
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    46
#
49501
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    47
# mercurial/context.py          # many [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    48
# mercurial/crecord.py          # tons of [attribute-error], [module-attr]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    49
# mercurial/debugcommands.py    # [wrong-arg-types]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    50
# mercurial/dispatch.py         # initstdio: No attribute ... on TextIO [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    51
# mercurial/exchange.py         # [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    52
# mercurial/hgweb/hgweb_mod.py  # [attribute-error], [name-error], [wrong-arg-types]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    53
# mercurial/hgweb/server.py     # [attribute-error], [name-error], [module-attr]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    54
# mercurial/hgweb/wsgicgi.py    # confused values in os.environ
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    55
# mercurial/httppeer.py         # [attribute-error], [wrong-arg-types]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    56
# mercurial/interfaces          # No attribute 'capabilities' on peer [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    57
# mercurial/keepalive.py        # [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    58
# mercurial/localrepo.py        # [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    59
# mercurial/minirst.py          # [unsupported-operands], [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    60
# mercurial/pure/parsers.py     # [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    61
# mercurial/repoview.py         # [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    62
# mercurial/testing/storage.py  # tons of [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    63
# mercurial/win32.py            # [not-callable]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    64
# mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    65
# mercurial/wireprotov1peer.py  # [attribute-error]
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    66
# mercurial/wireprotov1server.py  # BUG?: BundleValueError handler accesses subclass's attrs
46898
e1d75c514ced tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    67
49501
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    68
# TODO: use --no-cache on test server?  Caching the files locally helps during
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    69
#       development, but may be a hinderance for CI testing.
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    70
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
    71
# TODO: include hgext and hgext3rd
46898
e1d75c514ced tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    72
51305
05ce07bdb173 pytype: update check-pytype.sh to select target automatically
Anton Shestakov <av6@dwimlabs.net>
parents: 51291
diff changeset
    73
pytype --keep-going --jobs auto \
49868
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    74
    doc/check-seclevel.py hgdemandimport hgext mercurial \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    75
    -x hgext/absorb.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    76
    -x hgext/bugzilla.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    77
    -x hgext/convert/bzr.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    78
    -x hgext/convert/cvs.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    79
    -x hgext/convert/cvsps.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    80
    -x hgext/convert/p4.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    81
    -x hgext/convert/subversion.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    82
    -x hgext/fastannotate/context.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    83
    -x hgext/fastannotate/formatter.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    84
    -x hgext/fsmonitor/__init__.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    85
    -x hgext/git/__init__.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    86
    -x hgext/githelp.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    87
    -x hgext/hgk.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    88
    -x hgext/histedit.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    89
    -x hgext/keyword.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    90
    -x hgext/largefiles/storefactory.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    91
    -x hgext/lfs/__init__.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    92
    -x hgext/narrow/narrowbundle2.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    93
    -x hgext/narrow/narrowcommands.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    94
    -x hgext/rebase.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    95
    -x hgext/remotefilelog/basepack.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    96
    -x hgext/remotefilelog/basestore.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    97
    -x hgext/remotefilelog/contentstore.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    98
    -x hgext/remotefilelog/fileserverclient.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
    99
    -x hgext/remotefilelog/remotefilectx.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
   100
    -x hgext/remotefilelog/shallowbundle.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
   101
    -x hgext/sqlitestore.py \
a8893ec94a08 pytype: add coverage for parts of hgext
Matt Harbison <matt_harbison@yahoo.com>
parents: 49847
diff changeset
   102
    -x hgext/zeroconf/__init__.py \
49501
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   103
    -x mercurial/context.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   104
    -x mercurial/crecord.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   105
    -x mercurial/debugcommands.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   106
    -x mercurial/dispatch.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   107
    -x mercurial/exchange.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   108
    -x mercurial/hgweb/hgweb_mod.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   109
    -x mercurial/hgweb/server.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   110
    -x mercurial/hgweb/wsgicgi.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   111
    -x mercurial/httppeer.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   112
    -x mercurial/interfaces \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   113
    -x mercurial/keepalive.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   114
    -x mercurial/localrepo.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   115
    -x mercurial/minirst.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   116
    -x mercurial/pure/parsers.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   117
    -x mercurial/repoview.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   118
    -x mercurial/testing/storage.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   119
    -x mercurial/thirdparty \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   120
    -x mercurial/win32.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   121
    -x mercurial/wireprotoframing.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   122
    -x mercurial/wireprotov1peer.py \
08c3ecd899ae tests: migrate the pytype test to a shell script for easier CI processing
Matt Harbison <matt_harbison@yahoo.com>
parents: 49019
diff changeset
   123
    -x mercurial/wireprotov1server.py
49651
3e1869751cfe contrib: update check-pytype.sh to list stubs that caused pytype to crash
Matt Harbison <matt_harbison@yahoo.com>
parents: 49501
diff changeset
   124
51291
0bb5299800ca pytype: only output the "pytype crashed" message on error
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50803
diff changeset
   125
if find .pytype/pyi -name '*.pyi' | xargs grep -ql '# Caught error'; then
0bb5299800ca pytype: only output the "pytype crashed" message on error
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50803
diff changeset
   126
    echo 'pytype crashed while generating the following type stubs:'
0bb5299800ca pytype: only output the "pytype crashed" message on error
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50803
diff changeset
   127
    find .pytype/pyi -name '*.pyi' | xargs grep -l '# Caught error' | sort
0bb5299800ca pytype: only output the "pytype crashed" message on error
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50803
diff changeset
   128
fi