forked from alteryx/featuretools
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
41 lines (34 loc) · 1.17 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
.PHONY: clean
clean:
find . -name '*.pyo' -delete
find . -name '*.pyc' -delete
find . -name __pycache__ -delete
find . -name '*~' -delete
.PHONY: lint
lint:
flake8 featuretools && isort --check-only --recursive featuretools
.PHONY: lint-fix
lint-fix:
autopep8 --in-place --recursive --max-line-length=100 --exclude="*/migrations/*" --select="E225,E303,E302,E203,E128,E231,E251,E271,E127,E126,E301,W291,W293,E226,E306,E221,E261,E111,E114" featuretools
isort --recursive featuretools
.PHONY: test
test: lint
pytest featuretools/
.PHONY: testcoverage
testcoverage: lint
pytest featuretools/ --cov=featuretools
.PHONY: installdeps
installdeps:
pip install --upgrade pip
pip install -e .
pip install -r dev-requirements.txt
.PHONY: checkdeps
checkdeps:
$(eval allow_list='scipy|numpy|pandas|tqdm|pyyaml|cloudpickle|distributed|dask|psutil|click|pyspark|koalas')
pip freeze | grep -v "alteryx/featuretools.git" | grep -E $(allow_list) > $(OUTPUT_PATH)
.PHONY: package_featuretools
package_featuretools:
python setup.py sdist
$(eval FT_VERSION=$(shell python setup.py --version))
tar -zxvf "dist/featuretools-${FT_VERSION}.tar.gz"
mv "featuretools-${FT_VERSION}" unpacked_sdist