holiday-cn/Makefile
2024-11-12 20:41:06 +08:00

20 lines
249 B
Makefile

.PHONY: default lint format
default: format
ifeq ($(OS),Windows_NT)
PYTHON?=py -3.12
else
PYTHON?=python3
endif
lint:
$(PYTHON) -m black -t py312 --check --diff .
format:
$(PYTHON) -m black -t py312 .
.PHONY: test
test:
$(PYTHON) -m pytest