1
1
mirror of https://github.com/containers/udica synced 2024-09-24 10:20:44 +02:00
udica/Makefile
Lukas Vrabec a30ec6c6fd
Add support for python code formatter black in CI
black is python source formatter follow PEP-8 format style. Every PR and
commit should follow this format.

Following commands could be used to check format:

    $ make format-check

To fix format, use:

    $ make format
2019-10-16 12:27:33 +02:00

28 lines
422 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 *.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)