From c73487455e8d9a283fcb328eab8573c4c5bc73c7 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 16 Jul 2008 06:11:57 +0200 Subject: Add pylint and pychecker checks as "lint" target --- src/Makefile-files | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Makefile-files b/src/Makefile-files index ba4cb50..ef00d5f 100644 --- a/src/Makefile-files +++ b/src/Makefile-files @@ -14,6 +14,17 @@ nbblib_PYTHON += src/nbblib/plugins.py nbblib_PYTHON += src/nbblib/progutils.py nbblib_PYTHON += src/nbblib/vcs.py +lint: lint-local + +lint-local: lint-local-pylint +lint-local: lint-local-pychecker + +lint-local-pylint: + cd src && pylint --zope=y --acquired-members=name,plugins nbb nbblib + +lint-local-pychecker: + cd src && pychecker --limit=500 $$(for f in nbblib/*.py; do echo nbblib.$$(basename "$$f" .py); done) + # Put all python source files, whether changed or verbatim, # into builddir, such that we can run tests in builddir. ALL_LOCAL += all-local-nbblib -- cgit