Skip to content

Commit 4f56a6b

Browse files
use constant
1 parent 08c4c54 commit 4f56a6b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/test_notebooks.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
SINGLE_NOTEBOOK_TIMEOUT = 1200
11+
CONCURRENT_WORKERS = 4
1112

1213

1314
def should_skip(notebook_path: str, skip_list: List[str]) -> bool:
@@ -30,7 +31,11 @@ def run_notebook(notebook_path: str, root: str) -> Tuple[bool, Optional[str]]:
3031
return False, str(e)
3132

3233

33-
def run_all_notebooks(path: str=".", skip_list: List[str]=None, max_workers: int=4) -> None:
34+
def run_all_notebooks(
35+
path: str=".",
36+
skip_list: List[str]=None,
37+
max_workers: int=CONCURRENT_WORKERS,
38+
) -> None:
3439
abs_path = os.path.abspath(path)
3540
print(f"🔍 Scanning for notebooks in: {abs_path}\n")
3641

0 commit comments

Comments
 (0)