-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 783 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
33
34
35
VERSION = $$(poetry run toml get --toml-path pyproject.toml tool.poetry.version)
restore:
poetry install
poetry run pre-commit install
test:
poetry run coverage run -m pytest tests -x -vvv --show-capture=stdout
poetry run coverage report
format:
poetry run autoflake -r --in-place --remove-all-unused-imports pydantic_xml tests
poetry run black pydantic_xml tests
poetry run isort pydantic_xml tests
check:
mypy pydantic_xml
pylint -E pydantic_xml
build:
poetry build
update-init:
@sed -i "s/__version__ = .*/__version__ = \"$(VERSION)\"/g" pydantic_xml/__init__.py
git commit -am "v"$(VERSION)
release: update-init build
poetry publish --skip-existing
git tag $(VERSION)
git push origin $(VERSION)
git push
release-patch:
poetry version patch
make release