Skip to content

Commit 53640d5

Browse files
committed
switch to published no-dupes pre-commit hook
1 parent e955c7e commit 53640d5

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,7 @@ repos:
2424
hooks:
2525
- id: talisman-commit
2626
entry: cmd --githook pre-commit
27-
- repo: local
27+
- repo: https://github.com/ebi-metagenomics/no_talisman_dupes
28+
rev: 'v0.1.0'
2829
hooks:
29-
- id: talismanrc-no-duplicate-filenames
30-
name: Fail on duplicate filenames in .talismanrc
31-
entry: >-
32-
bash -c '
33-
dupes=$(grep -E "^[[:space:]]*- filename:" .talismanrc \
34-
| sed -E "s/^[[:space:]]*- filename:[[:space:]]*//" \
35-
| sort | uniq -d);
36-
if [ -n "$dupes" ]; then
37-
echo "Duplicate filename entries in .talismanrc:";
38-
echo "$dupes";
39-
exit 1;
40-
fi'
41-
language: system
42-
files: ^\.talismanrc$
43-
pass_filenames: false
30+
- id: talisman-no-duplicate-filenames

0 commit comments

Comments
 (0)