.PHONY: pip_dev lint test report integration_test clean

pip_dev:
	pip install --upgrade pip
	pip install -r requirements.txt
	pip install -r requirements-test.txt

lint:
	flake8 accounting/ tests/

test:
	py.test tests/

report:
	py.test -vv --cov-config .coveragerc --cov-report term-missing --cov=accounting tests/

clean:
	find accounting | grep -vE "^\./env" | grep -E "__pycache__|\.pyc|\.pyo$\" | xargs rm -rf
	find tests | grep -vE "^\./env" | grep -E "__pycache__|\.pyc|\.pyo$\" | xargs rm -rf
	rm -f .coverage
	rm -rf .pytest_cache
