Skip to content

Commit

Permalink
Process files in sorted rather than arbitrary order
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 26, 2023
1 parent 9f50df5 commit b02d448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ def main(*args: str) -> int:
continue
if is_hidden(root, options.check_hidden): # dir itself hidden
continue
for file_ in files:
for file_ in sorted(files):
# ignore hidden files in directories
if is_hidden(file_, options.check_hidden):
continue
Expand Down

0 comments on commit b02d448

Please sign in to comment.