Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenFrankel committed Mar 6, 2024
1 parent 10e0ed1 commit aeee639
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: help init lint test

help:
@echo AVAILABLE COMMANDS
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-23s\033[0m%s\n", $$1, $$2}'

init: ## Initialise repo for local development
@poetry install --sync --with dev
@poetry run pre-commit install --install-hooks

lint: ## Lint files
poetry run pre-commit run ruff

test: ## Run tests
@poetry run pytest

0 comments on commit aeee639

Please sign in to comment.