-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
32 lines (24 loc) · 604 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
bin = venv/bin/
pysources = src/ tests/
build:
${bin}python -m build
check:
${bin}black --check --diff --target-version=py38 ${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=py38 ${pysources}
publish:
${bin}twine upload dist/*
test:
${bin}pytest