# Add any tasks that are not dependent on files to the .PHONY list.
.PHONY: install_from_lock install_from_lock_include_dev install_with_dev clean

# Install all dependencies (including dev). Don not update Pipfile.lock
install_from_lock_include_dev:
	pipenv --rm sync --dev --python 3.8
	pipenv run pip install -e .

# Install all dependencies (dev is not included). Don not update Pipfile.lock
install_from_lock:
	pipenv --rm sync --python 3.8
	pipenv run pip install .

# Update and install all dependencies (including dev)
install_with_dev:
	pipenv --rm sync --dev --python 3.8
	pipenv run pip install .

pipenv_lock:
	pipenv lock --python 3.8

lint:
	pipenv run flake8 instagram_with_instaloader.py conftest.py snowflake_executor.py tests/

test_unit:
	pipenv run py.test tests/
