-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
66 lines (55 loc) · 1.61 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
57
58
59
60
61
62
63
64
65
66
.PHONY=install
install:
pip install -e .
python tmd/download_prerequisites.py
.PHONY=clean
clean:
rm -f tmd/storage/output/*
tmd/storage/output/tmd.csv.gz: \
tmd/imputation_assumptions.py \
tmd/datasets/tmd.py \
tmd/datasets/puf.py \
tmd/datasets/cps.py \
tmd/datasets/taxcalc_dataset.py \
tmd/utils/taxcalc_utils.py \
tmd/utils/imputation.py \
tmd/utils/is_tax_filer.py \
tmd/utils/pension_contributions.py \
tmd/utils/soi_replication.py \
tmd/utils/soi_targets.py \
tmd/utils/reweight.py \
tmd/utils/trace.py \
tmd/create_taxcalc_input_variables.py
python tmd/create_taxcalc_input_variables.py
tmd/storage/output/tmd_growfactors.csv: \
tmd/storage/input/puf_growfactors.csv \
tmd/create_taxcalc_growth_factors.py
python tmd/create_taxcalc_growth_factors.py
tmd/storage/output/tmd_weights.csv.gz: \
tmd/storage/input/cbo_population_forecast.yaml \
tmd/storage/output/tmd.csv.gz \
tmd/create_taxcalc_sampling_weights.py
python tmd/create_taxcalc_sampling_weights.py
.PHONY=tmd_files
tmd_files: tmd/storage/output/tmd.csv.gz \
tmd/storage/output/tmd_growfactors.csv \
tmd/storage/output/tmd_weights.csv.gz
.PHONY=test
test: tmd_files
pytest . -v -n4
.PHONY=data
data: install tmd_files test
.PHONY=format
format:
black . -l 79
.PHONY=documentation
documentation:
jb build docs/book
.PHONY=reweighting-visualisation
reweighting-visualisation:
tensorboard --logdir=tmd/storage/output/reweighting
.PHONY=tax-expenditures-report
tax-expenditures-report: tmd_files
-pytest . --disable-warnings -m taxexp
diff tmd/storage/output/tax_expenditures \
tmd/examination/tax_expenditures