-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
31 lines (24 loc) · 618 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
.PHONY: install build test lint format publish
.DEFAULT_GOAL := test
install:
poetry install
build:
poetry build
test:
SQLALCHEMY_WARN_20=1 COVERAGE_PROCESS_START="$(PWD)/pyproject.toml" \
coverage run -m pytest src tests -vv
coverage combine
coverage report -i
coverage xml
lint:
ruff src tests examples || exit 1
black --check src tests examples || exit 1
mypy src tests || exit 1
format:
ruff --fix src tests examples
black src tests examples
publish: build
poetry publish -u __token__ -p '${PYPI_TOKEN}' --no-interaction
changelog:
# https://convco.github.io/
convco changelog > CHANGELOG.md