Skip to content

Commit

Permalink
sync basic pre commit script I run
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Sep 26, 2024
1 parent 25b0f84 commit 8490549
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -e

pip install .

export TAKEOUT_LOGS=5

mypy ./google_takeout_parser ./tests/
flake8 ./google_takeout_parser ./tests/
pytest
if [[ -d ~/.cache/gt/Takeout-New/ ]]; then
google_takeout_parser parse --action summary --no-cache ~/.cache/gt/Takeout-New
else
echo 'No Takeout data found in ~/.cache/gt/Takeout-New' >&2
fi

0 comments on commit 8490549

Please sign in to comment.