Add official pre-commit file-contents-sorter

Remove unneeded bash script sort-codespell-wordlist.sh

https://github.com/pre-commit/pre-commit-hooks#file-contents-sorter
This commit is contained in:
John Bampton
2021-06-23 10:06:11 +10:00
parent 388bcb15e8
commit 7d2a2e10b3
2 changed files with 2 additions and 16 deletions
@@ -1,7 +0,0 @@
#!/usr/bin/env bash
CODESPELL_WORDLIST="codespell.txt"
temp_file=$(mktemp)
sort <"${CODESPELL_WORDLIST}" | uniq >"${temp_file}"
cat "${temp_file}" >"${CODESPELL_WORDLIST}"
rm "${temp_file}"