Skip to content

Commit

Permalink
log line
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Nov 10, 2023
1 parent 47273cd commit 06501f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/precommit/pytest-testit.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Check for the presence of @pytest.mark.testit in staged files
git diff --cached --name-only | while IFS= read -r file; do
if grep -q '@pytest\.mark\.testit' "$file"; then
if grep -n '@pytest\.mark\.testit' "$file"; then
echo "Error: Your commit contains '@pytest.mark.testit' in file '$file'. Please remove it before committing."
exit 1
fi
Expand Down

0 comments on commit 06501f8

Please sign in to comment.