forked from python-jsonschema/check-jsonschema
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (23 loc) · 690 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (23 loc) · 690 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
PKG_VERSION=$(shell grep '^version' pyproject.toml | head -n1 | cut -d '"' -f2)
.PHONY: lint test vendor-schemas generate-hooks release showvars
lint:
pre-commit run -a
tox run -e mypy
test:
tox run
vendor-schemas:
tox run -e vendor-schemas
generate-hooks:
tox run -e generate-hooks-config
showvars:
@echo "PKG_VERSION=$(PKG_VERSION)"
release:
git tag -s "$(PKG_VERSION)" -m "v$(PKG_VERSION)"
-git push $(shell git rev-parse --abbrev-ref @{push} | cut -d '/' -f1) refs/tags/$(PKG_VERSION)
.PHONY: collated-test-report
collated-test-report:
tox p
python ./scripts/aggregate-pytest-reports.py .tox/*/pytest.xml
.PHONY: clean
clean:
rm -rf dist build *.egg-info .tox .coverage.*