From 7e675cbd9b1d9bc2ae22828efdd95799d07e79dd Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 4 Aug 2015 14:53:59 -0400 Subject: [style] add pep8 config options to setup.cfg --- run_tests.sh | 4 +--- setup.cfg | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 13050872..0d7e7463 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -113,9 +113,7 @@ function run_pep8 { echo "Running pep8 ..." srcfiles="src/leap" # Just run PEP8 in current environment - pep8_opts="--ignore=E202,W602 --exclude=*_rc.py,ui_*,_version.py --repeat" - - ${wrapper} pep8 ${pep8_opts} ${srcfiles} + ${wrapper} flake8 ${pep8_opts} ${srcfiles} } # XXX we cannot run tests that need X server diff --git a/setup.cfg b/setup.cfg index 6c1d4f05..412ed906 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,3 +6,7 @@ all_files = 1 [upload_sphinx] upload-dir = docs/_build/html repository = https://pypi.python.org/pypi + +[pep8] +ignore = E731 +exclude = *_rc.py,ui_*,_version.py -- cgit v1.2.3