From e4e7c7df3a2356103c2442a91d628ca0470fb267 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Wed, 13 Jan 2010 17:38:28 +0100 Subject: [PATCH] Makefile.am: Run pylint on all Python code That is, all Python code except unittests. In particular, autotool/build-bash-completion was missing from the previous list. Signed-off-by: Michael Hanselmann Reviewed-by: Iustin Pop --- Makefile.am | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8a0c0ae..21271f0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -340,7 +340,6 @@ TESTS_ENVIRONMENT = \ all_python_code = \ $(dist_sbin_SCRIPTS) \ $(dist_tools_SCRIPTS) \ - $(dist_TESTS) \ $(pkgpython_PYTHON) \ $(hypervisor_PYTHON) \ $(rapi_PYTHON) \ @@ -348,12 +347,20 @@ all_python_code = \ $(confd_PYTHON) \ $(noinst_PYTHON) +all_python_code_with_tests = \ + $(all_python_code) \ + $(dist_TESTS) + srclink_files = \ man/footer.sgml \ - $(all_python_code) + $(all_python_code_with_tests) check_python_code = \ - autotools/build-bash-completion \ + $(BUILD_BASH_COMPLETION) \ + $(all_python_code_with_tests) + +lint_python_code = \ + $(BUILD_BASH_COMPLETION) \ $(all_python_code) devel/upload: devel/upload.in $(REPLACE_VARS_SED) @@ -477,7 +484,7 @@ check-local: .PHONY: lint lint: ganeti - pylint $(LINT_OPTS) ganeti $(dist_sbin_SCRIPTS) $(dist_tools_SCRIPTS) + pylint $(LINT_OPTS) $(lint_python_code) # a dist hook rule for catching revision control directories distcheck-hook: -- 1.7.10.4