-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
40 lines (34 loc) · 1011 Bytes
/
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
.PHONY: build check clean benchmark-all benchmark-compare typetest
build:
HATCH_BUILD_HOOKS_ENABLE=1 pip install -e .
check:
pre-commit run --all-files
clean:
rm -rf `find . -name __pycache__`
rm -f `find . -type f -name '*.py[co]' `
rm -f `find . -type f -name '*~' `
rm -f `find . -type f -name '.*~' `
rm -rf .cache
rm -rf .pytest_cache
rm -rf htmlcov
rm -rf *.egg-info
rm -f .coverage
rm -f .coverage.*
rm -rf build
rm -rf dist
rm -rf wheelhouse
rm -f `find src -type f -name '*.c' `
rm -f `find src -type f -name '*.so' `
rm -f `find src -type f -name '*.so_BAK' `
rm -rf coverage.xml
# run benchmarks for all commits since v0.1.0
benchmark-all:
pip install asv
asv run -j 8 --show-stderr --interleave-processes --skip-existing v0.2.0..HEAD
# compare HEAD against main
benchmark-compare:
asv run --interleave-processes --skip-existing main^!
asv run --interleave-processes HEAD^!
asv compare --split --factor 1.15 main HEAD
typetest:
pytest typesafety --mypy-only-local-stub