-
Notifications
You must be signed in to change notification settings - Fork 82
/
Makefile
92 lines (73 loc) · 4.5 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.PHONY: clean
clean:
find . -name '*.pyo' -delete
find . -name '*.pyc' -delete
find . -name __pycache__ -delete
find . -name '*~' -delete
find . -name '.coverage.*' -delete
.PHONY: lint
lint:
flake8 evalml && isort --check-only evalml && python docs/notebook_version_standardizer.py check-versions
pydocstyle evalml/ --convention=google --add-ignore=D107 --add-select=D400 --match-dir='^(?!(tests)).*'
black evalml -t py39 --check
.PHONY: lint-fix
lint-fix:
black -t py39 evalml
isort evalml
python docs/notebook_version_standardizer.py standardize
.PHONY: test
test:
pytest evalml/ --doctest-modules --doctest-continue-on-failure --timeout 300
.PHONY: test-no-parallel
test-no-parallel:
pytest evalml/ --doctest-modules --doctest-continue-on-failure --ignore=evalml/tests/automl_tests/parallel_tests --timeout 300
.PHONY: test-parallel
test-parallel:
pytest evalml/tests/automl_tests/parallel_tests/ --doctest-modules --doctest-continue-on-failure --timeout 300 --durations 0
.PHONY: git-test-parallel
git-test-parallel:
pytest evalml/tests/automl_tests/parallel_tests/ -n 1 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-parallel-junit.xml --doctest-continue-on-failure --timeout 300 --durations 0
.PHONY: git-test-minimal-deps-parallel
git-test-minimal-deps-parallel:
pytest evalml/tests/automl_tests/parallel_tests/ -n 1 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-minimal-deps-parallel-junit.xml --doctest-continue-on-failure --has-minimal-dependencies --timeout 300 --durations 0
.PHONY: git-test-automl-core
git-test-automl-core:
pytest evalml/tests/automl_tests evalml/tests/tuner_tests -n 2 --ignore=evalml/tests/automl_tests/parallel_tests --durations 0 --timeout 300 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-automl-core-junit.xml --doctest-continue-on-failure --has-minimal-dependencies
.PHONY: git-test-automl
git-test-automl:
pytest evalml/tests/automl_tests evalml/tests/tuner_tests -n 2 --ignore=evalml/tests/automl_tests/parallel_tests --durations 0 --timeout 300 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-automl-junit.xml --doctest-continue-on-failure
.PHONY: git-test-modelunderstanding-core
git-test-modelunderstanding-core:
pytest evalml/tests/model_understanding_tests -n 2 --durations 0 --timeout 300 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-modelunderstanding-core-junit.xml --doctest-continue-on-failure --has-minimal-dependencies
.PHONY: git-test-modelunderstanding
git-test-modelunderstanding:
pytest evalml/tests/model_understanding_tests -n 2 --durations 0 --timeout 300 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-modelunderstanding-junit.xml --doctest-continue-on-failure
.PHONY: git-test-other-core
git-test-other-core:
pytest evalml/tests --ignore evalml/tests/automl_tests/ --ignore evalml/tests/tuner_tests/ --ignore evalml/tests/model_understanding_tests/ -n 2 --durations 0 --timeout 300 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-other-core-junit.xml --doctest-continue-on-failure --has-minimal-dependencies
.PHONY: git-test-other
git-test-other:
pytest evalml/tests --ignore evalml/tests/automl_tests/ --ignore evalml/tests/tuner_tests/ --ignore evalml/tests/model_understanding_tests/ --ignore evalml/tests/pipeline_tests/ --ignore evalml/tests/utils_tests/ --ignore evalml/tests/component_tests/test_prophet_regressor.py --ignore evalml/tests/component_tests/test_components.py --ignore evalml/tests/component_tests/test_utils.py -n 2 --durations 0 --timeout 300 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-other-junit.xml --doctest-continue-on-failure
.PHONY: git-test-prophet
git-test-prophet:
pytest evalml/tests/component_tests/test_prophet_regressor.py evalml/tests/component_tests/test_components.py evalml/tests/component_tests/test_utils.py evalml/tests/pipeline_tests/ evalml/tests/utils_tests/ -n 2 --durations 0 --timeout 300 --doctest-modules --cov=evalml --junitxml=test-reports/git-test-prophet-junit.xml --doctest-continue-on-failure
.PHONY: installdeps
installdeps:
pip install --upgrade pip -q
pip install -e . -q
.PHONY: installdeps-core
installdeps-core:
pip install -e . -q
pip install -r core-requirements.txt -q
.PHONY: installdeps-test
installdeps-test:
pip install -e . -q
pip install -r test-requirements.txt -q
.PHONY: installdeps-dev
installdeps-dev:
pip install -e . -q
pip install -r dev-requirements.txt -q
.PHONY: installdeps-docs
installdeps-docs:
pip install -e . -q
pip install -r docs-requirements.txt -q