-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 691 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 691 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
bin = venv/bin/
pysources = src example/server tests
build:
${bin}python -m build
check:
${bin}black --check --diff --target-version=py37 ${pysources}
${bin}flake8 ${pysources}
${bin}mypy ${pysources}
${bin}isort --check --diff ${pysources}
install: install-python
venv:
python3 -m venv venv
install-python: venv
${bin}pip install -U pip wheel
${bin}pip install -U build
${bin}pip install -r requirements.txt
format:
${bin}autoflake --in-place --recursive ${pysources}
${bin}isort ${pysources}
${bin}black --target-version=py37 ${pysources}
publish:
${bin}twine upload dist/*
serve:
${bin}uvicorn example.server:app --reload --reload-dir ./example
test:
${bin}pytest