-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
67 lines (54 loc) · 1.44 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
TIMEOUT ?= 300
.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:
python docs/notebook_version_standardizer.py check-versions
python docs/notebook_version_standardizer.py check-execution
black . --check --config=./pyproject.toml
ruff . --config=./pyproject.toml
.PHONY: lint-fix
lint-fix:
python docs/notebook_version_standardizer.py standardize
black . --config=./pyproject.toml
ruff . --config=./pyproject.toml --fix
.PHONY: test
test:
pytest tests/
.PHONY: installdeps
installdeps:
pip install --upgrade pip
pip install -e .
.PHONY: installdeps-min
installdeps-min:
pip install --upgrade pip -q
pip install -e . --no-dependencies
pip install -r tests/dependency_update_check/minimum_test_requirements.txt
pip install -r tests/dependency_update_check/minimum_requirements.txt
.PHONY: installdeps-prophet
installdeps-prophet:
pip install -e .[prophet]
.PHONY: installdeps-test
installdeps-test:
pip install -e .[test]
.PHONY: installdeps-dev
installdeps-dev:
pip install -e .[dev]
pre-commit install
.PHONY: installdeps-docs
installdeps-docs:
pip install -e .[docs]
.PHONY: upgradepip
upgradepip:
python -m pip install --upgrade pip
.PHONY: upgradebuild
upgradebuild:
python -m pip install --upgrade build
.PHONY: upgradesetuptools
upgradesetuptools:
python -m pip install --upgrade setuptools