Revision 79cf373a

b/Makefile.am
2190 2190
# For excluding pep8 expects filenames only, not whole paths
2191 2191
PEP8_EXCLUDE = $(subst $(space),$(comma),$(strip $(notdir $(built_python_sources))))
2192 2192

  
2193
# A space-separated list of pylint warnings to completely ignore:
2194
# I0013 = disable warnings for ignoring whole files
2195
LINT_DISABLE = I0013
2196
# Additional pylint options
2197
LINT_OPTS =
2198
# The combined set of pylint options
2199
LINT_OPTS_ALL = $(LINT_OPTS) \
2200
  $(addprefix --disable=,$(LINT_DISABLE))
2201

  
2193 2202
LINT_TARGETS = pylint pylint-qa pylint-test
2194 2203
if HAS_PEP8
2195 2204
LINT_TARGETS += pep8
......
2204 2213
.PHONY: pylint
2205 2214
pylint: $(GENERATED_FILES)
2206 2215
	@test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; }
2207
	$(PYLINT) $(LINT_OPTS) $(lint_python_code)
2216
	$(PYLINT) $(LINT_OPTS_ALL) $(lint_python_code)
2208 2217

  
2209 2218
.PHONY: pylint-qa
2210 2219
pylint-qa: $(GENERATED_FILES)
2211 2220
	@test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; }
2212 2221
	cd $(top_srcdir)/qa && \
2213
	  PYTHONPATH=$(abs_top_srcdir) $(PYLINT) $(LINT_OPTS) \
2214
	  --rcfile  ../pylintrc $(patsubst qa/%.py,%,$(qa_scripts))
2222
	  PYTHONPATH=$(abs_top_srcdir) $(PYLINT) $(LINT_OPTS_ALL) \
2223
		--rcfile  ../pylintrc $(patsubst qa/%.py,%,$(qa_scripts))
2215 2224
# FIXME: lint all test code, not just the newly added test support
2216 2225
pylint-test: $(GENERATED_FILES)
2217 2226
	@test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; }
2218 2227
	cd $(top_srcdir) && \
2219
		PYTHONPATH=.:./test/py $(PYLINT) $(LINT_OPTS) \
2228
		PYTHONPATH=.:./test/py $(PYLINT) $(LINT_OPTS_ALL) \
2220 2229
		--rcfile=pylintrc-test  $(python_test_support)
2221 2230

  
2222 2231
.PHONY: pep8

Also available in: Unified diff