← Files Dispensa: lista de comprasARCHIVED FILE

makefile

499 Bytes · Nov 3, 2026 · 18:40 UTC

↓ Download file

See the change to this file →

.PHONY: lint fmt test gate deps

VENV := $(wildcard .venv/bin/)
RUFF := $(if $(VENV),.venv/bin/ruff,ruff)
PYTEST := $(if $(VENV),.venv/bin/pytest,pytest)
PIP_COMPILE := $(if $(VENV),.venv/bin/pip-compile,pip-compile)

lint:
	$(RUFF) check .
	$(RUFF) format --check .

fmt:
	$(RUFF) check --fix .
	$(RUFF) format .

test:
	$(PYTEST) -q

gate: lint test

deps:
	$(PIP_COMPILE) --output-file=requirements.txt pyproject.toml
	$(PIP_COMPILE) --extra=dev --output-file=requirements-dev.txt pyproject.toml

SHA-256: e8f579b9fb31c25dd33d7be3224079b009d8903c7cae778a3750c170542d0647