Skip to content

Commit

Permalink
Add a Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak committed Nov 14, 2022
1 parent 64c1a20 commit 23c978b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.DEFAULT_GOAL:= build
SHELL := /bin/bash
VENV ?= "$(shell poetry env list --full-path | cut -f1 -d " ")/bin/activate"

# Releasing
tag:
@git tag -a $(version) -m "Release $(version)"
@git push --follow-tags

# Building
build: check
@source $(VENV)
@rm -rf dist || true
@poetry build

check:
@source $(VENV)
@poetry run black --check .
@poetry run isort --check .
@poetry run flake8 status_cake_exporter --max-line-length=120 --tee
@poetry run darglint -m "{path}:{line} -> {msg_id}: {msg}" status_cake_exporteri

# Developing
.PHONY: init
init:
@poetry install
@pre-commit install

0 comments on commit 23c978b

Please sign in to comment.