Add PEP8_FLAGS variable to the test suite Python makefile.

Put pep8 options into this variable to avoid repeating them twice.

No real changes.
This commit is contained in:
Vadim Zeitlin 2014-12-16 17:05:10 +01:00
commit cb53e3063b

View file

@ -11,6 +11,7 @@ endif
LANGUAGE = python
PYTHON = $(PYBIN)
PEP8 = @PEP8@
PEP8_FLAGS = --ignore=E501,E30,W291,W391
#*_runme.py for Python 2.x, *_runme3.py for Python 3.x
PY2SCRIPTSUFFIX = _runme.py
@ -126,13 +127,13 @@ py3_runme = $(SCRIPTPREFIX)$*$(PY3SCRIPTSUFFIX)
check_pep8 = \
if [ -n "$(PEP8)" ]; then \
$(PEP8) --ignore=E501,E30,W291,W391 $(SCRIPTPREFIX)$*.py;\
$(PEP8) $(PEP8_FLAGS) $(SCRIPTPREFIX)$*.py;\
fi
check_pep8_multi_cpp = \
if [ -n "$(PEP8)" ]; then \
for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \
$(PEP8) --ignore=E501,E30,W291,W391 $$f.py; \
$(PEP8) $(PEP8_FLAGS) $$f.py; \
done \
fi