Commit e4e7c7df authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

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: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 5548de18
...@@ -340,7 +340,6 @@ TESTS_ENVIRONMENT = \ ...@@ -340,7 +340,6 @@ TESTS_ENVIRONMENT = \
all_python_code = \ all_python_code = \
$(dist_sbin_SCRIPTS) \ $(dist_sbin_SCRIPTS) \
$(dist_tools_SCRIPTS) \ $(dist_tools_SCRIPTS) \
$(dist_TESTS) \
$(pkgpython_PYTHON) \ $(pkgpython_PYTHON) \
$(hypervisor_PYTHON) \ $(hypervisor_PYTHON) \
$(rapi_PYTHON) \ $(rapi_PYTHON) \
...@@ -348,12 +347,20 @@ all_python_code = \ ...@@ -348,12 +347,20 @@ all_python_code = \
$(confd_PYTHON) \ $(confd_PYTHON) \
$(noinst_PYTHON) $(noinst_PYTHON)
all_python_code_with_tests = \
$(all_python_code) \
$(dist_TESTS)
srclink_files = \ srclink_files = \
man/footer.sgml \ man/footer.sgml \
$(all_python_code) $(all_python_code_with_tests)
check_python_code = \ check_python_code = \
autotools/build-bash-completion \ $(BUILD_BASH_COMPLETION) \
$(all_python_code_with_tests)
lint_python_code = \
$(BUILD_BASH_COMPLETION) \
$(all_python_code) $(all_python_code)
devel/upload: devel/upload.in $(REPLACE_VARS_SED) devel/upload: devel/upload.in $(REPLACE_VARS_SED)
...@@ -477,7 +484,7 @@ check-local: ...@@ -477,7 +484,7 @@ check-local:
.PHONY: lint .PHONY: lint
lint: ganeti 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 # a dist hook rule for catching revision control directories
distcheck-hook: distcheck-hook:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment