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

test:
	py.test -vv tests/

test_cov:
	py.test tests/ --cov lambdacommon --cov-report term-missing

lint:
	flake8 lambdacommon/ tests/

pip_dev:
	pip install -r requirements.txt
	pip install -r requirements-dev.txt

docker_up:
	docker compose up -d

docker_down:
	docker compose down --remove-orphans

docker_test:
	docker compose up \
		--exit-code-from lint-and-test \
		--abort-on-container-exit \
		--build lint-and-test
