|
7 | 7 |
|
8 | 8 | set -eux |
9 | 9 |
|
| 10 | +## HACK: run pyre binary manually to see the error |
| 11 | + |
| 12 | +echo '{ |
| 13 | + "source_paths": { |
| 14 | + "kind": "simple", |
| 15 | + "paths": [ |
| 16 | + "/home/runner/work/torchx/torchx/scripts", |
| 17 | + "/home/runner/work/torchx/torchx" |
| 18 | + ] |
| 19 | + }, |
| 20 | + "search_paths": [ |
| 21 | + "/home/runner/work/torchx/torchx/stubs", |
| 22 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages", |
| 23 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stdlib", |
| 24 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/ExifRead", |
| 25 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/PyMySQL", |
| 26 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/PyYAML", |
| 27 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/aiofiles", |
| 28 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/chevron", |
| 29 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/colorama", |
| 30 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/ldap3", |
| 31 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/mysqlclient", |
| 32 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/paramiko", |
| 33 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/psycopg2", |
| 34 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/pycurl", |
| 35 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/python-dateutil", |
| 36 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/pytz", |
| 37 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/regex", |
| 38 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/requests", |
| 39 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/retry", |
| 40 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/tqdm", |
| 41 | + "/opt/hostedtoolcache/Python/3.10.15/x64/lib/pyre_check/typeshed/stubs/ujson" |
| 42 | + ], |
| 43 | + "excludes": [ |
| 44 | + ".*/build/.*", |
| 45 | + ".*/docs/.*", |
| 46 | + ".*/setup.py", |
| 47 | + ".*/IPython/core/tests/nonascii.*", |
| 48 | + ".*/torchx/examples/apps/compute_world_size/.*" |
| 49 | + ], |
| 50 | + "checked_directory_allowlist": [ |
| 51 | + "/home/runner/work/torchx/torchx", |
| 52 | + "/home/runner/work/torchx/torchx/scripts" |
| 53 | + ], |
| 54 | + "checked_directory_blocklist": [ |
| 55 | + "/home/runner/work/torchx/torchx/stubs" |
| 56 | + ], |
| 57 | + "extensions": [], |
| 58 | + "log_path": "/home/runner/work/torchx/torchx/.pyre", |
| 59 | + "global_root": "/home/runner/work/torchx/torchx", |
| 60 | + "debug": false, |
| 61 | + "python_version": { |
| 62 | + "major": 3, |
| 63 | + "minor": 10, |
| 64 | + "micro": 15 |
| 65 | + }, |
| 66 | + "system_platform": "linux", |
| 67 | + "shared_memory": {}, |
| 68 | + "parallel": true, |
| 69 | + "number_of_workers": 1, |
| 70 | + "additional_logging_sections": [ |
| 71 | + "-progress" |
| 72 | + ], |
| 73 | + "show_error_traces": false, |
| 74 | + "strict": true |
| 75 | +}' >/tmp/pyre_arguments |
| 76 | + |
| 77 | +/opt/hostedtoolcache/Python/3.10.15/x64/bin/pyre.bin check /tmp/pyre_arguments |
| 78 | + |
10 | 79 | pyre --version |
11 | 80 | pyre --noninteractive check |
0 commit comments