generated from michplunkett/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (43 loc) · 1.14 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
48
49
50
51
52
53
54
55
56
default: create-requirements lint
.PHONY: lint
lint:
pre-commit run --all-files
.PHONY: create-requirements
create-requirements:
poetry export --without-hashes --format=requirements.txt > requirements.txt
# Group level commands
.PHONY: get-legislation-data
get-legislation-data:
python -m legislation_analysis --congress --scotus -d
# Individual function commands
.PHONY: get-congress-data
get-congress-data:
python -m legislation_analysis --congress -d
.PHONY: get-scotus-data
get-scotus-data:
python -m legislation_analysis --scotus -d
.PHONY: clean-data
clean-data:
python -m legislation_analysis --clean -d
.PHONY: tokenize-data
tokenize-data:
python -m legislation_analysis --tokenize -d
.PHONY: pos-tag-data
pos-tag-data:
python -m legislation_analysis --pos-tag -d
.PHONY: ner-data
ner-data:
python -m legislation_analysis --ner -d
.PHONY: cluster-data
cluster-data:
python -m legislation_analysis --cluster -d
.PHONY: model-data
model-data:
python -m legislation_analysis --model -d
.PHONY: network-data
network-data:
python -m legislation_analysis --network -d
# run all commands
.PHONY: run
run:
make get-legislation-data --all