Skip to content

Commit 9d8bc9f

Browse files
committed
chore: ensure refresh_test_artifacts captures all contracts
1 parent 83ddcbb commit 9d8bc9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/refresh_test_artifacts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
def get_artifact_folders(root_dir: str) -> Iterator[Path]:
1818
for folder in Path(root_dir).iterdir():
19-
if folder.is_dir() and (folder / "contract.py").exists():
19+
if folder.is_dir() and not str(folder.stem).startswith((".", "__")):
2020
yield folder
2121

2222

2323
def compile_contract(folder: Path) -> None:
2424
logger.info(f"Compiling: {folder}")
25-
contract_path = folder / "contract.py"
25+
contract_path = folder
2626
(folder / "data").mkdir(exist_ok=True)
2727
compile_cmd = [
2828
"hatch",

0 commit comments

Comments
 (0)