summaryrefslogtreecommitdiffhomepage
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJohn Bampton <[email protected]>2021-06-23 10:06:11 +1000
committerJohn Bampton <[email protected]>2021-06-23 10:55:26 +1000
commit7d2a2e10b3c82b660d3b4e6a6bd6df9a6e491b99 (patch)
tree2b3cb0ac4fa9454954ff655304924dbdd5718696 /.pre-commit-config.yaml
parent388bcb15e83af2e2eb1d9d5b9b20c66b05b7d8ef (diff)
downloadmruby-7d2a2e10b3c82b660d3b4e6a6bd6df9a6e491b99.tar.gz
mruby-7d2a2e10b3c82b660d3b4e6a6bd6df9a6e491b99.zip
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
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml11
1 files changed, 2 insertions, 9 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e7887aba9..933324ae5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -21,6 +21,8 @@ repos:
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
+ - id: file-contents-sorter
+ files: ^codespell\.txt$
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
@@ -54,12 +56,3 @@ repos:
entry: yamllint --strict -c .github/linters/.yaml-lint.yml
types: [yaml]
files: \.(yaml|yml)$
- - repo: local
- hooks:
- - id: sort-codespell-wordlist
- name: Sort codespell.txt
- description: Sort alphabetically and uniquify codespell.txt
- entry: ./scripts/ci/pre-commit/sort-codespell-wordlist.sh
- language: system
- files: ^\.pre-commit-config\.yaml$|^codespell\.txt$
- require_serial: true