yxma commited on
Commit
4fb6456
·
verified ·
1 Parent(s): f3e4465

refresh the published scripts and USAGE.md from the repo

Browse files
scripts/test_doc_references.py CHANGED
@@ -15,7 +15,6 @@ same failure — published but unrunnable.
15
  """
16
  from __future__ import annotations
17
 
18
- from react_toolbox.staging import staging_dir
19
 
20
  import re
21
  import sys
@@ -24,6 +23,8 @@ from pathlib import Path
24
 
25
  sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
26
 
 
 
27
  RESULTS: list[tuple[bool, str, str]] = []
28
  REPO = "yxma/React"
29
  PATH_RE = re.compile(
 
15
  """
16
  from __future__ import annotations
17
 
 
18
 
19
  import re
20
  import sys
 
23
 
24
  sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
25
 
26
+ from react_toolbox.staging import staging_dir
27
+
28
  RESULTS: list[tuple[bool, str, str]] = []
29
  REPO = "yxma/React"
30
  PATH_RE = re.compile(
scripts/test_published_toolbox.py CHANGED
@@ -14,16 +14,21 @@ probe package from the Hub, and runs the documented workflow against both.
14
  """
15
  from __future__ import annotations
16
 
17
- from react_toolbox.staging import staging_dir
18
 
19
  import json
20
  import shutil
21
  import subprocess
22
  import sys
 
 
23
  import tempfile
24
  import textwrap
25
  from pathlib import Path
26
 
 
 
 
 
27
  RESULTS: list[tuple[bool, str, str]] = []
28
 
29
 
 
14
  """
15
  from __future__ import annotations
16
 
 
17
 
18
  import json
19
  import shutil
20
  import subprocess
21
  import sys
22
+
23
+
24
  import tempfile
25
  import textwrap
26
  from pathlib import Path
27
 
28
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
29
+
30
+ from react_toolbox.staging import staging_dir
31
+
32
  RESULTS: list[tuple[bool, str, str]] = []
33
 
34
 
scripts/test_reproducible.py CHANGED
@@ -19,16 +19,21 @@ checked.
19
  """
20
  from __future__ import annotations
21
 
22
- from react_toolbox.staging import staging_dir
23
 
24
  import json
25
  import os
26
  import shutil
27
  import subprocess
28
  import sys
 
 
29
  import tempfile
30
  from pathlib import Path
31
 
 
 
 
 
32
  RESULTS: list[tuple[bool, str, str]] = []
33
  REPO = "yxma/React"
34
 
 
19
  """
20
  from __future__ import annotations
21
 
 
22
 
23
  import json
24
  import os
25
  import shutil
26
  import subprocess
27
  import sys
28
+
29
+
30
  import tempfile
31
  from pathlib import Path
32
 
33
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
34
+
35
+ from react_toolbox.staging import staging_dir
36
+
37
  RESULTS: list[tuple[bool, str, str]] = []
38
  REPO = "yxma/React"
39
 
scripts/test_site.py CHANGED
@@ -18,7 +18,6 @@ overlay canvases actually cover their images.
18
  """
19
  from __future__ import annotations
20
 
21
- from react_toolbox.staging import staging_dir
22
 
23
  import argparse
24
  import asyncio
@@ -31,6 +30,8 @@ from pathlib import Path
31
 
32
  sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
33
 
 
 
34
  RESULTS: list[tuple[bool, str, str]] = []
35
  BASE = "https://yxma-react-force-recovery.static.hf.space"
36
  PAGES = ["testset/index.html", "probes/index.html",
 
18
  """
19
  from __future__ import annotations
20
 
 
21
 
22
  import argparse
23
  import asyncio
 
30
 
31
  sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
32
 
33
+ from react_toolbox.staging import staging_dir
34
+
35
  RESULTS: list[tuple[bool, str, str]] = []
36
  BASE = "https://yxma-react-force-recovery.static.hf.space"
37
  PAGES = ["testset/index.html", "probes/index.html",