forked from long2ice/asyncmy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 698 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 698 Bytes
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
checkfiles = asyncmy/ tests/ examples/ conftest.py build.py
py_warn = PYTHONDEVMODE=1
MYSQL_PASS ?= "123456"
up:
@poetry update
deps:
@poetry install
_style:
@isort -src $(checkfiles)
@black $(checkfiles)
style: deps _style
_check:
@black --check $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
@ruff check $(checkfiles)
@mypy $(checkfiles)
check: deps _check
_test:
$(py_warn) MYSQL_PASS=$(MYSQL_PASS) pytest
test: deps _test
clean:
@rm -rf *.so && rm -rf build && rm -rf dist && rm -rf asyncmy/*.c && rm -rf asyncmy/*.so && rm -rf asyncmy/*.html
build: clean
@poetry build
benchmark: deps
@python benchmark/main.py
ci: deps _check _test