Skip to content

Commit

Permalink
export_checkの削除とテストが失敗する原因の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
FujisakiEx committed Jul 15, 2023
1 parent ab55baa commit fc3e0d8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
diff -q requirements-dev.txt requirements-dev.txt.check || \
diff -q requirements-test.txt requirements-test.txt.check || \
diff -q requirements-license.txt requirements-license.txt.check > /dev/null
if [$? = 1]; then
if [ $? = 1 ]; then
echo "poetry export has some diff"
exit 1
fi
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ repos:
pass_filenames: false
- id: poetry-export-check
name: poetry-export-check
entry: python poetry_export_check.py
language: python
entry: bash poetry_export_check.sh
language: system
stages: [commit]
10 changes: 0 additions & 10 deletions poetry_export_check.py

This file was deleted.

10 changes: 10 additions & 0 deletions poetry_export_check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
LF='
'

git diff --exit-code --quiet

if [ $? = 1 ]; then
echo "poetry export has some diff"
exit 1
fi

0 comments on commit fc3e0d8

Please sign in to comment.