aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRémy HUBSCHER <hubscher.remy@gmail.com>2020-04-21 13:59:41 +0200
committerGitHub <noreply@github.com>2020-04-21 13:59:41 +0200
commit299c64a48cb6278eebe1d7cc54d878953ecc5fa5 (patch)
tree87219e02bedf6d75f15da2b3ab95cbcb4988d55b /Makefile
parentf0b40578adeca5e9fc75787c00787c20f1072144 (diff)
downloadihatemoney-mirror-299c64a48cb6278eebe1d7cc54d878953ecc5fa5.zip
ihatemoney-mirror-299c64a48cb6278eebe1d7cc54d878953ecc5fa5.tar.gz
ihatemoney-mirror-299c64a48cb6278eebe1d7cc54d878953ecc5fa5.tar.bz2
Add isort support. (#561)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d21a1cf..a681709 100644
--- a/Makefile
+++ b/Makefile
@@ -41,11 +41,19 @@ serve: install ## Run the ihatemoney server
$(PYTHON) -m ihatemoney.manage runserver
.PHONY: test
-test: $(DEV_STAMP) ## Run the tests
+test: install-dev ## Run the tests
$(VENV)/bin/tox
+.PHONY: black
+black: install-dev ## Run the tests
+ $(VENV)/bin/black --target-version=py34 .
+
+.PHONY: isort
+isort: install-dev ## Run the tests
+ $(VENV)/bin/isort -rc .
+
.PHONY: release
-release: $(DEV_STAMP) ## Release a new version (see https://ihatemoney.readthedocs.io/en/latest/contributing.html#how-to-release)
+release: install-dev ## Release a new version (see https://ihatemoney.readthedocs.io/en/latest/contributing.html#how-to-release)
$(VENV)/bin/fullrelease
.PHONY: compress-assets