From 5f339baccdf9f307887b3089f6d45a8655732d1d Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Thu, 4 May 2017 18:54:53 +0800 Subject: [PATCH] v0.20.0 add "make todo" support --- project.clj | 2 +- src/leiningen/new/python/Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 7dfcf67..8bd1438 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject python/lein-template "0.19.1" +(defproject python/lein-template "0.20.0" :description "lein template for a python project" :repositories [["snapshots" {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots" diff --git a/src/leiningen/new/python/Makefile b/src/leiningen/new/python/Makefile index dd835ca..9dfcb8a 100644 --- a/src/leiningen/new/python/Makefile +++ b/src/leiningen/new/python/Makefile @@ -79,6 +79,8 @@ full-clean: rm -rf $(VENV) build/ dist/ wheelhouse/ {{name}}.egg-info/ distribute-*.tar.gz find . -name "__pycache__" -type d -exec rm -rf {} \; || true find . -name "*.pyc" -type f -exec rm -rf {} \; || true +todo: + @rgrep -I -n -i --exclude=Makefile --exclude=TAGS --exclude-dir=$(VENV) -E '(TODO|FIXME|XXX|not_implemented)' $(PYTHON_MODULES) TAGS: etags -R --exclude=static $(PYTHON_MODULES) update-git-hooks: install-git-hooks-force @@ -89,4 +91,4 @@ install-git-hooks-force: loc: find . -regex '.*\.pyw?$$' -exec wc -l {} \+ | tail -n 1 which cloc >/dev/null && cloc {{name}}/ -.PHONY: default build debug run uwsgi shell venv bootstrap bootstrap-dev install uninstall deb pipfreeze wheel check check-coding-style pylint-full test just-test test-prod clean full-clean TAGS update-git-hooks install-git-hooks install-git-hooks-force loc +.PHONY: default build debug run uwsgi shell venv bootstrap bootstrap-dev install uninstall deb pipfreeze wheel check check-coding-style pylint-full test just-test test-prod clean full-clean todo TAGS update-git-hooks install-git-hooks install-git-hooks-force loc -- GitLab