1
1
mirror of https://github.com/containers/udica synced 2026-07-21 05:14:52 +02:00
Files
Vit Mojzis 71c8bdfee0 Fix issues reported by latest "black"
Also set the target python version of black to python 3.4 to keep the
output consistent and maintain backwards compatibility.

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2026-05-28 15:35:16 +02:00

28 lines
445 B
Makefile

TAG ?= latest
IMAGE_NAME ?= udica
CONTAINER_CMD ?= podman
.PHONY: install
install:
python3 setup.py install
.PHONY:
lint:
pyflakes udica
.PHONY:
format:
black -t py34 *.py udica/*.py tests/*.py
.PHONY:
format-check:
black -t py34 --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)