We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3f883f + 021ea97 commit a3b4e0cCopy full SHA for a3b4e0c
.github/check_duplicate_cu_files.sh
@@ -0,0 +1,4 @@
1
+#!/bin/bash
2
+
3
+! [[ $(find device tests -name "*\.cu" | xargs -I {} basename {} | sort | uniq -d) ]]
4
+exit $?
.pre-commit-config.yaml
@@ -29,3 +29,11 @@ repos:
29
name: Check taboo code patterns
30
language: system
31
entry: .github/check_taboos.sh
32
33
+ - repo: local
34
+ hooks:
35
+ - id: check_duplicate_cu_files
36
+ name: Check duplicate .cu file names
37
+ language: system
38
+ entry: .github/check_duplicate_cu_files.sh
39
+ pass_filenames: false
0 commit comments