aboutsummaryrefslogtreecommitdiff
path: root/ec2
diff options
context:
space:
mode:
authorNicholas Chammas <nicholas.chammas@gmail.com>2015-03-19 12:46:10 -0700
committerJosh Rosen <joshrosen@databricks.com>2015-03-19 12:46:10 -0700
commitf17d43b033d928dbc46aef8e367aa08902e698ad (patch)
treece7d964485d7bf6cedc74fdaaf9cf75f9b21d96c /ec2
parent3b5aaa6a5fe0d838a8570c9d500ebca5f63764f8 (diff)
downloadspark-f17d43b033d928dbc46aef8e367aa08902e698ad.tar.gz
spark-f17d43b033d928dbc46aef8e367aa08902e698ad.tar.bz2
spark-f17d43b033d928dbc46aef8e367aa08902e698ad.zip
[SPARK-6219] [Build] Check that Python code compiles
This PR expands the Python lint checks so that they check for obvious compilation errors in our Python code. For example: ``` $ ./dev/lint-python Python lint checks failed. Compiling ./ec2/spark_ec2.py ... File "./ec2/spark_ec2.py", line 618 return (master_nodes,, slave_nodes) ^ SyntaxError: invalid syntax ./ec2/spark_ec2.py:618:25: E231 missing whitespace after ',' ./ec2/spark_ec2.py:1117:101: E501 line too long (102 > 100 characters) ``` This PR also bumps up the version of `pep8`. It ignores new types of checks introduced by that version bump while fixing problems missed by the older version of `pep8` we were using. Author: Nicholas Chammas <nicholas.chammas@gmail.com> Closes #4941 from nchammas/compile-spark-ec2 and squashes the following commits: 75e31d8 [Nicholas Chammas] upgrade pep8 + check compile b33651c [Nicholas Chammas] PEP8 line length
Diffstat (limited to 'ec2')
-rwxr-xr-xec2/spark_ec2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index f848874b0c..c467cd08ed 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -1159,8 +1159,8 @@ def real_main():
if EC2_INSTANCE_TYPES[opts.instance_type] != \
EC2_INSTANCE_TYPES[opts.master_instance_type]:
print >> stderr, \
- "Error: spark-ec2 currently does not support having a master and slaves with " + \
- "different AMI virtualization types."
+ "Error: spark-ec2 currently does not support having a master and slaves " + \
+ "with different AMI virtualization types."
print >> stderr, "master instance virtualization type: {t}".format(
t=EC2_INSTANCE_TYPES[opts.master_instance_type])
print >> stderr, "slave instance virtualization type: {t}".format(