diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-16 06:11:57 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-16 13:35:17 +0200 |
commit | c73487455e8d9a283fcb328eab8573c4c5bc73c7 (patch) | |
tree | 37861191f8e8fb8a1c15ad7ce665fb9f831d32e2 | |
parent | 37ee99e8e72e2b8c50bec80f9b2bacc8dde04df7 (diff) | |
download | nbb-c73487455e8d9a283fcb328eab8573c4c5bc73c7.tar.gz nbb-c73487455e8d9a283fcb328eab8573c4c5bc73c7.tar.xz nbb-c73487455e8d9a283fcb328eab8573c4c5bc73c7.zip |
Add pylint and pychecker checks as "lint" target
-rw-r--r-- | src/Makefile-files | 11 |
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 |