From bc8ed051efdd44dcb36722184614225741f104ab Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 27 Nov 2023 17:38:10 +0200 Subject: [PATCH] Sort the passed arguments --- codespell_lib/_codespell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index db1810ab6f..a7bc025e61 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -1178,7 +1178,7 @@ def main(*args: str) -> int: return EX_USAGE bad_count = 0 - for filename in options.files: + for filename in sorted(options.files): # ignore hidden files if is_hidden(filename, options.check_hidden): continue