Skip to content

Commit

Permalink
feat(lint): use directory name
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Sep 19, 2022
1 parent 551ad44 commit 94be877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# chmod +x .git/hooks/pre-commit

FAILED_HEADER="\033[1;31mFAILED:\033[0m"
BAD_FILE=/tmp/otisweb.bad
GOOD_FILE=/tmp/otisweb.good
BAD_FILE="/tmp/${PWD##*/}.bad"
GOOD_FILE="/tmp/${PWD##*/}.good"

TO_CHECK=$(git ls-files '*.py' | grep -v migrations/ | grep -v /apps.py)
COMMIT_ID=$(git rev-parse HEAD)
Expand Down

0 comments on commit 94be877

Please sign in to comment.