# Add any tasks that are not dependent on files in the .PHONY list
.PHONY: env test test_cov lint clean

env:
	python3.13 -m venv env
	env/bin/pip install --upgrade pip
	env/bin/pip install -r requirements.txt -r requirements-dev.txt

test: env
	env/bin/python3.13 -m pytest tests

test_cov:
	env/bin/python3.13 -m pytest tests -vv --cov daemonJwtHandler --cov-report term-missing

lint: env
	env/bin/flake8

clean:
	rm -rf env

docker_up:
	docker compose up -d

docker_down:
	docker compose down --remove-orphans

docker_build:
	docker compose build lint-and-test

docker_test: docker_build
	docker compose run --rm lint-and-test
