<commit_before>SHELL := /bin/bash

init:
	@python setup.py develop
	@pip install -r requirements.txt

lint:
	flake8 moto

test: lint
	rm -f .coverage
	rm -rf cover
	@nosetests -sv --with-coverage --cover-html ./tests/

test_server:
	@TEST_SERVER_MODE=true nosetests -sv --with-coverage --cover-html ./tests/

aws_managed_policies:
	scripts/update_managed_policies.py

upload_pypi_artifact:
	python setup.py sdist bdist_wheel upload

build_dockerhub_image:
	docker build -t motoserver/moto .

tag_github_release:
	git tag `python setup.py --version`
	git push origin `python setup.py --version`

publish: upload_pypi_artifact build_dockerhub_image tag_github_release

scaffold:
	@pip install -r requirements-dev.txt > /dev/null
	@python scripts/scaffold.py<commit_msg>accepting stdin via make task<commit_after>SHELL := /bin/bash

init:
	@python setup.py develop
	@pip install -r requirements.txt

lint:
	flake8 moto

test: lint
	rm -f .coverage
	rm -rf cover
	@nosetests -sv --with-coverage --cover-html ./tests/

test_server:
	@TEST_SERVER_MODE=true nosetests -sv --with-coverage --cover-html ./tests/

aws_managed_policies:
	scripts/update_managed_policies.py

upload_pypi_artifact:
	python setup.py sdist bdist_wheel upload

build_dockerhub_image:
	docker build -t motoserver/moto .

tag_github_release:
	git tag `python setup.py --version`
	git push origin `python setup.py --version`

publish: upload_pypi_artifact build_dockerhub_image tag_github_release

scaffold:
	@pip install -r requirements-dev.txt > /dev/null
	exec python scripts/scaffold.py
{'fraction_non_alphanumeric': 0.0945945945945946, 'fraction_numerical': 0.001287001287001287, 'mean_word_length': 4.325342465753424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6728040', 'n_tokens_mistral': 577, 'n_tokens_neox': 560, 'n_words': 144}