Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,3 @@ repos:
types: [python]
pass_filenames: false
files: \.py$

- repo: local
hooks:
- id: check-pruna-pro
name: Check for pruna_pro
entry: >
bash -c '
git diff --cached --name-status |
grep -v "^D" |
cut -f2- |
while IFS= read -r file; do
if [ -f "$file" ] && [ "$file" != ".pre-commit-config.yaml" ] && grep -q "pruna_pro" "$file"; then
echo "Error: pruna_pro found in staged file $file"
exit 1
fi
done
'
language: system
stages: [pre-commit]
types: [python]
files: \.py$
Loading