Skip to content

Commit 8490549

Browse files
committed
sync basic pre commit script I run
1 parent 25b0f84 commit 8490549

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/pre-commit

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
pip install .
6+
7+
export TAKEOUT_LOGS=5
8+
9+
mypy ./google_takeout_parser ./tests/
10+
flake8 ./google_takeout_parser ./tests/
11+
pytest
12+
if [[ -d ~/.cache/gt/Takeout-New/ ]]; then
13+
google_takeout_parser parse --action summary --no-cache ~/.cache/gt/Takeout-New
14+
else
15+
echo 'No Takeout data found in ~/.cache/gt/Takeout-New' >&2
16+
fi

0 commit comments

Comments
 (0)