From ecc34303caf0ea433e1a47af8de462d02aa295ab Mon Sep 17 00:00:00 2001 From: Goutte Date: Sat, 19 Oct 2019 12:49:44 +0200 Subject: [PATCH] Add a Makefile (possibly useless in our case) --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+), 0 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2086ec8 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +.PHONY: docs test + +help: + @echo " env create a development environment using virtualenv" + @echo " deps install dependencies using pip" + @echo " clean remove unwanted files like .pyc's" + @echo " lint check style with flake8" + @echo " test run all your tests using py.test" + +env: + sudo easy_install pip && \ + pip install virtualenv && \ + virtualenv env && \ + . env/bin/activate && \ + make deps + +deps: + pip install -r requirements.txt + +clean: + python manage.py clean + +lint: + flake8 --exclude=env . + +test: + py.test tests \ No newline at end of file -- libgit2 0.21.2