summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-08-04 14:53:59 -0400
committerKali Kaneko <kali@leap.se>2015-08-04 14:53:59 -0400
commit7e675cbd9b1d9bc2ae22828efdd95799d07e79dd (patch)
tree62c50b780e0105af995bc6824be52f7e993c8392
parent981c2a231384a67077061b29708e6feef49c78d8 (diff)
[style] add pep8 config options to setup.cfg
-rwxr-xr-xrun_tests.sh4
-rw-r--r--setup.cfg4
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