.PHONY: all test lint clean

PYTHON ?= python3
SRC := src
BUILD := build

all: lint test

test:
	$(PYTHON) -m pytest -q

lint:
	$(PYTHON) -m ruff check $(SRC)
	$(PYTHON) -m ruff format --check $(SRC)

$(BUILD)/report.html: $(SRC)/inventory/*.py
	mkdir -p $(BUILD)
	$(PYTHON) -m inventory.report --output $@

clean:
	rm -rf $(BUILD) .pytest_cache
