forked from siddhantgoel/streaming-form-data
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (35 loc) · 994 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
41
42
43
44
45
46
47
48
49
50
51
52
53
POETRY=poetry run
cython-file := streaming_form_data/_parser.pyx
clean:
rm -rf build/
rm -rf dist/
rm -rf streaming_form_data.egg-info
# development
annotate:
$(POETRY) cython -a $(cython-file) -o build/annotation.html
compile:
$(POETRY) cython $(cython-file)
# lint
fmt-black:
$(POETRY) black streaming_form_data/*.py tests/ utils/ examples/**/*.py build.py
lint-black:
$(POETRY) black --check streaming_form_data/*.py tests/ utils/ examples/**/*.py build.py
lint-flake8:
$(POETRY) flake8 streaming_form_data/*.py tests/ utils/ examples/**/*.py build.py
lint-mypy:
$(POETRY) mypy streaming_form_data/
lint: lint-black lint-flake8 lint-mypy
# test
test-pytest:
$(POETRY) py.test tests/
test: test-pytest
# utils
profile:
$(POETRY) python utils/profile.py --data-size 17555000 -c binary/octet-stream
speed-test:
$(POETRY) python utils/speedtest.py
.PHONY: clean \
annotate compile \
lint-black lint-flake8 lint-mypy lint \
test-pytest test \
speed-test profile