Skip to content

Commit 8aaf791

Browse files
committed
add / fix comments
1 parent 4bef7ca commit 8aaf791

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.evergreen/scripts/resync-all-specs.py

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

88

99
def resync_specs(directory: pathlib.Path, errored: dict[str, str]) -> list[str]:
10+
"""Actually sync the specs"""
1011
for spec in os.scandir(directory):
1112
if not spec.is_dir():
1213
continue
@@ -35,6 +36,7 @@ def resync_specs(directory: pathlib.Path, errored: dict[str, str]) -> list[str]:
3536

3637

3738
def check_new_spec_directories(directory: pathlib.Path) -> list[str]:
39+
"""Check to see if there are any directories in the spec repo that don't exist in pymongo/test"""
3840
spec_dir = pathlib.Path(os.environ["MDB_SPECS"]) / "source"
3941
spec_set = {
4042
entry.name.replace("-", "_")
@@ -64,6 +66,7 @@ def check_new_spec_directories(directory: pathlib.Path) -> list[str]:
6466

6567

6668
def write_summary(succeeded: list[str], errored: dict[str, str], new: list[str]) -> None:
69+
"""Generate the PR description"""
6770
pr_body = ""
6871
if len(succeeded) > 0:
6972
pr_body += "The following specs were changed:\n- "
@@ -81,7 +84,7 @@ def write_summary(succeeded: list[str], errored: dict[str, str], new: list[str])
8184

8285
if pr_body != "":
8386
with open("spec_sync.txt", "w") as f:
84-
# replacements made for to be json
87+
# replacements made for proper json
8588
f.write(pr_body.replace("\n", "\\n").replace("\t", "\\t"))
8689

8790

0 commit comments

Comments
 (0)