-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (36 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: all
all = help
.venv:
@echo "Installing project dependencies.."
@poetry install --no-root
hooks:
@echo "Adding pre-commit hooks.."
@poetry run pre-commit install
test:
@echo "Running unit tests.."
@poetry run pytest
lint:
@echo "Running lint tests.."
@poetry run pre-commit run --all-files
clean:
@echo "Removing .venv"
@rm -rf .venv
@poetry env remove --all
install-requirements:
@while read requirement; do poetry add "$$requirement"; done < requirements.txt
run:
@echo "Running the application.."
@poetry run python src/overture_downloader.py
delete_data:
@echo "Deleting data.."
@rm -rf overture_data
help:
@echo "Available make commands for setup:"
@echo " make help - Print help"
@echo " make .venv - Install project dependencies"
@echo " make hooks - Add pre-commit hooks"
@echo " make test - Run unit tests"
@echo " make lint - Run lint tests"
@echo " make clean - Remove .venv"
@echo " make install-requirements Install dependencies from requirements.txt"
@echo ""