We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 371f604 commit 3e5e2b5Copy full SHA for 3e5e2b5
scripts/lint/check_nomerge_comments.sh
@@ -0,0 +1,10 @@
1
+#!/usr/bin/env bash
2
+
3
+FAIL=0
4
5
+if grep -n '\(#\|//\)\([[:space:]]*\)NOMERGE' $@; then
6
+ echo -e "NOMERGE comments found! Remove them before merging\n"
7
+ FAIL=1
8
+fi
9
10
+exit $FAIL
scripts/lint/lint.sh
@@ -52,6 +52,7 @@ function run_tests() {
52
run "check_added_large_files" python3 -m pre_commit_hooks.check_added_large_files --enforce-all $ALL_FILES --maxkb=120
53
run "check_shebang_scripts_are_executable" python3 -m pre_commit_hooks.check_shebang_scripts_are_executable $ALL_FILES
54
run "check_shebang_format" $DIR/check_shebang_format.sh $ALL_FILES
55
+ run "check_nomerge_comments" $DIR/check_nomerge_comments.sh $ALL_FILES
56
57
if [[ -z "$FAST" ]]; then
58
run "mypy" mypy $PYTHON_FILES
0 commit comments