summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-16 06:11:57 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-16 13:35:17 +0200
commitc73487455e8d9a283fcb328eab8573c4c5bc73c7 (patch)
tree37861191f8e8fb8a1c15ad7ce665fb9f831d32e2
parent37ee99e8e72e2b8c50bec80f9b2bacc8dde04df7 (diff)
downloadnbb-c73487455e8d9a283fcb328eab8573c4c5bc73c7.tar.gz
nbb-c73487455e8d9a283fcb328eab8573c4c5bc73c7.tar.xz
nbb-c73487455e8d9a283fcb328eab8573c4c5bc73c7.zip
Add pylint and pychecker checks as "lint" target
-rw-r--r--src/Makefile-files11
1 files changed, 11 insertions, 0 deletions
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