Sha256: 716b9c42553222f1db0bb95b2252f2b78a25a9eb96b718f01ae484a31abf6a63

Contents?: true

Size: 1.84 KB

Versions: 9

Compression:

Stored size: 1.84 KB

Contents

.PHONY: clean test help quality localtest
.DEFAULT_GOAL := default

define PRINT_HELP_PYSCRIPT
import re, sys

for line in sys.stdin:
	match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
	if match:
		target, help = match.groups()
		print("%-20s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT

help:
	@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)

default: localtest ## run default typechecking and tests

requirements_dev.txt.installed: requirements_dev.txt
	pip install -q --disable-pip-version-check -r requirements_dev.txt
	touch requirements_dev.txt.installed

pip_install: requirements_dev.txt.installed ## Install Python dependencies

Gemfile.lock:
	bundle install

Gemfile.lock.installed: Gemfile.lock
	bundle install
	touch Gemfile.lock.installed

bundle_install: Gemfile.lock.installed ## Install Ruby dependencies

clear_metrics: ## remove or reset result artifacts created by tests and quality tools
	bundle exec rake clear_metrics

clean: clear_metrics ## remove all built artifacts

quality: ## run precommit quality checks
	bundle exec overcommit --run

test: ## Run lower-level tests
	@bundle exec rake test

localtest: ## run default local actions
	@bundle exec rake localtest

update_from_cookiecutter: ## Bring in changes from template project used to create this repo
	bundle exec overcommit --uninstall
	IN_COOKIECUTTER_PROJECT_UPGRADER=1 cookiecutter_project_upgrader || true
	git checkout cookiecutter-template && git push && git checkout main
	git checkout main && git pull && git checkout -b update-from-cookiecutter-$$(date +%Y-%m-%d-%H%M)
	git merge cookiecutter-template || true
	bundle exec overcommit --install
	@echo
	@echo "Please resolve any merge conflicts below and push up a PR with:"
	@echo
	@echo '   gh pr create --title "Update from cookiecutter" --body "Automated PR to update from cookiecutter boilerplate"'
	@echo
	@echo

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
checkoff-0.14.1 Makefile
checkoff-0.14.0 Makefile
checkoff-0.13.2 Makefile
checkoff-0.13.1 Makefile
checkoff-0.13.0 Makefile
checkoff-0.12.1 Makefile
checkoff-0.12.0 Makefile
checkoff-0.11.1 Makefile
checkoff-0.11.0 Makefile