Skip to content

Commit

Permalink
FIX: sort options in pre-commit error
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 8, 2023
1 parent 8e66207 commit 2605659
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/repoma/check_dev_files/setup_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def _check_required_options() -> None:
return
required_options = {
"project": [
"name",
"classifiers",
"description",
"license",
"classifiers",
"name",
"requires-python",
],
}
Expand All @@ -158,7 +158,7 @@ def _check_required_options() -> None:
summary = "\n"
for section, options in missing_options.items():
summary += f"[{section}]\n...\n"
for option in options:
for option in sorted(options):
summary += f"{option} = ...\n"
summary += "...\n"
raise PrecommitError(
Expand Down

0 comments on commit 2605659

Please sign in to comment.