citybert/Makefile

21 lines
470 B
Makefile
Raw Normal View History

2023-05-04 19:05:33 +00:00
city_distances.csv: check generate_data.py
2023-05-04 10:03:15 +00:00
bash -c 'time python generate_data.py'
2023-05-04 19:05:33 +00:00
train: check train.py
bash -c 'time python train.py'
eval: check eval.py
bash -c 'time python eval.py'
2023-05-04 10:03:15 +00:00
lint:
isort --profile=black .
black .
flake8 --max-line-length=88 .
2023-05-04 19:05:33 +00:00
check: lint
@echo "Checking for unstaged or untracked changes..."
@git diff-index --quiet HEAD -- || { echo "Unstaged or untracked changes detected!"; exit 1; }
2023-05-04 10:03:15 +00:00
clean:
rm -rf output/
rm -rf checkpoints/