Skip to content

Commit d896c0d

Browse files
committed
Add makefile
1 parent 31ba91f commit d896c0d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
SHELL := /usr/bin/env bash
2+
3+
install:
4+
@ pip install --upgrade build pip setuptools twine && \
5+
pip install -e . -r requirements/lint.txt -r requirements/test.txt
6+
7+
build: install
8+
@ python -m build
9+
10+
publish: build
11+
@ python -m twine upload dist/*
12+
13+
publish-test: build
14+
@ python -m twine upload --repository testpypi dist/*
15+
16+
test: lint
17+
@ pytest -vvv
18+
19+
test-all: lint
20+
@ tox
21+
22+
lint:
23+
@ isort --check-only --diff --quiet . && \
24+
black --check --diff .
25+
26+
format:
27+
@ isort . && \
28+
black .

0 commit comments

Comments
 (0)