Skip to content

Commit

Permalink
Make package name customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
szszszsz committed Jun 15, 2020
1 parent ba57f9d commit 1fa4e79
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
.PHONY: black build clean publish reinstall

PACKAGE_NAME=solo

# setup development environment
init: update-venv

# ensure this passes before commiting
check: lint
venv/bin/black --check solo/
venv/bin/isort --check-only --recursive solo/
venv/bin/black --check $(PACKAGE_NAME)/
venv/bin/isort --check-only --recursive $(PACKAGE_NAME)/

# automatic code fixes
fix: black isort

black:
venv/bin/black solo/
venv/bin/black $(PACKAGE_NAME)/

isort:
venv/bin/isort -y --recursive solo/
venv/bin/isort -y --recursive $(PACKAGE_NAME)/

lint:
venv/bin/flake8 solo/
venv/bin/flake8 $(PACKAGE_NAME)/

semi-clean:
rm -rf **/__pycache__
Expand All @@ -30,7 +32,7 @@ clean: semi-clean

# Package management

VERSION_FILE := "solo/VERSION"
VERSION_FILE := "$(PACKAGE_NAME)/VERSION"
VERSION := $(shell cat $(VERSION_FILE))
tag:
git tag -a $(VERSION) -m"v$(VERSION)"
Expand Down

0 comments on commit 1fa4e79

Please sign in to comment.