Skip to content

Commit 3705700

Browse files
committed
add debugging to pyre script ... invoke binary manually
1 parent 75c92f7 commit 3705700

File tree

3 files changed

+71
-1
lines changed

3 files changed

+71
-1
lines changed

.pyre_configuration

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818
"stubs"
1919
],
2020
"strict": true,
21-
"version": "0.0.101732536891"
2221
}

dev-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ wheel
3636
lintrunner
3737
lintrunner-adapters
3838

39+
# type check
40+
pyre-check-nightly=0.0.101732536891
3941

4042
# reduce backtracking
4143
grpcio==1.62.1

scripts/pyre.sh

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,74 @@
77

88
set -eux
99

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+
1079
pyre --version
1180
pyre --noninteractive check

0 commit comments

Comments
 (0)