From 44e3e56e14ef9d4edd2849623577c1e9282f81ed Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Mon, 4 Aug 2014 19:23:55 -0400 Subject: [PATCH] [SPARK-2627] use tox.ini to exclude files No need to exclude files in the call to pep8. The tool references tox.ini for config information, so we should use that. --- dev/lint-python | 3 +-- tox.ini | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/lint-python b/dev/lint-python index 9913313ab349c..4efddad839387 100755 --- a/dev/lint-python +++ b/dev/lint-python @@ -44,8 +44,7 @@ fi #+ first, but we do so so that the check status can #+ be output before the report, like with the #+ scalastyle and RAT checks. -python $PEP8_SCRIPT_PATH ./python --exclude="cloudpickle.py" \ - > "$PEP8_REPORT_PATH" +python $PEP8_SCRIPT_PATH ./python > "$PEP8_REPORT_PATH" pep8_status=${PIPESTATUS[0]} #$? if [ $pep8_status -ne 0 ]; then diff --git a/tox.ini b/tox.ini index 44766e529bf7f..a1fefdd0e176f 100644 --- a/tox.ini +++ b/tox.ini @@ -15,3 +15,4 @@ [pep8] max-line-length=100 +exclude=cloudpickle.py