-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
75 lines (53 loc) · 1.29 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
# -*- coding: utf-8 -*-
.PHONY: clean black blackcheck eslint imports build deploy_only deploy check check_no_typing test tests deps devdeps dev typecheck version bump extlink kernel
clean:
rm -rf __pycache__ core/__pycache__ build/ core/build/ core/dist/ dist/ ipyflow.egg-info/ core/ipyflow_core.egg-info core/ipyflow/resources/labextension
build: clean
./scripts/build.sh
version:
./scripts/build-version.py
bump:
./scripts/bump.sh
deploy_only:
./scripts/deploy.sh
deploy: version build deploy_only
black:
isort ./core
./scripts/blacken.sh
blackcheck:
isort ./core --check-only
./scripts/blacken.sh --check
lint:
ruff check ./core
imports:
pycln ./core
isort ./core
typecheck:
./scripts/typecheck.sh
# this is the one used for CI, since sometimes we want to skip typcheck
check_no_typing:
./scripts/runtests.sh
coverage:
rm -f .coverage
rm -rf htmlcov
./scripts/runtests.sh --coverage
mv core/.coverage .
coverage html
coverage report
xmlcov: coverage
coverage xml
eslint:
./scripts/eslint.sh
check: eslint blackcheck lint typecheck check_no_typing
test: check
tests: check
deps:
pip install -r requirements.txt
devdeps:
pip install -e .
pip install -e .[dev]
extlink:
./scripts/extlink.sh
kernel:
python -m ipyflow.install --sys-prefix
dev: devdeps build extlink kernel