Debian Codegraph @

Makefile

raw
1 checkfiles = asyncmy/ tests/ examples/ conftest.py build.py
2 py_warn = PYTHONDEVMODE=1
3 MYSQL_PASS ?= "123456"
4
5 up:
6 @poetry update
7
8 deps:
9 @poetry install --all-groups
10
11 _style:
12 @ruff format $(checkfiles)
13 @ruff check --fix $(checkfiles)
14
15 style: deps _style
16
17 _check:
18 @ruff format --check $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
19 @ruff check $(checkfiles)
20 @mypy $(checkfiles)
21
22 check: deps _check
23
24 _test:
25 $(py_warn) MYSQL_PASS=$(MYSQL_PASS) pytest
26
27 test: deps _test
28
29 clean:
30 @rm -rf *.so && rm -rf build && rm -rf dist && rm -rf asyncmy/*.c && rm -rf asyncmy/*.so && rm -rf asyncmy/*.html
31
32 build: clean
33 @poetry build
34
35 benchmark: deps
36 @python benchmark/main.py
37
38 ci: deps _check _test