Skip to content

Commit ef7261c

Browse files
committed
make order more deterministic
1 parent f8d768f commit ef7261c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lint_lib/lint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def lint_encoding_test(path: str) -> None:
174174

175175
def lint_encoding_tests(path: str) -> None:
176176
for root, dirs, files in os.walk(path):
177-
for file in files:
177+
for file in sorted(files):
178178
if not file.endswith(".dat"):
179179
continue
180180
lint_encoding_test(clean_path(join(root, file)))
@@ -219,7 +219,7 @@ def lint_tokenizer_test(path: str) -> None:
219219

220220
def lint_tokenizer_tests(path: str) -> None:
221221
for root, dirs, files in os.walk(path):
222-
for file in files:
222+
for file in sorted(files):
223223
if not file.endswith(".test"):
224224
continue
225225
lint_tokenizer_test(clean_path(join(root, file)))
@@ -254,7 +254,7 @@ def lint_tree_construction_test(path: str) -> None:
254254

255255
def lint_tree_construction_tests(path: str) -> None:
256256
for root, dirs, files in os.walk(path):
257-
for file in files:
257+
for file in sorted(files):
258258
if not file.endswith(".dat"):
259259
continue
260260
lint_tree_construction_test(clean_path(join(root, file)))

0 commit comments

Comments
 (0)