-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (45 loc) · 1.09 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
# -*- coding: utf-8 -*-
.PHONY: clean black blackcheck imports build deploy_only deploy check check_no_typing test tests deps devdeps dev typecheck version bump
clean:
rm -rf __pycache__ core/__pycache__ build/ core/build/ core/dist/ dist/ superduperreload.egg-info/ core/superduperreload_core.egg-info
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
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
check: blackcheck typecheck check_no_typing
test: check
tests: check
deps:
pip install -r requirements.txt
devdeps:
pip install -e .
pip install -e .[dev]
dev: devdeps build