<commit_before>.PHONY: develop test coverage clean lint pre-commit upload-package

default: coverage

develop:
	python setup.py develop
	pip install -r test-requirements.txt
	pip install flake8 restructuredtext_lint
	@echo "#!/bin/bash\nmake pre-commit" > .git/hooks/pre-push
	@chmod a+x .git/hooks/pre-push
	@echo
	@echo "Added pre-push hook! To run manually: make pre-commit"

test:
	tox

coverage:
	py.test --cov=gocd tests

coverage-html: coverage clean-coverage-html
	coverage html

clean-pyc:
	find . -name '*.pyc' -exec rm -f {} +
	find . -name '*.pyo' -exec rm -f {} +
	find . -name '*~' -exec rm -f {} +

clean-build:
	rm -fr build/
	rm -fr dist/
	rm -fr *.egg-info

clean-coverage-html:
	rm -rf htmlcov

clean: clean-pyc clean-build clean-coverage-html

lint-rst:
	rst-lint README.rst

lint-pep8:
	flake8 gocd tests

lint: lint-rst lint-pep8

pre-commit: coverage lint

upload-package: test lint clean
	pip install twine wheel
	python setup.py sdist bdist_wheel
	twine upload dist/*

rpm: clean
	python setup.py bdist_rpm --provides 'Python(gocd)'<commit_msg>Add change log to rst linting<commit_after>.PHONY: develop test coverage clean lint pre-commit upload-package

default: coverage

develop:
	python setup.py develop
	pip install -r test-requirements.txt
	pip install flake8 restructuredtext_lint
	@echo "#!/bin/bash\nmake pre-commit" > .git/hooks/pre-push
	@chmod a+x .git/hooks/pre-push
	@echo
	@echo "Added pre-push hook! To run manually: make pre-commit"

test:
	tox

coverage:
	py.test --cov=gocd tests

coverage-html: coverage clean-coverage-html
	coverage html

clean-pyc:
	find . -name '*.pyc' -exec rm -f {} +
	find . -name '*.pyo' -exec rm -f {} +
	find . -name '*~' -exec rm -f {} +

clean-build:
	rm -fr build/
	rm -fr dist/
	rm -fr *.egg-info

clean-coverage-html:
	rm -rf htmlcov

clean: clean-pyc clean-build clean-coverage-html

lint-rst:
	rst-lint README.rst CHANGELOG.rst

lint-pep8:
	flake8 gocd tests

lint: lint-rst lint-pep8

pre-commit: coverage lint

upload-package: test lint clean
	pip install twine wheel
	python setup.py sdist bdist_wheel
	twine upload dist/*

rpm: clean
	python setup.py bdist_rpm --provides 'Python(gocd)'
{'fraction_non_alphanumeric': 0.1194649446494465, 'fraction_numerical': 0.0036900369003690036, 'mean_word_length': 3.462962962962963, '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': '6727911', 'n_tokens_mistral': 868, 'n_tokens_neox': 836, 'n_words': 247}