Skip to content

Commit

Permalink
sort ignore patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Apr 21, 2024
1 parent f5cfd2f commit a3eb2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kitsunekko_tools/ignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def add(self, pattern: str):
Add a new ignore pattern to the list.
"""
self._patterns.add(pattern)
self._ignore_filepath.write_text("\n".join(self._patterns))
self._ignore_filepath.write_text("\n".join(sorted(self._patterns)))

def path(self) -> pathlib.Path:
"""
Expand Down

0 comments on commit a3eb2bd

Please sign in to comment.