1
1
mirror of https://github.com/containers/udica synced 2024-11-08 14:59:22 +01:00
udica/Makefile
Chris Evich 07ff36fd09
Show diff when checking formatting
Otherwise, all you get in CI is a failure notice w/o any indication as
to why.

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-03-29 15:26:34 -04:00

28 lines
429 B
Makefile

TAG ?= latest
IMAGE_NAME ?= udica
CONTAINER_CMD ?= podman
.PHONY: install
install:
python3 setup.py install
.PHONY:
lint:
pyflakes udica
.PHONY:
format:
black *.py udica/*.py tests/*.py
.PHONY:
format-check:
black --check --diff *.py udica/*.py tests/*.py
.PHONY: test
test: lint format-check
python3 -m unittest -v tests/test_unit.py
.PHONY: image
image:
$(CONTAINER_CMD) build -f Dockerfile -t $(IMAGE_NAME):$(TAG)