-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (39 loc) · 1.52 KB
/
Makefile
File metadata and controls
52 lines (39 loc) · 1.52 KB
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
.PHONY=install
install:
pip install -e .
.PHONY=clean
clean:
rm -f tmd/storage/output/tmd*
rm -f tmd/storage/output/cached*
rm -f tmd/storage/output/preimpute_tmd.csv.gz
tmd/storage/output/tmd.csv.gz:
python tmd/create_taxcalc_input_variables.py
tmd/storage/output/tmd_weights.csv.gz:
python tmd/create_taxcalc_sampling_weights.py
tmd/storage/output/tmd_growfactors.csv:
python tmd/create_taxcalc_growth_factors.py
tmd/storage/output/cached_files:
python tmd/create_taxcalc_cached_files.py
tmd/storage/output/preimpute_tmd.csv.gz:
python tmd/create_taxcalc_imputed_variables.py
.PHONY=tmd_files
tmd_files: tmd/storage/output/tmd.csv.gz \
tmd/storage/output/tmd_weights.csv.gz \
tmd/storage/output/tmd_growfactors.csv \
tmd/storage/output/cached_files \
tmd/storage/output/preimpute_tmd.csv.gz
.PHONY=test
test: tmd_files
pytest . -v -n4 --ignore=tests/national_targets_pipeline --ignore=tests/test_fingerprint.py
.PHONY=data
data: install tmd_files test
.PHONY=format
format:
black . -l 79
PYLINT_DISABLE = duplicate-code,invalid-name,too-many-instance-attributes,too-many-locals,too-many-arguments,too-many-positional-arguments,too-many-statements,too-many-branches,too-many-nested-blocks,too-many-return-statements,broad-exception-caught,missing-function-docstring,missing-module-docstring,missing-class-docstring
PYLINT_OPTIONS = --disable=$(PYLINT_DISABLE) --score=no --jobs=4 \
--check-quote-consistency=yes
.PHONY=lint
lint:
@pycodestyle --ignore=E203,E731,E712,W503 .
@pylint $(PYLINT_OPTIONS) .